/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: 'Archivo'; src: url(/assets/f/archivo.woff) format('woff'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/assets/f/ray-light.woff) format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/assets/f/ray.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/assets/f/ray-medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/assets/f/ray-bold.woff) format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/assets/f/ray-extrabold.woff) format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/assets/f/plex-arabic-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/assets/f/plex-arabic-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/assets/f/plex-arabic-SemiBold.woff) format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Noto Sans Devanagari'; src: url(/assets/f/noto-devanagari.woff) format('woff'); font-weight: 100 900; 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)); }

.lang-switch { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 28px; font-size: 0.9375rem; }
.lang-switch a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 1px solid transparent; }
.lang-switch a[aria-current] { color: var(--fg); border-bottom-color: currentColor; }
.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); }
.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 ---------- */
.lang-fa body, .lang-fa .lang-switch, .lang-fa h1, .lang-fa h2, .lang-fa h3 { font-family: 'Ray', var(--font-body); letter-spacing: 0; }
.lang-ar body, .lang-ar h1, .lang-ar h2, .lang-ar h3 { font-family: '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-fa .lang-switch a[lang=en], .lang-ar .lang-switch a[lang=en], .lang-hi .lang-switch a[lang=en] { font-family: var(--font-body); }
.lang-switch a[lang=fa] { font-family: 'Ray', sans-serif; }
.lang-switch a[lang=ar] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang-switch a[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; }

/* Feldwerk Digital — grid operations. Night-blue video, stone reading surfaces, sodium-amber signal.
   Memorable thing: services shown as feeders on a single-line diagram. */
:root {
  --bg: #E6E8E3; --surface: #EEF0EB; --fg: #161C19; --fg-soft: #2A322E; --muted: #5A6560; --line: #C5CAC4; --line-strong: #8C968F;
  --night: #111714; --night-2: #18201C; --night-line: #2C3732; --night-fg: #E3E7E1; --night-muted: #93A099;
  --amber: #F2B33D; --accent: #161C19; --accent-fg: #EEF0EB; --accent-hover: #2F4A3C; --accent-soft: #DCE3DB; --focus: #C98A12;
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif; --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 600; --display-stretch: 125%; --display-tracking: -0.03em;
  --logo-weight: 680; --logo-stretch: 125%; --logo-tracking: -0.02em;
  --fs-h1: clamp(2.6rem, 1.2rem + 5.4vw, 6.6rem); --fs-h2: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem);
  --band-bg: #111714; --band-fg: #E3E7E1; --band-btn: #F2B33D; --band-btn-fg: #111714;
  --footer-bg: #111714; --footer-fg: #DCE0DA;
}
body { font-stretch: 100%; }
.site-footer { --muted: #93A099; --line: #2C3732; }
.dark { background: var(--night); color: var(--night-fg); --fg: var(--night-fg); --muted: var(--night-muted); --line: var(--night-line); --surface: var(--night-2); }

/* Header: status strip + bar; floats over the hero on the homepage */
.hdr-fw { border: 0; background: var(--bg); }
.statusbar { font-size: .8125rem; background: var(--night); color: var(--night-muted); }
.statusbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 32px; }
.sb-sep { display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 8px; opacity: .6; }
.sb-clock { font-variant-numeric: tabular-nums; }
.sb-roles { color: var(--night-fg); text-decoration: none; }
.sb-dot { display: inline-block; width: 7px; height: 7px; background: var(--amber); margin-inline-end: 8px; animation: sb-blink 2.4s steps(1) infinite; }
@keyframes sb-blink { 50% { opacity: .25; } }
.hdr-fw .header-inner { min-height: 68px; }
.hdr-fw .nav { margin-inline-start: auto; }
.hdr-cta { margin-inline-start: 28px; }
.hdr-fw.over { position: absolute; inset-inline: 0; top: 0; background: transparent; color: #EEF0EB; }
.hdr-fw.over .statusbar { background: rgba(10, 14, 12, .55); backdrop-filter: blur(8px); }
.hdr-fw.over .btn-term { background: rgba(238,240,235,.08); color: #EEF0EB; border-color: rgba(238,240,235,.4); }
@media (max-width: 900px) { .hdr-cta, .sb-clock { display: none; } }
@media (max-width: 760px) { .hdr-fw.over .nav ul { background: var(--night); } }

/* Buttons: a terminal block, like a connection point on a diagram */
.btn-term { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); padding-inline: 1.1em 1.3em; gap: .8em; }
.btn-term::before { content: ''; width: 9px; height: 9px; background: var(--amber); flex: none; transition: transform .2s; }
.btn-term:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-term:hover::before { transform: rotate(45deg); }
.dark .btn-term, .fw-hero .btn-term { background: var(--amber); color: #111714; border-color: var(--amber); }
.dark .btn-term::before, .fw-hero .btn-term::before { background: #111714; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-primary { background: var(--fg); color: var(--bg); }

/* Hero */
.fw-hero { position: relative; min-height: max(640px, 100svh); display: grid; align-items: end; color: #EEF0EB; background: var(--night); overflow: hidden; }
.fw-hero-media { position: absolute; inset: 0; }
.fw-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,12,.45) 0%, rgba(10,14,12,.1) 35%, rgba(10,14,12,.75) 100%); }
.fw-hero-copy { position: relative; padding-block: 180px 72px; }
.fw-hero h1 { max-width: 13ch; font-size: var(--fs-h1); line-height: .98; margin-bottom: .45em; animation: fw-rise 1.2s .2s cubic-bezier(.2,.7,.2,1) both; }
.fw-hero-foot { display: grid; gap: 24px 64px; align-items: end; }
@media (min-width: 900px) { .fw-hero-foot { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .fw-hero-foot .hero-ctas { justify-content: flex-end; } }
.fw-hero .lede { color: #D5DBD4; margin: 0; }
.fw-busbar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; }
.fw-busbar path { stroke: var(--amber); stroke-width: 2; vector-effect: non-scaling-stroke; fill: none; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: fw-draw 2.4s .8s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes fw-draw { to { stroke-dashoffset: 0; } }
@keyframes fw-rise { from { opacity: 0; transform: translateY(24px); } }

/* Intro */
.fw-intro { padding-block: clamp(72px, 10vw, 140px); }
.fw-intro-grid { display: grid; gap: 32px 80px; }
@media (min-width: 960px) { .fw-intro-grid { grid-template-columns: 5fr 7fr; } }
.fw-intro h2 { max-width: 12ch; }

/* Network: services as feeders */
.fw-network { padding-block: clamp(72px, 9vw, 128px); }
.fw-net-head { display: grid; gap: 12px 64px; margin-bottom: 32px; }
@media (min-width: 900px) { .fw-net-head { grid-template-columns: 5fr 7fr; align-items: end; } }
.fw-net-head p { color: var(--night-muted); margin: 0; }
.fw-sld { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.fw-sld .bus { stroke: #EEF0EB; stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
.fw-sld .src { fill: var(--amber); }
.fw-sld .fd { cursor: pointer; }
.fw-sld .fd path { stroke: #5D6B64; stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.fw-sld .fd rect { fill: var(--night); stroke: #5D6B64; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .3s, stroke .3s; }
.fw-sld .fd.on path, .fw-sld .fd:hover path { stroke: var(--amber); }
.fw-sld .fd.on rect { fill: var(--amber); stroke: var(--amber); }
.fw-feeders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--night-line); }
@media (min-width: 900px) { .fw-feeders { grid-template-columns: repeat(6, 1fr); } }
.fw-feeders button { font: inherit; text-align: start; color: var(--night-muted); background: none; border: 0; border-top: 2px solid transparent; margin-top: -1px; padding: 16px 12px 18px 0; cursor: pointer; font-size: .9375rem; line-height: 1.35; }
.fw-feeders button:hover { color: var(--night-fg); }
.fw-feeders button[aria-selected=true] { color: var(--night-fg); border-top-color: var(--amber); }
.fd-n { display: block; font-size: .75rem; color: var(--amber); margin-bottom: 6px; letter-spacing: .04em; }
.fw-panel { display: grid; gap: 32px 64px; padding-top: 40px; border-top: 1px solid var(--night-line); animation: fw-fade .4s ease; }
@media (min-width: 900px) { .fw-panel { grid-template-columns: 6fr 5fr; } }
.fw-panel h3 { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.fw-sum { color: #CBD3CC; font-size: 1.125rem; max-width: 46ch; margin-bottom: 28px; }
.fw-deliv li { padding: 14px 0 14px 24px; border-bottom: 1px solid var(--night-line); position: relative; color: #CBD3CC; }
.fw-deliv li::before { content: ''; position: absolute; inset-inline-start: 0; top: 1.35em; width: 10px; height: 2px; background: var(--amber); }
@keyframes fw-fade { from { opacity: 0; transform: translateY(8px); } }

/* Sectors: sideways strip of footage */
.fw-sectors { padding-block: 0 clamp(72px, 9vw, 128px); }
.fw-sectors h2 { margin-bottom: 28px; }
.fw-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 440px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(16px, calc((100vw - 1240px) / 2 + 40px)) 12px; scroll-padding-inline: max(16px, calc((100vw - 1240px) / 2 + 40px)); scrollbar-width: thin; scrollbar-color: #3A4540 transparent; }
.fw-tile { scroll-snap-align: start; }
.fw-tile-media { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.fw-tile-media > img, .fw-tile-media .vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fw-tile-copy { padding-top: 18px; border-top: 2px solid var(--amber); margin-top: 16px; }
.fw-tile h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.fw-tile p { color: var(--night-muted); font-size: .9375rem; }

/* Approach: line energises with scroll */
.fw-approach { padding-block: clamp(72px, 10vw, 140px); }
.fw-ap-head { max-width: 60ch; margin-bottom: 48px; }
.fw-steps { --p: 0; position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) { .fw-steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.fw-steps::before { content: ''; position: absolute; top: 8px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--amber) calc(var(--p) * 100%), var(--line) 0); }
[dir=rtl] .fw-steps::before { background: linear-gradient(270deg, var(--amber) calc(var(--p) * 100%), var(--line) 0); }
@media (max-width: 899px) { .fw-steps::before { top: 0; bottom: 0; inset-inline: 8px auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--amber) calc(var(--p) * 100%), var(--line) 0); } .fw-steps li { padding-inline-start: 36px; } }
.fw-steps li { position: relative; padding-top: 36px; }
.fw-node { position: absolute; top: 0; inset-inline-start: 0; width: 18px; height: 18px; background: var(--bg); border: 2px solid var(--line-strong); transition: background .3s, border-color .3s; }
.fw-steps li.lit .fw-node { background: var(--amber); border-color: var(--amber); }
.fw-steps .step-n { color: var(--muted); font-size: .8125rem; margin-bottom: 8px; display: block; }
.fw-steps p { color: var(--fg-soft); }

/* City: full-bleed night footage */
.fw-city { position: relative; min-height: 86vh; display: grid; align-items: end; color: #EEF0EB; overflow: hidden; }
.fw-city > .vid { position: absolute; inset: 0; }
.fw-city::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,12,.85) 0%, rgba(10,14,12,.4) 55%, rgba(10,14,12,0) 100%); pointer-events: none; }
[dir=rtl] .fw-city::after { transform: scaleX(-1); }
.fw-city-copy { position: relative; z-index: 1; padding-block: 96px; }
.fw-city-copy h2 { max-width: 14ch; }
.fw-city-copy p { max-width: 52ch; color: #D5DBD4; }

/* Engagements */
.fw-eng { padding-block: clamp(72px, 10vw, 140px); }
.fw-eng-grid { display: grid; gap: 32px 80px; }
@media (min-width: 960px) { .fw-eng-grid { grid-template-columns: 4fr 8fr; } .fw-eng-head { position: sticky; top: 32px; align-self: start; } }
.fw-eng-card { padding-block: 32px; border-top: 2px solid var(--fg); }
.fw-eng-card h3 { font-stretch: 112%; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); }
.fw-eng-card dl { display: grid; gap: 14px; margin: 0; }
.fw-eng-card dl > div { display: grid; gap: 4px; }
@media (min-width: 760px) { .fw-eng-card dl > div { grid-template-columns: 11rem 1fr; gap: 24px; } }
.fw-eng-card dt { font-weight: 500; color: var(--muted); }

/* Careers */
.fw-careers { position: relative; padding-block: clamp(80px, 10vw, 140px); overflow: hidden; }
.fw-careers-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.fw-careers-grid { position: relative; display: grid; gap: 40px 80px; }
@media (min-width: 960px) { .fw-careers-grid { grid-template-columns: 5fr 7fr; align-items: end; } }
.fw-big-n { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: clamp(5rem, 3rem + 8vw, 10rem); line-height: .9; color: var(--amber); margin: 0 0 .1em; }
.fw-careers .job-row a { border-color: var(--night-line); }
.fw-careers .job-meta, .fw-careers .job-close { color: var(--night-muted); }

.insights-teaser .ins-topics li { padding-block: 12px; border-top: 1px solid var(--line); }
.page-head h1 { font-stretch: 125%; }
.step-n { color: var(--muted); }
.lang-fa .page-head h1, .lang-ar .page-head h1, .lang-hi .page-head h1 { font-stretch: 100%; }
.badge { background: var(--amber); color: #111714; }
.flags li::before, .ticks li::before { background: var(--amber); }

/* Inner pages */
.page-head { position: relative; }
.page-head .wrap { position: relative; }
.page-head .wrap::before { content: ''; display: block; width: 72px; height: 2px; background: var(--amber); margin-bottom: 28px; box-shadow: 72px 0 0 var(--line-strong); }
.page-film .vid { height: clamp(200px, 30vw, 46vh); }
.fw-tile:first-child .vid video, .page-film .vid video[data-src*="v-relay"] { transform: scale(1.14); }
/* Footer as a spec block: brand left, data columns right, base line in small caps */
@media (min-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr 1.6fr; } .site-footer .footer-brand { order: 4; text-align: end; } .site-footer .footer-brand p { margin-inline-start: auto; } }
.site-footer .footer-h { text-transform: uppercase; letter-spacing: .08em; font-size: 0.75rem; border-top: 2px solid #E2C044; padding-top: 10px; display: inline-block; }
.site-footer .footer-base { text-transform: uppercase; letter-spacing: .08em; font-size: 0.75rem; }

/* Feldwerk application form: technical profile on the night panel. Step rail as a feeder line, amber as signal. */
.v-apply { --apply-bg: var(--night); background: var(--night); color: var(--night-fg); }
.fw-form {
  --fg: var(--night-fg); --muted: var(--night-muted); --line: var(--night-line); --surface: var(--night-2);
  --fw-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
  --fw-err: #FF9A85; --fg-soft: #CBD3CC;
  color: var(--night-fg); background: var(--night);
}
.fw-form ::selection { background: var(--amber); color: var(--night); }
.fw-form :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 0; }

/* Top strip */
.fw-form .apply-top { border-bottom: 1px solid var(--night-line); padding-block: 12px; min-height: 56px; }
.fw-form .apply-close { color: var(--night-fg); width: 28px; height: 28px; }
.fw-form .apply-progress { height: 2px; bottom: -1px; background: transparent; }
.fw-form .apply-progress span { background: var(--amber); }
.fw-form .apply-top .lang-switch { margin-bottom: 0; font-size: .8125rem; }
.fw-form .lang-switch a { color: var(--night-muted); }
.fw-form .lang-switch a[aria-current], .fw-form .lang-switch a:hover { color: var(--night-fg); }

/* Frame */
.fw-form .apply-form { display: block; padding: 0 0 96px; align-items: initial; }
.fw-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1240px; margin-inline: auto; }
@media (min-width: 980px) { .fw-grid { grid-template-columns: 17rem minmax(0, 1fr); min-height: calc(100vh - 57px - 96px); } }
.fw-main { padding: clamp(24px, 5vh, 56px) 16px 0; min-width: 0; }
@media (min-width: 600px) { .fw-main { padding-inline: clamp(24px, 4vw, 56px); } }
.fw-stage { max-width: 760px; }

/* Rail: a vertical feeder line with one node per step */
.fw-railw { display: none; }
@media (min-width: 980px) { .fw-railw { display: block; border-inline-end: 1px solid var(--night-line); padding: 48px 24px 48px clamp(16px, 3vw, 40px); } }
.fw-rail { list-style: none; margin: 0; padding: 0; position: relative; position: sticky; top: 24px; }
.fw-rail::before { content: ''; position: absolute; inset-block: 10px; inset-inline-start: 5px; width: 2px; background: var(--night-line); }
.fw-rail li { position: relative; }
.fw-rb-btn { display: grid; grid-template-columns: 12px 2.2em 1fr; align-items: center; gap: 0 12px; width: 100%; padding: 6px 0; font: inherit; font-size: .8125rem; line-height: 1.3; text-align: start; color: var(--night-muted); background: none; border: 0; }
button.fw-rb-btn { cursor: pointer; }
button.fw-rb-btn:hover .fw-rl { color: var(--night-fg); text-decoration: underline; text-underline-offset: 3px; }
.fw-node { width: 12px; height: 12px; background: var(--night); border: 2px solid var(--night-line); position: relative; z-index: 1; transition: background-color .2s, border-color .2s; }
.fw-rn { font-family: var(--fw-mono); font-size: .75rem; letter-spacing: .02em; opacity: .8; }
.fw-r-done .fw-node { background: var(--night-fg); border-color: var(--night-fg); }
.fw-r-done .fw-rl { color: #C5CDC6; }
.fw-r-now .fw-node { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 179, 61, .18); }
.fw-r-now .fw-rn, .fw-r-now .fw-rl { color: var(--amber); }
.fw-r-now .fw-rl { font-weight: 600; }

/* Segmented meter for narrow screens */
.fw-meter { display: flex; gap: 3px; margin-bottom: 28px; }
.fw-meter i { flex: 1; height: 4px; background: var(--night-line); }
.fw-meter i.done { background: var(--night-fg); }
.fw-meter i.now { background: var(--amber); }
@media (min-width: 980px) { .fw-meter { display: none; } }

/* Question screen */
.fw-q { transition: opacity .28s ease, transform .28s cubic-bezier(.2,.7,.2,1); }
.fw-q.fw-in { opacity: 0; transform: translateY(14px); }
.fw-q.fw-in-back { opacity: 0; transform: translateY(-14px); }
.fw-q.shake .fw-fields, .fw-q.shake .fw-opts, .fw-q.shake .fw-chips, .fw-q.shake .fw-dropw, .fw-q.shake .fw-checks, .fw-q.shake .fw-langadd { animation: fw-shake .28s steps(4); }
@keyframes fw-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.fw-code { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-family: var(--fw-mono); font-size: .8125rem; letter-spacing: .04em; color: var(--night-muted); }
.fw-code-n { color: var(--amber); direction: ltr; unicode-bidi: isolate; }
.fw-code-n::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--amber); margin-inline-end: 10px; vertical-align: 1px; }
.fw-code-tag:empty { display: none; }
.fw-code-tag { padding: 1px 8px; border: 1px solid var(--night-line); font-family: var(--font-body); letter-spacing: 0; font-size: .75rem; }
.fw-title { font-family: var(--font-display); font-weight: 600; font-stretch: 118%; letter-spacing: -0.02em; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.12; margin: 0 0 12px; color: var(--night-fg); outline: none; overflow-wrap: anywhere; }
.fw-title-xl { font-stretch: 125%; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); line-height: 1.02; max-width: 18ch; margin-bottom: 20px; }
.lang-fa .fw-title, .lang-ar .fw-title, .lang-hi .fw-title { font-stretch: 100%; letter-spacing: 0; line-height: 1.4; }
.fw-co { font-family: var(--fw-mono); font-size: .8125rem; color: var(--amber); letter-spacing: .04em; margin-bottom: 20px; }
.fw-hint { color: var(--night-muted); font-size: 1rem; max-width: 60ch; margin: 0; }
.fw-facts { margin-top: 20px; padding: 12px 0 12px 16px; border-inline-start: 2px solid var(--amber); color: #C5CDC6; max-width: 60ch; }
[dir=rtl] .fw-facts { padding: 12px 16px 12px 0; }
.fw-keylist { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fw-keylist li { font-size: .8125rem; color: var(--night-muted); border: 1px solid var(--night-line); padding: 4px 10px; }
@media (hover: none) { .fw-keylist { display: none; } }

/* Text inputs as command prompts */
.fw-fields { display: grid; gap: 22px; margin-top: 28px; max-width: 560px; }
.fw-fields.fw-other, .fw-fields.fw-date { margin-top: 24px; max-width: 360px; }
.fw-field { display: grid; gap: 6px; min-width: 0; }
.fw-field[hidden] { display: none; }
.fw-lbl { font-size: .8125rem; color: var(--night-muted); letter-spacing: .02em; }
.fw-prompt { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #4A5852; transition: border-color .15s; }
.fw-prompt:focus-within { border-bottom-color: var(--amber); box-shadow: 0 1px 0 var(--amber); }
.fw-caret { font-family: var(--fw-mono); color: var(--amber); font-size: 1.125rem; flex: none; }
[dir=rtl] .fw-caret { transform: scaleX(-1); }
.fw-prompt input, .fw-prompt select { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); color: var(--night-fg); caret-color: var(--amber); background: transparent; border: 0; border-radius: 0; padding: 10px 0 12px; outline: none; }
.fw-prompt input:focus-visible, .fw-prompt select:focus-visible { outline: none; }
.fw-prompt input::placeholder { color: var(--night-muted); opacity: .6; }
.fw-prompt input[type=date] { color-scheme: dark; font-family: var(--fw-mono); font-size: 1rem; }
.fw-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(-45deg, transparent 50%, var(--amber) 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; }
[dir=rtl] .fw-select select { background-position: 6px 55%, 12px 55%; padding-inline-end: 0; padding-inline-start: 28px; }
.fw-select option { background: var(--night-2); color: var(--night-fg); }
.fw-q.invalid [aria-invalid=true], .fw-q.invalid .fw-prompt:has([aria-invalid=true]) { border-bottom-color: var(--fw-err); }

/* Options: numbered rows like a terminal menu */
.fw-opts { display: grid; margin-top: 28px; max-width: 560px; border-top: 1px solid var(--night-line); }
.fw-opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 10px 14px 10px 0; font: inherit; font-size: 1.0625rem; text-align: start; color: var(--night-fg); background: transparent; border: 0; border-bottom: 1px solid var(--night-line); cursor: pointer; position: relative; transition: background-color .12s, padding .12s; }
[dir=rtl] .fw-opt { padding: 10px 0 10px 14px; }
.fw-opt:hover { background: var(--night-2); }
.fw-opt:focus-visible { outline-offset: -2px; }
.fw-key { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; font-family: var(--fw-mono); font-size: .8125rem; font-weight: 600; color: var(--night-muted); border: 1px solid #4A5852; background: transparent; }
.fw-opt[aria-checked=true] { background: var(--night-2); padding-inline-start: 14px; }
.fw-opt[aria-checked=true]::before { content: ''; position: absolute; inset-block: -1px; inset-inline-start: 0; width: 3px; background: var(--amber); }
.fw-opt[aria-checked=true] .fw-key { background: var(--amber); color: var(--night); border-color: var(--amber); }
.fw-opt[aria-checked=true]::after { content: ''; margin-inline-start: auto; width: 14px; height: 8px; border-inline-start: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg) translateY(-3px); flex: none; }
[dir=rtl] .fw-opt[aria-checked=true]::after { transform: rotate(45deg) translateY(-3px); }

/* Skills: chip grid */
.fw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.fw-chip-w { position: relative; display: flex; }
.fw-cb { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fw-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 8px; font-size: .9375rem; color: var(--night-fg); border: 1px solid #4A5852; background: transparent; cursor: pointer; user-select: none; transition: background-color .12s, border-color .12s, color .12s; }
[dir=rtl] .fw-chip { padding: 6px 8px 6px 14px; }
.fw-chip .fw-key { min-width: 22px; height: 22px; font-size: .75rem; }
.fw-chip:not(:has(.fw-key)) { padding-inline-start: 14px; }
.fw-chip:hover { border-color: var(--night-fg); }
.fw-cb:checked + .fw-chip { background: var(--amber); color: var(--night); border-color: var(--amber); font-weight: 600; }
.fw-cb:checked + .fw-chip .fw-key { border-color: rgba(17,23,20,.4); color: var(--night); }
.fw-cb:focus-visible + .fw-chip { outline: 2px solid var(--amber); outline-offset: 3px; }
.fw-cb:checked:focus-visible + .fw-chip { outline-color: var(--night-fg); }
.fw-count { margin-top: 16px; font-family: var(--fw-mono); font-size: .8125rem; color: var(--amber); }

/* Languages */
.fw-langs { list-style: none; padding: 0; margin: 24px 0 0; max-width: 560px; }
.fw-langs:empty { display: none; }
.fw-langs li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--night-line); }
.fw-langs li:first-child { border-top: 1px solid var(--night-line); }
.fw-lang-n { font-weight: 600; overflow-wrap: anywhere; }
.fw-lang-l { font-size: .8125rem; color: var(--night-muted); }
.fw-rm { font: inherit; font-size: .8125rem; color: var(--night-muted); background: none; border: 1px solid var(--night-line); min-height: 32px; padding: 2px 10px; cursor: pointer; }
.fw-rm:hover { color: var(--fw-err); border-color: var(--fw-err); }
.fw-langadd { display: grid; gap: 18px; margin-top: 24px; max-width: 560px; padding: 18px; border: 1px dashed #4A5852; }
.fw-seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #4A5852; width: fit-content; max-width: 100%; }
.fw-seg-i { position: relative; display: flex; }
.fw-seg-i + .fw-seg-i { border-inline-start: 1px solid #4A5852; }
.fw-rb { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fw-seg-i label { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 12px; font-size: .875rem; color: var(--night-muted); cursor: pointer; }
.fw-rb:checked + label { background: var(--night-fg); color: var(--night); font-weight: 600; }
.fw-rb:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 480px) { .fw-seg { flex-direction: column; width: 100%; } .fw-seg-i + .fw-seg-i { border-inline-start: 0; border-top: 1px solid #4A5852; } .fw-seg-i label { width: 100%; } }

/* CV */
.fw-dropw { position: relative; margin-top: 28px; max-width: 560px; }
.fw-file { position: absolute; inset: 0; opacity: 0; width: 1px; height: 1px; }
.fw-drop { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 16px; align-items: center; padding: 22px 20px; border: 1px dashed #5E6C66; cursor: pointer; transition: border-color .15s, background-color .15s; }
.fw-drop:hover, .fw-drop.over { border-color: var(--amber); background: var(--night-2); }
.fw-file:focus-visible + .fw-drop { outline: 2px solid var(--amber); outline-offset: 3px; }
.fw-drop.has { border-style: solid; border-color: var(--amber); }
.fw-drop-ico { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #4A5852; color: var(--amber); }
.fw-drop.has .fw-drop-ico { background: var(--amber); color: var(--night); border-color: var(--amber); }
.fw-drop-ico svg { width: 22px; height: 22px; }
.fw-drop-name { font-weight: 600; overflow-wrap: anywhere; }
.fw-drop-meta { font-family: var(--fw-mono); font-size: .75rem; color: var(--night-muted); }

/* Consent */
.fw-checks { display: grid; gap: 4px; margin-top: 24px; max-width: 62ch; }
.fw-check { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.fw-check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--amber); cursor: pointer; }
.fw-check label { cursor: pointer; font-size: 1rem; }
.fw-checks + .fw-hint { margin-top: 14px; }
.fw-link { color: var(--amber); text-underline-offset: 3px; }

/* Review */
.fw-rev { margin: 24px 0 0; border-top: 2px solid var(--night-fg); }
.fw-rev-r { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--night-line); }
@media (min-width: 640px) { .fw-rev-r { grid-template-columns: 13rem minmax(0, 1fr); gap: 16px; align-items: baseline; } }
.fw-rev dt { font-size: .8125rem; color: var(--night-muted); display: flex; gap: 10px; align-items: baseline; }
.fw-rev-n { font-family: var(--fw-mono); font-size: .75rem; color: var(--amber); }
.fw-rev dd { margin: 0; color: var(--night-fg); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; }
.fw-rev dd > span { overflow-wrap: anywhere; min-width: 0; }
.fw-empty { color: var(--night-muted); font-style: italic; }
.fw-edit { flex: none; font: inherit; font-size: .8125rem; color: var(--night-muted); background: none; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; cursor: pointer; }
.fw-edit:hover { color: var(--amber); }
.fw-ts { margin-top: 20px; }
.fw-ts:empty { display: none; }

/* Errors */
.fw-err { margin: 16px 0 0; color: var(--fw-err); font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.fw-err:empty { display: none; }
.fw-err::before { content: 'ERR'; font-family: var(--fw-mono); font-size: .6875rem; letter-spacing: .06em; padding: 1px 5px; border: 1px solid currentColor; flex: none; }

/* Actions */
.fw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.fw-btn { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 48px; padding: .6em 1.3em; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.fw-btn-go { order: 2; background: var(--amber); color: var(--night); border-color: var(--amber); padding-inline: 1.1em 1.4em; }
.fw-btn-go::before { content: ''; width: 9px; height: 9px; background: var(--night); flex: none; transition: transform .2s; }
.fw-btn-go:hover { background: #FFC85E; border-color: #FFC85E; }
.fw-btn-go:hover::before { transform: rotate(45deg); }
.fw-btn-go[disabled] { opacity: .6; cursor: progress; }
.fw-btn-back { order: 1; background: transparent; color: var(--night-fg); border-color: #4A5852; }
.fw-btn-back:hover { border-color: var(--night-fg); }
.fw-btn-skip { order: 3; background: none; color: var(--night-muted); padding-inline: .4em; text-decoration: underline; text-underline-offset: 4px; }
.fw-btn-skip:hover { color: var(--night-fg); }
.fw-btn-line { justify-self: start; background: transparent; color: var(--night-fg); border-color: var(--night-fg); min-height: 42px; }
.fw-btn-line:hover { background: var(--night-fg); color: var(--night); }
.fw-form .fw-btn:focus-visible { outline: 2px solid var(--night-fg); outline-offset: 3px; }

/* Done */
.fw-done .fw-ok::before { background: var(--amber); }
.fw-done .fw-title { font-stretch: 125%; }

/* Key hint strip */
.fw-keys { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px clamp(16px, 3vw, 40px); background: var(--night-2); border-top: 1px solid var(--night-line); font-size: .75rem; color: var(--night-muted); }
.fw-keys[hidden], .fw-k[hidden] { display: none; }
.fw-k { font-family: var(--fw-mono); letter-spacing: .02em; }
.fw-count-all { margin-inline-start: auto; font-family: var(--fw-mono); color: var(--amber); direction: ltr; unicode-bidi: isolate; }
@media (hover: none), (max-width: 700px) { .fw-keys { display: none; } .fw-form .apply-form { padding-bottom: 48px; } }

.fw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fw-form .apply-ai { color: var(--night-muted); font-size: .8125rem; padding-bottom: 64px; }

@media (prefers-reduced-motion: reduce) {
  .fw-q, .fw-q.fw-in, .fw-q.fw-in-back { transition: none; opacity: 1; transform: none; }
  .fw-q.shake * { animation: none !important; }
}
