/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: 'Schibsted Grotesk'; src: url(/r/ft/schibsted.woff) format('woff'); font-weight: 400 900; font-display: swap; }
/* Persian faces, one per brand (each brand ships only its own files): Feldwerk Vazirmatn (formerly Vazir), Rhodane Parastoo,
   Linden & Dune Ray, Alpwacht Shabnam. Arabic: Rhodane Noto Naskh + Noto Sans Arabic, Linden & Dune IBM Plex Sans Arabic.
   All SIL OFL, subset to Arabic script so Latin text keeps each brand's own face. */
@font-face { font-family: 'Shabnam'; src: url(/r/ft/shabnam.woff) format('woff'); font-weight: 400; unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+00AB, U+00BB; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url(/r/ft/shabnam-medium.woff) format('woff'); font-weight: 500; unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+00AB, U+00BB; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url(/r/ft/shabnam-bold.woff) format('woff'); font-weight: 600 900; unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+00AB, U+00BB; font-display: swap; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: var(--fs-body, 1.0625rem); line-height: 1.6; font-kerning: normal; font-variant-numeric: proportional-nums; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight, 500); line-height: 1.08; letter-spacing: var(--display-tracking, -0.01em); margin: 0 0 0.5em; text-wrap: balance; font-stretch: var(--display-stretch, 100%); }
h1 { font-size: var(--fs-h1, clamp(2.5rem, 1.6rem + 3.8vw, 5rem)); }
h2 { font-size: var(--fs-h2, clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem)); }
h3 { font-size: var(--fs-h3, 1.25rem); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-fg); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--fg); color: var(--bg); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.wrap.narrow { max-width: 820px; }
.sec { padding-block: clamp(56px, 8vw, 120px); }
.sec + .sec, .page-head + .sec { padding-top: 0; }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; max-width: 52ch; color: var(--fg-soft, var(--fg)); }
.split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; align-items: start; }
.split-wide { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.media-tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.7em 1.4em; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-btn, 0); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover, var(--fg)); }
.btn-quiet { background: transparent; color: var(--fg); border-color: currentColor; }
.btn-quiet:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--header-bg, var(--bg)); color: var(--header-fg, var(--fg)); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { width: 28px; height: 28px; flex: none; color: var(--logo-mark, currentColor); }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-word { font-family: var(--font-logo, var(--font-display)); font-weight: var(--logo-weight, 600); font-stretch: var(--logo-stretch, 100%); font-size: 1.125rem; letter-spacing: var(--logo-tracking, 0); white-space: nowrap; }
.nav ul { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-size: 0.975rem; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: currentColor; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; inset-inline-start: 0; }
  .menu-btn .bars::before { top: -7px; } .menu-btn .bars::after { top: 7px; }
  .menu-open .menu-btn .bars { background: transparent; }
  .menu-open .menu-btn .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); padding: 8px clamp(16px, 4vw, 40px) 20px; }
  .js .menu-open .nav ul { display: flex; }
  .nav a { display: block; padding-block: 12px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Page head ---------- */
.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); }
.page-head h1 { max-width: 20ch; }
.crumb { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1.5em; display: flex; gap: 1em; flex-wrap: wrap; }
.small-h { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; margin: 0 0 0.75em; line-height: 1.4; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head h2 { margin: 0; }
.sec-note { color: var(--muted); margin-top: -0.5em; margin-bottom: 2em; }

/* ---------- Lists ---------- */
.ticks li { position: relative; padding-inline-start: 1.4em; margin-bottom: 0.6em; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.72em; width: 0.6em; height: 1px; background: var(--accent); }
.ticks.cols { columns: 2 260px; column-gap: 48px; }
.ticks.cols li { break-inside: avoid; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); padding: 4px 10px; font-size: 0.875rem; border-radius: var(--radius-tag, 0); }
.plain-links li { padding-block: 10px; border-top: 1px solid var(--line); }
.plain-links.small li { padding-block: 6px; font-size: 0.9375rem; }

/* Services index */
.svc-index { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a { display: block; padding: 24px 0; text-decoration: none; height: 100%; }
.svc-index h3 { margin-bottom: 0.4em; }
.svc-index p { margin: 0; color: var(--muted); max-width: 48ch; }
.svc-index a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (min-width: 760px) { .svc-index { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1100px) { .svc-index { grid-template-columns: repeat(3, 1fr); } }

.svc-block { display: grid; gap: 24px; padding-block: 48px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .svc-block { grid-template-columns: 5fr 7fr; gap: 64px; } }
.svc-block h2 a { text-decoration: none; }
.svc-sum { color: var(--muted); }

/* Sectors, principles */
.sector-list > div, .principle-list > div { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
@media (min-width: 760px) { .sector-list > div, .principle-list > div { grid-template-columns: 14rem 1fr; gap: 32px; } }
dt { font-weight: 600; }
dd { margin: 0; color: var(--fg-soft, var(--fg)); }

/* Steps (a real sequence) */
.approach-head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 56px); }
.steps { display: grid; gap: 32px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid var(--fg); padding-top: 16px; }
.step-n { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps p { color: var(--fg-soft, var(--fg)); margin: 0; }

/* Engagements */
.eng-list { display: grid; gap: 0; }
.eng { padding-block: 32px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
@media (min-width: 900px) { .eng { grid-template-columns: 4fr 8fr; gap: 64px; } }
.eng h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); }
.eng dl { display: grid; gap: 14px; margin: 0; }
.eng dl > div { display: grid; gap: 4px; }
@media (min-width: 760px) { .eng dl > div { grid-template-columns: 11rem 1fr; gap: 24px; } }
.eng dt { font-weight: 500; color: var(--muted); }

/* Vision */
.vision { padding-top: 0; }
.vision-media img { width: 100%; height: clamp(280px, 48vw, 640px); object-fit: cover; }
.vision-copy { padding-top: clamp(40px, 6vw, 80px); }

/* Locations */
.loc-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .loc-grid { grid-template-columns: repeat(2, 1fr); gap: 64px; } }
.loc { border-top: 1px solid var(--fg); padding-top: 20px; }
.loc h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); margin-bottom: 0.15em; }
.loc-country { color: var(--muted); margin-bottom: 1.25em; }
.loc-role { font-weight: 600; }

/* Jobs */
.job-list { border-top: 1px solid var(--line); }
.job-row a { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.job-row a:hover .job-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.job-title { font-weight: 600; font-size: 1.0625rem; }
.job-meta, .job-close { color: var(--muted); font-size: 0.9375rem; }
.job-meta .sep::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 10px; vertical-align: middle; opacity: .6; }
@media (min-width: 900px) {
  .job-list:not(.compact) .job-row a { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 2fr); align-items: baseline; }
  .job-list:not(.compact) .job-close { text-align: end; }
}
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; margin-inline-start: 6px; vertical-align: 2px; background: var(--accent); color: var(--accent-fg); border-radius: var(--radius-tag, 0); }
.count-line { margin-block: 1.5em; }
.count-line strong { font-family: var(--font-display); font-size: 1.5em; font-weight: var(--display-weight, 500); }

.filters { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 760px) { .filters { grid-template-columns: 2fr 1.4fr 1fr; align-items: end; } }
.filters label { display: grid; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.filters input, .filters select { font: inherit; font-size: 1rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-input, 0); min-height: 48px; padding: 0 14px; width: 100%; }
.filters select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
[dir=rtl] .filters select { background-position: 15px 50%, 20px 50%; }
.results { color: var(--muted); font-size: 0.9375rem; margin-bottom: 8px; }
.no-results { padding: 32px 0; color: var(--muted); }
.talent-pool { margin-top: 56px; padding: clamp(24px, 4vw, 40px); background: var(--surface); display: grid; gap: 8px 32px; align-items: center; }
@media (min-width: 760px) { .talent-pool { grid-template-columns: 1fr auto; } .talent-pool .btn { grid-row: 1 / span 2; grid-column: 2; } }
.talent-pool h2 { font-size: 1.5rem; margin: 0; }
.talent-pool p { margin: 0; color: var(--fg-soft, var(--fg)); }

/* Language switcher: shared skeleton only. Each brand styles its own build (.ls-fw, .ls-rh, .ls-ld, .ls-aw) in brand.css. */
.lang-switch { margin-bottom: 28px; font-size: 0.9375rem; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.lang-switch a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.lang-switch a[aria-current], .lang-switch a:hover { color: var(--fg); }
.ai-notice { font-size: 0.8125rem; color: var(--muted); padding-block: 24px 40px; margin: 0; }

/* Job page */
.orig-title { color: var(--muted); margin-top: -0.4em; }
.job-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.job-cta.end { margin-top: 48px; }
.job-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .job-grid { grid-template-columns: 4fr 8fr; gap: 80px; } .job-facts { position: sticky; top: 24px; align-self: start; } }
.job-facts dl { margin: 0 0 20px; }
.job-facts dl > div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.job-facts dt { font-weight: 400; color: var(--muted); }
.flags li { font-size: 0.9375rem; padding-block: 4px; }
.flags li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-inline-end: 10px; vertical-align: 2px; border-radius: var(--radius-dot, 0); }
.job-body { max-width: 68ch; }
.job-body h2 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin: 2em 0 0.8em; }
.job-body h2:first-of-type { margin-top: 0; }
.en-note { background: var(--surface); padding: 14px 18px; font-size: 0.9375rem; margin-bottom: 32px; }

/* Insights */
.ins-list li a { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line); text-decoration: none; }
.ins-list time { font-size: 0.875rem; color: var(--muted); }
.ins-list.big .ins-t { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.2; }
.ins-dek { color: var(--muted); }
.ins-list a:hover .ins-t, .ins-list a:hover span { text-decoration: underline; text-decoration-thickness: 1px; }
.sources li { font-size: 0.9375rem; padding-block: 6px; list-style: decimal; margin-inline-start: 1.2em; }
.insight sup a { text-decoration: none; color: var(--muted); font-size: 0.75em; }
.empty { color: var(--muted); }

/* Contact */
.contact-band { background: var(--band-bg, var(--fg)); color: var(--band-fg, var(--bg)); padding-block: clamp(56px, 8vw, 112px); }
.sec + .contact-band { padding-top: clamp(56px, 8vw, 112px); } /* a coloured band needs its own top spacing */
.contact-band p { max-width: 56ch; opacity: .85; }
.contact-band .btn-primary { background: var(--band-btn, var(--bg)); color: var(--band-btn-fg, var(--fg)); margin-top: 12px; }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.big-link { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.note { color: var(--muted); font-size: 0.9375rem; border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }

/* Footer */
.site-footer { background: var(--footer-bg, var(--bg)); color: var(--footer-fg, var(--fg)); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.footer-h { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.site-footer li { padding-block: 3px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

/* ---------- RTL & script-specific type ---------- */
/* Script font sits right after each brand font, so Latin keeps the brand face and Persian/Arabic/Hindi get a matched one everywhere (menus, footers, labels). */
.lang-fa { --script: var(--fa-body, 'Ray'); } .lang-ar { --script: var(--ar-body, 'IBM Plex Sans Arabic'); } .lang-hi { --script: 'Noto Sans Devanagari'; }
.lang-fa body, .lang-fa .lang-switch { font-family: var(--fa-body, 'Ray'), var(--font-body); letter-spacing: 0; }
.lang-fa h1, .lang-fa h2, .lang-fa h3 { font-family: var(--fa-head, var(--fa-body, 'Ray')), var(--font-body); letter-spacing: 0; }
.lang-ar body { font-family: var(--ar-body, 'IBM Plex Sans Arabic'), var(--font-body); letter-spacing: 0; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { font-family: var(--ar-head, var(--ar-body, 'IBM Plex Sans Arabic')), var(--font-body); letter-spacing: 0; }
.lang-hi body, .lang-hi h1, .lang-hi h2, .lang-hi h3 { font-family: 'Noto Sans Devanagari', var(--font-body); letter-spacing: 0; }
.lang-fa h1, .lang-fa h2, .lang-ar h1, .lang-ar h2, .lang-hi h1, .lang-hi h2 { font-stretch: 100%; line-height: 1.35; font-weight: 700; }
.lang-hi h1, .lang-hi h2 { font-weight: 600; }
.lang-fa body, .lang-ar body { line-height: 1.85; }
.lang-hi body { line-height: 1.75; }
.lang-fa .site-header, .lang-ar .site-header, .lang-fa .site-footer, .lang-ar .site-footer { font-family: var(--font-body); }
[lang=en] { font-family: var(--font-body); }
.job-body[lang=en] h2 { font-family: var(--font-body); }
.lang-switch [lang=en], .lang-switch [lang=tr] { font-family: var(--font-body); }
/* Language names use system fonts, so a page never downloads another script's font just to show its name. */
.lang-switch [lang=fa], .lang-switch [lang=ar], .lang-switch [lang=hi] { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; }
.lang-fa .lang-switch [lang=fa], .lang-fa .lang-switch [lang=ar] { font-family: var(--fa-body, 'Ray'), sans-serif; }
.lang-ar .lang-switch [lang=fa], .lang-ar .lang-switch [lang=ar] { font-family: var(--ar-body, 'IBM Plex Sans Arabic'), sans-serif; }
.lang-hi .lang-switch [lang=hi] { font-family: 'Noto Sans Devanagari', sans-serif; }

/* ---------- Application form ---------- */
.v-apply .site-header, .v-apply .site-footer { display: none; }
.v-apply { background: var(--apply-bg, var(--bg)); }
.apply-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.apply-top { display: flex; align-items: center; gap: 20px; padding: 16px clamp(16px, 4vw, 40px); position: relative; }
.apply-top .lang-switch { margin: 0 0 0 auto; }
[dir=rtl] .apply-top .lang-switch { margin: 0 auto 0 0; }
.apply-close { width: 32px; height: 32px; color: var(--fg); display: block; }
.apply-close svg { width: 100%; height: 100%; }
.apply-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--line); }
.apply-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.apply-form { display: grid; align-items: center; padding: clamp(24px, 6vh, 64px) clamp(16px, 4vw, 40px) 96px; }
.q-screen { width: 100%; max-width: 720px; margin-inline: auto; }
.q { transition: opacity .35s ease, transform .35s ease; }
.q.in-up { opacity: 0; transform: translateY(28px); }
.q.in-down { opacity: 0; transform: translateY(-28px); }
.q-num { color: var(--accent); font-weight: 600; font-size: 0.9375rem; margin-bottom: 10px; }
.q-title { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.2; margin-bottom: 12px; outline: none; }
.q-welcome .q-title { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.w-company { color: var(--muted); margin-bottom: 18px; }
.q-hint { color: var(--muted); font-size: 1.0625rem; }
.q-opt { color: var(--muted); font-family: var(--font-body); font-size: 0.5em; font-weight: 400; }
.fields { margin-top: 28px; display: grid; gap: 20px; }
.fields.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 0.9375rem; color: var(--muted); }
.fields input, .fields textarea, .other-lang { width: 100%; font: inherit; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); color: var(--fg); background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong, var(--muted)); padding: 8px 0 10px; border-radius: 0; }
.fields textarea { font-size: 1.125rem; line-height: 1.5; resize: vertical; border: 1.5px solid var(--line-strong, var(--muted)); padding: 12px 14px; }
.fields input:focus, .fields textarea:focus, .other-lang:focus { outline: none; border-color: var(--accent); }
.fields input::placeholder, .other-lang::placeholder { color: var(--muted); opacity: .55; }
.choices { display: grid; gap: 10px; margin-top: 28px; max-width: 520px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; font: inherit; font-size: 1.0625rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-input, 0); padding: 12px 16px; min-height: 52px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--fg); }
.choice kbd { font: inherit; font-size: 0.8125rem; font-weight: 600; width: 24px; height: 24px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong, var(--muted)); border-radius: var(--radius-tag, 0); flex: none; }
.choice[aria-checked=true] { border-color: var(--accent); background: var(--accent-soft, var(--surface)); }
.choice[aria-checked=true] kbd { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.lang-picks { display: grid; gap: 8px; margin-top: 24px; }
.lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.chip { font: inherit; font-size: 1rem; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: var(--radius-input, 0); cursor: pointer; min-width: 9.5rem; text-align: start; }
.chip[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft, var(--surface)); font-weight: 600; }
.levels { display: none; gap: 4px; }
.lang-row.on .levels { display: inline-flex; flex-wrap: wrap; }
.lvl { font: inherit; font-size: 0.875rem; padding: 6px 10px; min-height: 36px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; border-radius: var(--radius-input, 0); }
.lvl[aria-checked=true] { color: var(--fg); border-color: var(--fg); }
.other-lang { font-size: 1.125rem; margin-top: 16px; max-width: 360px; }
.drop { display: grid; justify-items: center; gap: 8px; margin-top: 28px; padding: 40px 20px; border: 1.5px dashed var(--line-strong, var(--muted)); text-align: center; cursor: pointer; border-radius: var(--radius-input, 0); transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--surface); }
.drop.has { border-style: solid; border-color: var(--accent); }
.drop-icon svg { width: 32px; height: 32px; color: var(--accent); }
.drop-text { font-weight: 600; word-break: break-all; }
.drop-ok { font-size: 0.875rem; color: var(--muted); }
.check { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; font-size: 1.0625rem; cursor: pointer; max-width: 60ch; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.review { margin-top: 24px; border-top: 1px solid var(--line); }
.review > div { display: grid; gap: 4px; padding-block: 12px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .review > div { grid-template-columns: 15rem 1fr; gap: 20px; } }
.review dt { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.review dd { display: flex; justify-content: space-between; gap: 16px; }
.review .link { font-size: 0.875rem; color: var(--muted); flex: none; }
.q-actions { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.q-enter { font-size: 0.8125rem; color: var(--muted); }
@media (hover: none) { .q-enter { display: none; } }
.q-error { display: none; color: var(--error, #A3271F); margin-top: 16px; font-weight: 500; }
.q.invalid .q-error { display: block; }
.q.invalid .fields input, .q.invalid .choices, .q.invalid .drop { animation: nudge .3s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.q-nav { position: fixed; bottom: 20px; inset-inline-end: clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 4px; }
.q-count { font-size: 0.875rem; color: var(--muted); margin-inline-end: 12px; }
.q-nav button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); border: 0; cursor: pointer; border-radius: var(--radius-btn, 0); }
.q-nav button svg { width: 22px; height: 22px; }
.q-nav button[disabled] { opacity: .35; cursor: default; }
.q-done { text-align: start; }
.done-mark svg { width: 56px; height: 56px; color: var(--accent); margin-bottom: 24px; }
.apply-ai { text-align: center; padding: 0 16px 24px; }
.ts { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header nav, .site-footer, .contact-band, .hero-ctas, .job-cta { display: none; } }

/* Hero motion: video sits over its still image; if the clip is missing or motion is reduced, the still remains. */
.hero-media, .diptych figure { position: relative; }
.motion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.motion.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .motion { display: none; } }

/* Video tiles: still image first, video fades in once it plays */
.vid { position: relative; overflow: hidden; background: #222; }
.vid img, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid video { opacity: 0; transition: opacity 1s ease; }
.vid.on video { opacity: 1; }

/* Short film under inner page headings */
.page-film { margin: 0 clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px); }
.page-film .vid { height: clamp(220px, 34vw, 52vh); border-radius: var(--radius-film, 0); }
.page-film + .sec { padding-top: 0; }

.v-apply main { margin-inline-start: 0 !important; padding-top: 0 !important; }

address, .addr { font-style: normal; }
.addr + .addr { margin-top: 12px; }
.footer-addr li + li { margin-top: 10px; }
/* ---------- Open applications ---------- */
.open-app { padding-block: 8px 28px; }
.open-app-inner { display: grid; gap: 18px; align-items: center; padding: clamp(20px, 4vw, 32px); }
@media (min-width: 760px) { .open-app-inner { grid-template-columns: 1fr auto; gap: 32px; } }
.open-app h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 8px; }
.open-app p { margin: 0; max-width: 62ch; }
.open-app-cta { justify-self: start; white-space: normal; text-align: center; }
.open-hint { margin: 14px 0 0; font-size: .975rem; }
.open-hint a { text-underline-offset: .2em; }
.no-results a { white-space: nowrap; }

/* ---------- Mobile comfort ---------- */
a.link { display: inline-block; padding-block: 12px; }
.btn { min-height: 44px; }
input, select, textarea { min-height: 44px; }
input[type=checkbox], input[type=radio] { min-height: 0; }
@media (min-width: 900px) { .job-grid > .job-body-end { grid-column: 2; } }
.job-body .tags { direction: ltr; }
/* Phones: keep the job list close to the top */
@media (max-width: 700px) {
  .open-app + .page-film .vid, .open-app + .page-film img { max-height: 180px; }
  .open-app + .page-film { margin-block: 0 8px; }
}

/* Optional working-languages picker in the application forms (all four brands). */
.lang-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.lang-pick > legend { padding: 0; }
.lang-pick-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lang-pick-item { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; background: var(--surface, transparent); color: var(--fg); font-size: 1rem; cursor: pointer; user-select: none; }
.lang-pick-item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lang-pick-item:has(input:checked) { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.lang-pick-item:has(input:focus-visible) { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.apply-ai a { color: inherit; text-underline-offset: .2em; }

/* Alpwacht — night watch. Slate night, snow type, one red marker; a fixed rail instead of a top bar.
   Memorable thing: the incident clock that advances as you scroll (T+0 to T+1 month). */
:root {
  --bg: #12171C; --surface: #1A2128; --fg: #E8ECEE; --fg-soft: #C9D0D5; --muted: #8E99A3; --line: #2A333B; --line-strong: #4A555E;
  --accent: #E8ECEE; --accent-fg: #12171C; --accent-hover: #FFFFFF; --accent-soft: #232C34; --signal: #E5483D; --focus: #E5483D;
  --font-display: 'Schibsted Grotesk', var(--script, 'Helvetica Neue'), 'Helvetica Neue', Arial, sans-serif; --font-body: 'Schibsted Grotesk', var(--script, 'Helvetica Neue'), 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 700; --display-tracking: -0.035em; --logo-weight: 760; --logo-tracking: -0.02em;
  --fs-h1: clamp(2.6rem, 1.3rem + 4.8vw, 6rem); --fs-h2: clamp(1.9rem, 1.3rem + 2vw, 3.2rem);
  --band-bg: #E8ECEE; --band-fg: #12171C; --band-btn: #12171C; --band-btn-fg: #E8ECEE;
  --footer-bg: #0D1115; --footer-fg: #C9D0D5; --error: #FF6B60; --rail: 0px;
}
h3 { font-weight: 640; letter-spacing: -0.015em; }
::selection { background: var(--signal); color: #fff; }

/* Rail navigation */
.hdr-aw { background: var(--bg); border-bottom: 1px solid var(--line); }
.rail { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 64px; }
.rail-coords { display: none; }
@media (min-width: 1100px) {
  :root { --rail: 232px; }
  .hdr-aw { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--rail); border-bottom: 0; border-inline-end: 1px solid var(--line); z-index: 30; background: rgba(18,23,28,.92); backdrop-filter: blur(10px); }
  .rail { flex-direction: column; align-items: stretch; height: 100%; padding: 28px 24px; gap: 40px; }
  .rail .nav ul { display: flex; flex-direction: column; gap: 2px; }
  .rail .nav a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; color: var(--muted); font-size: 1rem; }
  .rail .nav a::before { content: ''; width: 8px; height: 8px; border: 1px solid currentColor; flex: none; transition: background .2s; }
  .rail .nav a:hover, .rail .nav a[aria-current] { color: var(--fg); }
  .rail .nav a[aria-current]::before { background: var(--signal); border-color: var(--signal); }
  .rail-coords { display: grid; gap: 12px; margin-top: auto; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
  .rail-coords dt { color: var(--fg-soft); font-weight: 600; }
  .rail-coords dd { margin: 0; }
  main, .site-footer { margin-inline-start: var(--rail); }
}

/* Buttons: corner brackets, like a target frame */
.btn-bracket { position: relative; background: var(--fg); color: var(--bg); padding-inline: 1.4em; font-weight: 600; }
.btn-bracket::before, .btn-bracket::after { content: ''; position: absolute; width: 10px; height: 10px; border: 2px solid var(--signal); transition: all .2s; }
.btn-bracket::before { top: -6px; inset-inline-start: -6px; border-inline-end: 0; border-bottom: 0; }
.btn-bracket::after { bottom: -6px; inset-inline-end: -6px; border-inline-start: 0; border-top: 0; }
.btn-bracket:hover::before { top: -9px; inset-inline-start: -9px; }
.btn-bracket:hover::after { bottom: -9px; inset-inline-end: -9px; }
.btn-bracket.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-quiet { color: var(--fg); }

.aw-grid { display: grid; gap: 28px 72px; padding: clamp(72px, 9vw, 128px) clamp(16px, 4vw, 56px); max-width: 1320px; }
@media (min-width: 960px) { .aw-grid { grid-template-columns: 4fr 8fr; } }
.aw-grid-full { padding: clamp(72px, 9vw, 128px) clamp(16px, 4vw, 56px); max-width: 1320px; }

/* Hero */
.aw-hero { position: relative; min-height: max(640px, 100svh); display: grid; align-items: end; overflow: hidden; }
.aw-hero-media { position: absolute; inset: 0; }
.aw-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,23,28,.95) 0%, rgba(18,23,28,.35) 45%, rgba(18,23,28,.2) 100%); }
.aw-topo { position: absolute; inset-inline-end: -4%; top: 6%; width: min(58vw, 760px); opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.aw-topo .topo .c { stroke: rgba(232,236,238,.4); }
.aw-topo .topo .c.major { stroke: rgba(232,236,238,.75); }
.aw-topo .ring { animation: aw-ping 2.8s 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes aw-ping { 0% { transform: scale(1); opacity: 1; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.aw-hero-copy { position: relative; padding: 140px clamp(16px, 4vw, 56px) clamp(48px, 7vw, 96px); max-width: 1100px; }
.aw-hero h1 { max-width: 14ch; line-height: .98; }
.aw-hero .lede { color: var(--fg-soft); max-width: 56ch; }

/* Matrix of services */
.aw-cells { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
@media (min-width: 760px) { .aw-cells { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .aw-cells { grid-template-columns: repeat(3, 1fr); } }
.aw-cell { position: relative; background: var(--bg); padding: 28px 28px 32px; text-decoration: none; min-height: 300px; display: flex; flex-direction: column; transition: background .25s; }
.aw-cell:hover { background: var(--surface); }
.aw-cell::after { content: ''; position: absolute; top: 0; inset-inline-end: 0; width: 0; height: 0; border-style: solid; border-width: 0 18px 18px 0; border-color: transparent var(--signal) transparent transparent; opacity: 0; transition: opacity .25s; }
.aw-cell:hover::after { opacity: 1; }
.aw-idx { font-size: .8125rem; color: var(--signal); font-variant-numeric: tabular-nums; margin-bottom: 40px; }
.aw-cell p { color: var(--muted); }
.aw-deliv { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s; }
.aw-cell:hover .aw-deliv, .aw-cell:focus-visible .aw-deliv { max-height: 240px; opacity: 1; }
.aw-deliv li { font-size: .875rem; color: var(--fg-soft); padding-block: 4px; }
@media (hover: none) { .aw-deliv { max-height: none; opacity: 1; } }

/* Incident timeline (pinned on desktop) */
.aw-timeline { position: relative; }
@media (min-width: 900px) { .aw-timeline { height: 270vh; } .aw-tl-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; } }
.aw-tl-sticky { position: relative; }
.aw-tl-media { position: absolute; inset: 0; opacity: .32; }
.aw-tl-inner { position: relative; display: grid; gap: 24px 72px; padding: clamp(64px, 8vw, 104px) clamp(16px, 4vw, 56px); max-width: 1320px; height: 100%; align-content: center; }
@media (min-width: 900px) { .aw-tl-inner { grid-template-columns: 4fr 7fr; } .aw-tl-inner h2, .aw-tl-sub { grid-column: 1; } .aw-tl { grid-column: 2; grid-row: 1 / span 2; } }
.aw-tl-sub { color: var(--fg-soft); max-width: 40ch; }
.aw-tl { --p: 0; position: relative; padding-inline-start: 28px; }
.aw-tl::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--signal) calc(var(--p) * 100%), var(--line) 0); }
.aw-tl li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; padding-block: 14px; opacity: .35; transition: opacity .4s; }
.aw-tl li.active { opacity: 1; }
.aw-tl li.past { opacity: .6; }
.aw-t { font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; }
.aw-tl h3 { margin: 0 0 4px; font-size: 1.25rem; }
.aw-tl p { margin: 0; color: var(--fg-soft); max-width: 52ch; }

.aw-sector-list > div { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .aw-sector-list > div { grid-template-columns: 14rem 1fr; gap: 32px; } }
.aw-sector-list dd { color: var(--fg-soft); }

/* Clouds: vertical footage beside the vision */
.aw-clouds { display: grid; gap: 0; background: var(--surface); }
@media (min-width: 960px) { .aw-clouds { grid-template-columns: 5fr 7fr; min-height: 90vh; } }
.aw-clouds-media { min-height: 70vh; }
.aw-clouds-copy { padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 72px); align-self: center; }
.aw-clouds-copy p { color: var(--fg-soft); max-width: 56ch; }

.aw-eng-item { padding-block: 24px; border-top: 1px solid var(--line); }
.aw-eng-item p { color: var(--fg-soft); }
.aw-careers { background: var(--surface); }
.aw-count { font-size: clamp(5rem, 3rem + 7vw, 9rem); font-weight: 800; letter-spacing: -0.05em; line-height: .9; margin: 0 0 .1em; color: var(--fg); }
.aw-count::after { content: ''; display: inline-block; width: .14em; height: .14em; background: var(--signal); margin-inline-start: .06em; }

/* Shared pages in night mode */
.page-head h1 { letter-spacing: -0.035em; }
.wrap { max-width: 1320px; }
@media (min-width: 1100px) { .wrap { margin-inline: 0; padding-inline: 56px; } }
.filters input, .filters select, .choice, .chip, .fields input { color: var(--fg); }
.filters select { background-color: var(--surface); }
.badge { background: var(--signal); color: #fff; }
.ticks li::before { background: var(--signal); width: .5em; height: 2px; }
.flags li::before { background: var(--signal); }
.step-n { color: var(--signal); font-weight: 700; }
.insights-teaser .ins-topics li { padding-block: 12px; border-top: 1px solid var(--line); }
.contact-band .btn-primary { background: var(--bg); color: var(--fg); }
img { color: var(--muted); }

/* Inner pages: contour field behind the heading */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  repeating-radial-gradient(ellipse at 85% 30%, transparent 0 22px, rgba(232,236,238,.06) 22px 23px); }
.page-head .wrap { position: relative; }
.page-film { margin-inline: 0; }
.page-film .vid { height: clamp(200px, 30vw, 46vh); }
/* /response: the timeline as a plain, fully visible list */
.aw-timeline.static { height: auto; }
.aw-timeline.static .aw-tl-inner { display: block; height: auto; padding-block: clamp(40px, 6vw, 72px); }
.aw-timeline.static .aw-tl { --p: 1; max-width: 860px; }
.aw-timeline.static .aw-tl li { opacity: 1; }
/* Footer as a report colophon: labels in small caps, columns separated by hairlines */
.site-footer .footer-h { font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (min-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; } .site-footer .footer-grid > div { padding-inline: 24px; border-inline-start: 1px solid var(--line); } .site-footer .footer-grid > div:first-child { padding-inline-start: 0; border: 0; } }
.site-footer .footer-base { font-family: ui-monospace, 'SFMono-Regular', Menlo, var(--script, monospace), monospace; font-size: 0.75rem; letter-spacing: .04em; }
.open-app-inner { border: 1px solid rgba(242,243,241,.22); border-inline-start: 4px solid #B3261E; background: rgba(255,255,255,.03); }
.site-footer .footer-h { font-size: .75rem; }
.badge { background: #B3261E; color: #fff; }

/* Persian: Shabnam, a plain modern sans that sits with Schibsted Grotesk. */
:root { --fa-body: 'Shabnam'; --fa-head: 'Shabnam'; }
.lang-fa h1, .lang-fa h2 { font-weight: 700; line-height: 1.55; }
/* Language switcher: a bracketed dropdown, closed by default. */
.ls-aw { position: relative; display: inline-block; z-index: 30; }
.ls-aw summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); cursor: pointer; color: var(--fg); user-select: none; }
.ls-aw summary::-webkit-details-marker { display: none; }
.ls-aw summary:hover { border-color: var(--accent); }
.ls-aw summary:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.ls-aw .ls-b { color: var(--signal); font-family: ui-monospace, Menlo, monospace; }
.ls-aw .ls-code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .8125rem; letter-spacing: .08em; }
.ls-aw .ls-now { margin-inline-start: 6px; color: var(--fg-soft); }
.ls-aw .ls-caret { width: 7px; height: 7px; margin-inline-start: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.ls-aw details[open] .ls-caret { transform: translateY(2px) rotate(225deg); }
.ls-aw ul { position: absolute; top: calc(100% + 4px); inset-inline-start: 0; min-width: 100%; width: max-content; flex-direction: column; flex-wrap: nowrap; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.ls-aw li a { justify-content: flex-start; gap: 14px; width: 100%; padding: 0 12px; color: var(--fg-soft); }
.ls-aw li a .ls-code { color: var(--muted); min-width: 2.2em; }
.ls-aw li a:hover { background: var(--line); color: var(--fg); }
.ls-aw li a[aria-current] { color: var(--fg); box-shadow: inset 3px 0 0 var(--signal); }
[dir=rtl] .ls-aw li a[aria-current] { box-shadow: inset -3px 0 0 var(--signal); }

/* Alpwacht application form: CHECKLIST. One page, six numbered sections, live completeness. */
.v-apply { --aw-ctl: var(--surface); --aw-h: 48px; }
.v-apply .apply-shell.awf-form { display: block; min-height: 100vh; }
.awf-form .apply-top { border-bottom: 1px solid var(--line); background: var(--bg); padding-block: 14px; }
.awf-form .apply-close { width: 28px; height: 28px; }
.awf-form .apply-progress { height: 2px; bottom: -1px; background: transparent; }
.awf-form .apply-progress span { background: var(--signal); }
.awf-form .apply-form { display: block; padding: 0; }
.awf-form .apply-ai { text-align: start; max-width: 1180px; margin-inline: auto; padding: 0 clamp(16px, 4vw, 48px) 32px; color: var(--muted); font-size: .875rem; }

.awf-layout { max-width: 1180px; margin-inline: auto; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px) 48px; }
.awf-head { max-width: 760px; margin-block-end: clamp(32px, 5vw, 56px); }
.awf-company { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-block-end: 18px; font-variant-numeric: tabular-nums; }
.awf-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.02; margin-block-end: 18px; overflow-wrap: anywhere; }
.awf-intro { color: var(--fg-soft); max-width: 58ch; margin-block-end: 8px; }
.awf-legend { color: var(--muted); font-size: .9375rem; margin: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--signal); }

.awf-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 1000px) { .awf-cols { grid-template-columns: 15rem minmax(0, 1fr); gap: 56px; } }

/* Index: live completeness per section */
.awf-index { position: sticky; top: 0; z-index: 5; background: var(--bg); margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); padding: 10px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.awf-index ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.awf-index a { display: grid; gap: 2px; justify-items: center; padding: 6px 2px 7px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: border-color .2s, color .2s, background-color .2s; }
.awf-index a:hover { color: var(--fg); border-color: var(--line-strong); }
.awf-i-n { font-weight: 700; font-size: .875rem; }
.awf-i-t { display: none; }
.awf-i-c { font-size: .6875rem; letter-spacing: .02em; }
.awf-index li.cur a { color: var(--fg); border-color: var(--fg-soft); }
.awf-index li.done a { color: var(--fg); border-color: var(--signal); background: color-mix(in srgb, var(--signal) 14%, transparent); }
.awf-index li.done .awf-i-n { color: var(--signal); }
.awf-overall { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
@media (min-width: 1000px) {
  .awf-index { top: 24px; align-self: start; margin: 0; padding: 0; border: 0; background: none; }
  .awf-index ol { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .awf-index a { grid-template-columns: 2.2rem 1fr auto; justify-items: start; align-items: center; gap: 8px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
  .awf-index li.done a { background: none; border-color: var(--line); }
  .awf-i-t { display: block; font-size: .9375rem; line-height: 1.3; }
  .awf-i-c { font-size: .8125rem; color: var(--muted); }
  .awf-index li.done .awf-i-c { color: var(--signal); }
  .awf-index li.cur .awf-i-t { color: var(--fg); }
  .awf-index li.cur a { box-shadow: inset 2px 0 0 var(--fg); padding-inline-start: 10px; }
  [dir=rtl] .awf-index li.cur a { box-shadow: inset -2px 0 0 var(--fg); }
  .awf-overall { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-block-start: 16px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
}

/* Sections */
.awf-sec { padding-block: 28px 36px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.awf-sec:first-child { border-top: 0; padding-top: 20px; }
@media (min-width: 1000px) { .awf-sec:first-child { border-top: 1px solid var(--line); padding-top: 28px; } .awf-sec { scroll-margin-top: 24px; } }
.awf-sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 14px; margin-block-end: 22px; }
.awf-num { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--line-strong); font-variant-numeric: tabular-nums; transition: color .25s; }
.awf-sec.done .awf-num { color: var(--signal); }
.awf-sec-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -0.02em; margin: 0; outline: none; }
.awf-state { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.awf-meter { display: inline-flex; gap: 3px; }
.awf-meter i { width: 9px; height: 9px; border: 1px solid var(--line-strong); transition: background-color .2s, border-color .2s; }
.awf-meter i.on { background: var(--fg-soft); border-color: var(--fg-soft); }
.awf-sec.done .awf-meter i { background: var(--signal); border-color: var(--signal); }
.awf-sec.done .awf-count { color: var(--fg); }

.awf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 20px; }
@media (min-width: 640px) { .awf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .awf-grid > .wide, .awf-grid > .awf-links, .awf-grid > .awf-ts { grid-column: 1 / -1; } }

/* Fields */
.awf-field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.awf-lbl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0; font-size: .9375rem; font-weight: 600; color: var(--fg); }
.awf-opt { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.awf-hint { margin: 0; font-size: .8125rem; color: var(--muted); }
.awf-field input[type=text], .awf-field input[type=email], .awf-field input[type=tel], .awf-field input[type=url], .awf-field textarea, .awf-field select {
  width: 100%; min-height: var(--aw-h); font: inherit; font-size: 1rem; color: var(--fg); background: var(--aw-ctl); border: 1px solid var(--line-strong); border-radius: 0; padding: 10px 12px; transition: border-color .15s; }
.awf-field textarea { min-height: 7.5rem; line-height: 1.5; resize: vertical; }
.awf-field input::placeholder, .awf-field textarea::placeholder { color: var(--muted); opacity: .6; }
.awf-field input:hover, .awf-field textarea:hover, .awf-field select:hover { border-color: var(--muted); }
.awf-field input:focus, .awf-field textarea:focus, .awf-field select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--fg); }
.awf-select { position: relative; }
.awf-select select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; cursor: pointer; text-overflow: ellipsis; }
.awf-select::after { content: ''; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--fg-soft); border-bottom: 1.5px solid var(--fg-soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.awf-field select option { background: var(--surface); color: var(--fg); }
.awf-field.bad input[type=text], .awf-field.bad input[type=email], .awf-field.bad input[type=tel], .awf-field.bad input[type=url], .awf-field.bad select, .awf-field.bad textarea, .awf-field.bad .awf-drop { border-color: var(--error); }
.awf-err { margin: 2px 0 0; font-size: .875rem; font-weight: 500; color: var(--error); display: flex; gap: 8px; align-items: baseline; }
.awf-err::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--error); transform: translateY(-1px); }

/* Radio tiles */
.awf-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-block-start: 4px; }
@media (min-width: 520px) { .awf-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .awf-opts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .awf-opts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.awf-opt-tile { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--aw-h); padding: 10px 12px; background: var(--aw-ctl); border: 1px solid var(--line-strong); cursor: pointer; font-size: .9375rem; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.awf-opt-tile:hover { border-color: var(--muted); }
.awf-opt-tile input, .awf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.awf-box { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--fg-soft); display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.awf-opt-tile .awf-box { border-radius: 50%; }
.awf-opt-tile:has(input:checked) { border-color: var(--fg); background: var(--accent-soft); }
.awf-opt-tile input:checked + .awf-box { border-color: var(--signal); background: radial-gradient(circle, var(--signal) 0 3.5px, transparent 4px); }
.awf-opt-tile:has(input:focus-visible), .awf-check label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.awf-radios.bad .awf-opt-tile { border-color: var(--error); }

/* Checkboxes */
.awf-check label { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--line-strong); background: var(--aw-ctl); cursor: pointer; font-size: .9375rem; line-height: 1.5; max-width: 72ch; }
.awf-check.quiet label { background: transparent; border-color: var(--line); color: var(--fg-soft); }
.awf-check .awf-box { width: 18px; height: 18px; margin-block-start: 2px; }
.awf-check input:checked + .awf-box { background: var(--signal); border-color: var(--signal); }
.awf-check input:checked + .awf-box::after { content: ''; width: 9px; height: 5px; border-inline-start: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.awf-check.bad label { border-color: var(--error); }
.awf-links { font-size: .875rem; margin-block-start: -10px; }
.awf-links a { color: var(--fg); }

/* Languages */
.awf-langs { display: grid; gap: 8px; margin-block-start: 4px; }
.awf-langs li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.awf-langs .awf-select { grid-column: 2 / 3; }
.awf-langs .awf-rm { grid-column: 3; grid-row: 1 / span 2; align-self: stretch; }
.awf-ln { grid-row: 1 / span 2; align-self: start; padding-top: 13px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .awf-langs li { grid-template-columns: 2rem minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .awf-langs .awf-select { grid-column: 3; }
  .awf-langs .awf-rm { grid-column: 4; grid-row: 1; }
  .awf-ln { grid-row: 1; padding-top: 0; align-self: center; }
}
.awf-langs li input { width: 100%; min-height: var(--aw-h); font: inherit; font-size: 1rem; color: var(--fg); background: var(--aw-ctl); border: 1px solid var(--line-strong); border-radius: 0; padding: 10px 12px; }
.awf-langs li input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--fg); }
.awf-field.bad .awf-langs li:first-child input { border-color: var(--error); }
.awf-rm, .awf-add { font: inherit; font-size: .875rem; color: var(--fg-soft); background: transparent; border: 1px solid var(--line); padding: 8px 12px; min-height: 44px; cursor: pointer; border-radius: 0; }
.awf-rm:hover, .awf-add:hover { color: var(--fg); border-color: var(--muted); }
.awf-add { justify-self: start; margin-block-start: 4px; border-style: dashed; }

/* CV drop */
.awf-file { position: absolute; opacity: 0; width: 1px; height: 1px; }
.awf-drop { display: flex; align-items: center; gap: 16px; padding: 18px 16px; border: 1px dashed var(--line-strong); background: var(--aw-ctl); cursor: pointer; transition: border-color .15s, background-color .15s; min-width: 0; }
.awf-drop:hover, .awf-drop.over { border-color: var(--fg-soft); background: var(--accent-soft); }
.awf-file:focus-visible + .awf-drop { outline: 2px solid var(--focus); outline-offset: 2px; }
.awf-drop.has { border-style: solid; border-color: var(--fg); }
.awf-drop-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--fg-soft); }
.awf-drop.has .awf-drop-icon { background: var(--signal); border-color: var(--signal); color: #fff; }
.awf-drop-icon svg { width: 20px; height: 20px; }
.awf-drop-text { display: grid; gap: 2px; min-width: 0; }
.awf-drop-state { font-weight: 600; overflow-wrap: anywhere; }
.awf-drop-meta { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.awf-ts:empty { display: none; }
.awf-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.awf-foot { border-top: 1px solid var(--line); padding-block: 32px 8px; }
.awf-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.awf-submit { min-width: 14rem; }
.awf-submit[disabled] { opacity: .7; cursor: progress; }
.awf-foot-status { margin: 0; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.awf-alert { margin: 20px 0 0; padding: 12px 14px; border: 1px solid var(--error); border-inline-start-width: 4px; color: var(--fg); font-weight: 500; max-width: 60ch; }
.awf-alert:empty { display: none; }
.awf-form.sending .awf-cols { opacity: .75; pointer-events: none; }

/* Confirmation */
.awf-done { max-width: 760px; margin-inline: auto; padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 48px); }
.awf-done-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; max-width: 360px; margin-block-end: 36px; }
.awf-done-grid span { display: grid; gap: 6px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.awf-done-grid i { height: 6px; background: var(--signal); }
.awf-done-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); outline: none; }
.awf-done-body { color: var(--fg-soft); max-width: 56ch; font-size: 1.0625rem; margin-block-end: 32px; }
.awf-sent .apply-ai { display: none; }

[dir=rtl] .awf-form .awf-title, [dir=rtl] .awf-sec-title, [dir=rtl] .awf-done-title { letter-spacing: 0; }
[dir=rtl] .awf-company { letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .awf-form *, .awf-form *::before, .awf-form *::after { transition: none !important; animation: none !important; }
}
.awf-i-c { font-size: .75rem; }
.awf-num { color: #6F7B85; }
/* Persian reassurance: a dismissible bar at the foot of the screen. */
.awf-note { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 40; display: flex; align-items: flex-start; gap: 12px; max-width: 640px; margin-inline: auto; padding: 14px 8px 14px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-top: 2px solid var(--signal); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); }
.awf-note p { margin: 0; flex: 1; font-size: .9375rem; line-height: 1.9; color: var(--fg); }
.awf-note-k { flex: none; font-family: ui-monospace, Menlo, monospace; color: var(--signal); font-size: .8125rem; direction: ltr; padding-top: .3em; }
.awf-note-x { flex: none; width: 44px; height: 44px; margin: -8px 0; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.awf-note-x:hover { color: var(--fg); }
.awf-form .awf-foot { padding-bottom: 120px; }
.ap-aw { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--muted); border: 1px solid var(--line); flex: none; }
.ap-aw svg { width: 18px; height: 18px; } .ap-aw:hover { color: var(--fg); border-color: var(--line-strong); }
/* Persian ad landing: the note sits under the form, not over the first screen. */
.awf-note.awf-note-inline { position: static; inset: auto; z-index: auto; margin: 28px 0 0; max-width: none; box-shadow: none; padding-inline-end: 16px; }
.awf-note-inline .awf-note-x { display: none; }
@media (max-height: 700px) and (max-width: 600px) {
  .lang-fa .awf-layout { padding-top: 22px; }
  .lang-fa .awf-head { margin-block-end: 20px; }
  .lang-fa .awf-title { font-size: 1.75rem; margin-block-end: 10px; }
}
/* Persian ad landing: one step at a time. */
.awf-paged .awf-sec { border-top: 0; padding-top: 8px; }
.awf-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.awf-foot .awf-pager { margin: 0 0 20px; }
.awf-skip, .awf-back { background: none; border: 0; padding: 10px 4px; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.awf-skip:hover, .awf-back:hover { color: var(--fg); }
