/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: 'Young Serif'; src: url(/media/fonts/young-serif.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(/media/fonts/figtree.woff) format('woff'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/media/fonts/ray-light.woff) format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/media/fonts/ray.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/media/fonts/ray-medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/media/fonts/ray-bold.woff) format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(/media/fonts/ray-extrabold.woff) format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/media/fonts/plex-arabic-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/media/fonts/plex-arabic-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/media/fonts/plex-arabic-SemiBold.woff) format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Noto Sans Devanagari'; src: url(/media/fonts/noto-devanagari.woff) format('woff'); font-weight: 400 600; unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; 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 ---------- */
/* 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: 'Ray'; } .lang-ar { --script: 'IBM Plex Sans Arabic'; } .lang-hi { --script: 'Noto Sans Devanagari'; }
.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); }
/* Language names use system fonts, so a page never downloads another script's font just to show its name. */
.lang-switch a[lang=fa], .lang-switch a[lang=ar], .lang-switch a[lang=hi] { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; }
.lang-fa .lang-switch a[lang=fa], .lang-fa .lang-switch a[lang=ar] { font-family: 'Ray', sans-serif; }
.lang-ar .lang-switch a[lang=fa] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang-ar .lang-switch a[lang=ar] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang-hi .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; }
/* ---------- 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; }
.lang-switch a { padding-block: 10px; }
.btn { min-height: 44px; }
input, select, textarea { min-height: 44px; }
input[type=checkbox], input[type=radio] { min-height: 0; }
@media (max-width: 600px) { .lang-switch { gap: 2px 18px; } }
.lang-switch a { display: inline-block; min-width: 44px; text-align: center; }
@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; }
}

/* Linden & Dune — two cities. Warm, tactile, rounded; the Berlin / Dubai split you can drag.
   Memorable thing: the ampersand handle between the two cities. */
:root {
  --bg: #EDEFE6; --surface: #F7F6F0; --fg: #26231E; --fg-soft: #3A352E; --muted: #6A6258; --line: #D3D4C7; --line-strong: #9A9686;
  --linden: #4C5F3C; --sand: #E9DCC2; --dune: #B07B4F;
  --accent: #4C5F3C; --accent-fg: #F6F6F0; --accent-hover: #26231E; --accent-soft: #DCE3D2; --focus: #4C5F3C;
  --font-display: 'Young Serif', var(--script, Georgia), Georgia, serif; --font-body: 'Figtree', var(--script, 'Helvetica Neue'), 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 400; --display-tracking: -0.012em;
  --logo-weight: 400; --logo-tracking: 0;
  --fs-h1: clamp(2.3rem, 1.3rem + 3.6vw, 4.6rem);
  --radius-btn: 999px; --radius-input: 14px; --radius-tag: 999px; --radius-dot: 50%;
  --band-bg: #4C5F3C; --band-fg: #F1F2EA; --band-btn: #E9DCC2; --band-btn-fg: #26231E;
  --footer-bg: #26231E; --footer-fg: #E3DED3; --logo-mark: #4C5F3C;
}
body { overflow-x: hidden; }
.site-footer { --muted: #A39C8F; --line: #3D3830; --logo-mark: #E9DCC2; }
h3 { font-family: var(--font-body); font-weight: 650; letter-spacing: -0.005em; }

/* Header: a floating pill */
.hdr-ld { position: fixed; inset-inline: 0; top: 14px; background: none; border: 0; display: flex; justify-content: center; pointer-events: none; z-index: 40; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 20px; background: rgba(247,246,240,.86); backdrop-filter: blur(14px) saturate(1.2); border-radius: 999px; box-shadow: 0 8px 30px -12px rgba(38,35,30,.35); max-width: calc(100vw - 24px); }
[dir=rtl] .pill { padding: 8px 20px 8px 8px; }
.pill .logo-word { font-size: 1.0625rem; }
.pill .nav ul { gap: 18px; }
.pill .nav a { font-size: .9375rem; border: 0; }
.pill .nav a[aria-current], .pill .nav a:hover { color: var(--linden); }
.pill-roles { background: var(--dune); color: #fff; text-decoration: none; font-weight: 600; font-size: .875rem; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 760px) { .pill-roles { display: none; } .js .hdr-ld .nav ul { top: calc(100% + 8px); border-radius: 20px; border: 0; box-shadow: 0 12px 30px -10px rgba(0,0,0,.3); } }
main { padding-top: 0; }
.v-site main, .v-apply main { padding-top: 84px; }

/* Buttons: pills with an arrow bubble */
.btn-pill { background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding-inline: 1.5em .6em; gap: .9em; }
.btn-pill::after { content: ''; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C5F3C' stroke-width='2'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s; }
[dir=rtl] .btn-pill::after { transform: scaleX(-1); }
.btn-pill:hover::after { transform: translateX(3px); }
.btn-pill.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.btn-pill.ghost::after { background-color: var(--fg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F6F0' stroke-width='2'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }

/* Hero: drag between Berlin and Dubai */
.ld-hero { padding: 12px 12px 0; }
.ld-split { --split: 50%; position: relative; height: min(88svh, 900px); min-height: 520px; border-radius: 28px; overflow: hidden; touch-action: pan-y; }
.ld-side { position: absolute; inset: 0; }
.ld-side .vid { position: absolute; inset: 0; }
.ld-berlin { z-index: 2; clip-path: inset(0 calc(100% - var(--split)) 0 0); transition: clip-path .5s cubic-bezier(.2,.7,.2,1); }
[dir=rtl] .ld-berlin { clip-path: inset(0 0 0 calc(100% - var(--split))); }
.ld-city { position: absolute; top: 96px; color: #fff; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.ld-berlin .ld-city { inset-inline-start: 32px; }
.ld-dubai .ld-city { inset-inline-end: 32px; }
.ld-handle { position: absolute; z-index: 3; top: 50%; inset-inline-start: var(--split); transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--sand); color: var(--fg); font-family: var(--font-display); font-size: 3.2rem; line-height: 1; cursor: ew-resize; box-shadow: 0 10px 40px -10px rgba(0,0,0,.45); transition: inset-inline-start .5s cubic-bezier(.2,.7,.2,1); }
[dir=rtl] .ld-handle { transform: translate(50%, -50%); }
.ld-handle span { display: block; transform: translateY(-3px); }
.ld-split::after { content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; inset-inline-start: var(--split); width: 2px; background: var(--sand); transform: translateX(-1px); transition: inset-inline-start .5s cubic-bezier(.2,.7,.2,1); }
.ld-hero-card { position: relative; z-index: 4; margin: -140px auto 0; width: min(880px, calc(100% - 32px)); background: var(--sand); border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 20px 60px -30px rgba(38,35,30,.5); }
.ld-hero-card h1 { margin-bottom: .3em; }
@media (max-width: 640px) { .ld-split { height: 70svh; min-height: 440px; border-radius: 20px; } .ld-handle { width: 68px; height: 68px; font-size: 2.4rem; } .ld-hero-card { margin-top: -80px; } }

/* Marquee of moments */
.ld-marquee { overflow: hidden; padding-block: 36px 8px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ld-track { display: flex; gap: 12px; width: max-content; animation: ld-marquee 60s linear infinite; }
.ld-track span { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; font-size: .9375rem; }
.ld-track span:nth-child(3n) { background: var(--sand); border-color: var(--sand); }
@keyframes ld-marquee { to { transform: translateX(-50%); } }
[dir=rtl] .ld-track { animation-direction: reverse; }

.ld-intro { padding-block: clamp(64px, 9vw, 120px); }
.ld-intro-grid { display: grid; gap: 28px 80px; }
@media (min-width: 960px) { .ld-intro-grid { grid-template-columns: 5fr 7fr; } }

/* First 90 days */
.ld-90 { background: var(--sand); padding-block: clamp(64px, 9vw, 120px); border-radius: 32px; margin-inline: 12px; }
.ld-90-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.ld-90-head h2 { margin: 0; max-width: 16ch; }
.ld-toggle { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 5px; }
.ld-toggle button { font: inherit; font-weight: 600; border: 0; background: none; padding: 10px 22px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.ld-toggle button[aria-selected=true] { background: var(--accent); color: var(--accent-fg); }
.ld-90-line { display: grid; gap: 24px; position: relative; }
@media (min-width: 900px) { .ld-90-line { grid-template-columns: repeat(4, 1fr); } .ld-90-line::before { content: ''; position: absolute; top: 10px; inset-inline: 10px; border-top: 2px dashed var(--dune); } }
.ld-90-line > li { position: relative; padding-top: 36px; animation: fw-fade .4s ease; }
.ld-90-line > li::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--dune); box-shadow: 0 0 0 6px var(--sand); }
.ld-when { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 10px; }
.ld-90-line ul li { padding-block: 6px; border-top: 1px solid rgba(38,35,30,.12); color: var(--fg-soft); }
.ld-90-note { margin: 32px 0 0; color: var(--muted); font-size: .9375rem; }
@keyframes fw-fade { from { opacity: 0; transform: translateY(8px); } }

/* Services */
.ld-svc { padding-block: clamp(72px, 9vw, 120px); }
.ld-svc h2 { margin-bottom: 32px; }
.ld-svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ld-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .ld-svc-grid { grid-template-columns: repeat(3, 1fr); } }
.ld-svc-card { background: var(--surface); border-radius: 24px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.ld-svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(38,35,30,.5); }
.ld-svc-media { aspect-ratio: 16 / 10; overflow: hidden; }
.ld-svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ld-svc-card:hover .ld-svc-media img { transform: scale(1.05); }
.ld-svc-card h3 { margin: 20px 22px 6px; }
.ld-svc-card p { margin: 0 22px 24px; color: var(--muted); }

.ld-steps-sec { padding-block: 0 clamp(72px, 9vw, 120px); }
.ld-sub { color: var(--muted); max-width: 60ch; }
.ld-steps { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .ld-steps { grid-template-columns: repeat(4, 1fr); } }
.ld-steps li { background: var(--surface); border-radius: 24px; padding: 24px; }
.ld-step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--linden); color: #fff; font-weight: 700; margin-bottom: 18px; }

.ld-places { padding-block: 0 clamp(72px, 9vw, 120px); }
.ld-places-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .ld-places-grid { grid-template-columns: 1fr 1fr; } }
.ld-place { background: var(--surface); border-radius: 28px; overflow: hidden; }
.ld-place .vid { aspect-ratio: 16 / 9; }
.ld-place-copy { padding: 28px; }
.ld-place h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; margin-bottom: 4px; }
.ld-role { font-weight: 600; color: var(--linden); }

.ld-eng { padding-block: clamp(72px, 9vw, 120px); background: var(--sand); border-radius: 32px; margin-inline: 12px; }
.ld-eng-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .ld-eng-grid { grid-template-columns: repeat(3, 1fr); } }
.ld-eng-card { background: var(--surface); border-radius: 24px; padding: 28px; }
.ld-keep { color: var(--linden); font-weight: 600; }

.ld-careers { padding-block: clamp(72px, 9vw, 120px); }
.ld-careers-grid { display: grid; gap: 32px 72px; }
@media (min-width: 960px) { .ld-careers-grid { grid-template-columns: 5fr 7fr; } }

.media-tall img, .vision-media img { border-radius: 22px; }
.talent-pool, .en-note { border-radius: 18px; }
.choice { border-radius: 14px; }
.ticks li::before { width: 7px; height: 7px; border-radius: 50%; top: .62em; background: var(--dune); }
.badge { background: var(--dune); color: #fff; }
.contact-band { margin: 0 12px 12px; border-radius: 32px; }
.contact-band h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.insights-teaser .ins-topics li { padding: 12px 18px; margin-bottom: 8px; border-radius: 999px; background: var(--surface); }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font-family: var(--font-body); font-weight: 650; font-size: .9375rem; }
.steps li { border-top: 0; background: var(--surface); border-radius: 18px; padding: 22px; }

/* Inner pages: heading in a sand card, film with soft corners */
.page-head { margin: 0 12px; background: var(--sand); border-radius: 32px; padding-block: clamp(48px, 7vw, 96px); }
.page-head + .page-film, .page-head + .sec { margin-top: 12px; }
.page-film { margin: 12px 12px clamp(40px, 6vw, 72px); --radius-film: 28px; }
.page-film .vid { overflow: hidden; }
.open-app-inner { background: #E8DCC4; border-radius: 28px; }
.open-app h2 { font-family: var(--font-display); }
/* contrast on sand and paper */
:root { --muted: #554E44; }
.badge { background: #8A5A33; color: #fff; }

/* Phone menu: a compact list with readable labels, no stretched gaps. */
@media (max-width: 760px) {
  .js .hdr-ld .nav ul { gap: 0; padding: 6px 18px 10px; }
  .js .hdr-ld .nav a { font-size: 1.0625rem; padding-block: 13px; border-bottom: 1px solid var(--line); }
  .js .hdr-ld .nav li:last-child a { border-bottom: 0; }
}

/* ---------- Linden & Dune application form: a conversation thread ---------- */
.v-apply { --apply-bg: var(--bg); }
.apply-shell.ld-convo { display: block; min-height: 100vh; min-height: 100dvh; }

/* Top bar: a floating sand pill with a soft progress line inside */
.ld-convo .apply-top { position: sticky; top: 0; z-index: 20; padding: 12px clamp(12px, 3vw, 28px); background: linear-gradient(var(--bg) 70%, rgba(237,239,230,0)); }
.ld-convo .apply-top .lang-switch { margin: 0; margin-inline-start: auto; gap: 2px 12px; font-size: .875rem; }
.ld-convo .apply-close { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: var(--surface); color: var(--linden); flex: none; box-shadow: 0 4px 16px -10px rgba(38,35,30,.45); }
.ld-convo .apply-progress { position: static; flex: 1 1 auto; max-width: 260px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ld-convo .apply-progress span { border-radius: 999px; background: var(--dune); transition: width .6s cubic-bezier(.2,.7,.2,1); }

.ld-convo .apply-form { display: block; width: 100%; max-width: 700px; margin-inline: auto; padding: clamp(12px, 3vh, 32px) 16px clamp(96px, 30vh, 280px); }
.ld-convo .apply-ai { max-width: 700px; margin-inline: auto; }

/* Opening line */
.ld-intro { background: var(--sand); border-radius: 28px; padding: clamp(24px, 4vw, 40px); margin-bottom: 28px; }
.ld-company { margin: 0 0 14px; font-size: .9375rem; font-weight: 600; color: var(--linden); }
.ld-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: var(--display-tracking); margin: 0 0 16px; outline: none; overflow-wrap: anywhere; }
.ld-lead { font-size: 1.125rem; line-height: 1.55; color: var(--fg-soft); max-width: 52ch; margin: 0 0 18px; }
.ld-honest { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; padding: 14px 16px; border-radius: 16px; background: rgba(247,246,240,.6); color: var(--muted); font-size: .9375rem; line-height: 1.5; max-width: 56ch; }
.ld-honest-mark { flex: none; width: 10px; height: 10px; margin-top: .45em; border-radius: 50%; border: 2px solid var(--linden); }
.ld-intro .ld-honest:last-child { margin-bottom: 0; }

/* The thread: a quiet line down the start side, one dot per question */
.ld-thread { list-style: none; margin: 0; padding: 0; padding-inline-start: 26px; position: relative; }
.ld-thread:not(:empty)::before { content: ''; position: absolute; top: 14px; bottom: 28px; inset-inline-start: 6px; border-inline-start: 2px dotted var(--line-strong); }
.ld-turn { position: relative; margin: 0 0 28px; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); scroll-margin-top: clamp(72px, 18vh, 180px); }
.ld-turn::before { content: ''; position: absolute; top: .6em; inset-inline-start: -26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); box-sizing: border-box; }
.ld-done-turn::before { background: var(--linden); border-color: var(--linden); }
.ld-now::before { background: var(--dune); border-color: var(--dune); box-shadow: 0 0 0 5px rgba(176,123,79,.18); top: 30px; }
.ld-turn.ld-in { opacity: 0; transform: translateY(14px); }

.ld-q { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.3; margin: 0 0 10px; outline: none; color: var(--fg); }
.ld-done-turn .ld-q { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 500; color: var(--muted); margin-bottom: 8px; }

/* Answers: a sand bubble on the end side, with a way to change it */
.ld-a { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ld-bubble { margin: 0; max-width: min(88%, 520px); padding: 12px 18px; background: var(--sand); color: var(--fg); border-radius: 22px; border-end-end-radius: 6px; font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }
.ld-a.skipped .ld-bubble { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.ld-change { font: inherit; font-size: .875rem; color: var(--muted); background: none; border: 0; padding: 6px 4px; min-height: 32px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); border-radius: 6px; }
.ld-change:hover { color: var(--linden); text-decoration-color: currentColor; }
.ld-ack { margin: 14px 0 0; color: var(--fg-soft); font-size: 1rem; font-style: italic; }

/* The current question: a soft card */
.ld-now { background: var(--surface); border-radius: 26px; padding: clamp(20px, 3.4vw, 32px); box-shadow: 0 18px 50px -34px rgba(38,35,30,.55); }
.ld-now::before { inset-inline-start: -26px; }
.ld-now.editing { outline: 2px dashed var(--dune); outline-offset: 3px; }
.ld-count { margin: 0 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--dune); }
.ld-opt { display: inline-block; margin-inline-start: 10px; padding: 2px 10px; vertical-align: .25em; border-radius: 999px; background: var(--bg); color: var(--muted); font-family: var(--font-body); font-size: .75rem; font-weight: 600; }
.ld-hint { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0 0 4px; max-width: 54ch; }
.ld-compose { margin-top: 20px; }

/* Text fields */
.ld-fields { display: grid; gap: 16px; }
@media (min-width: 600px) { .ld-fields.two { grid-template-columns: 1fr 1fr; } .ld-field-wrap.wide { grid-column: 1 / -1; } }
.ld-field-wrap { display: grid; gap: 6px; min-width: 0; }
.ld-label { font-size: .9375rem; font-weight: 500; color: var(--fg-soft); }
.ld-compose input[type=text], .ld-compose input[type=email], .ld-compose input[type=tel], .ld-compose select, .ld-compose textarea {
  width: 100%; min-width: 0; min-height: 52px; font: inherit; font-size: 1.0625rem; color: var(--fg); background: var(--bg); border: 1.5px solid transparent; border-radius: 16px; padding: 12px 16px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ld-compose select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C5F3C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 16px center; }
[dir=rtl] .ld-compose select { background-position: left 16px center; }
.ld-compose textarea { min-height: 140px; line-height: 1.5; resize: vertical; }
.ld-compose input::placeholder, .ld-compose textarea::placeholder { color: var(--muted); opacity: .6; }
.ld-compose input:hover, .ld-compose select:hover, .ld-compose textarea:hover { border-color: var(--line-strong); }
.ld-compose input:focus, .ld-compose select:focus, .ld-compose textarea:focus { outline: none; border-color: var(--linden); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.ld-compose [aria-invalid=true] { border-color: #A3271F; }

/* Choices: rounded options you tap as a reply */
.ld-choices { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ld-opt-row { display: contents; }
.ld-choices label { position: relative; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 50px; padding: 11px 22px 11px 16px; border-radius: 999px; background: var(--bg); border: 1.5px solid transparent; font-size: 1.0625rem; line-height: 1.35; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ld-choices input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.ld-choices label:hover { border-color: var(--line-strong); }
.ld-choices input:checked { border-color: var(--accent-fg); box-shadow: inset 0 0 0 4px var(--linden), inset 0 0 0 10px var(--accent-fg); }
.ld-choices label:has(input:checked) { background: var(--linden); color: var(--accent-fg); }
.ld-choices input:focus { outline: none; }
.ld-choices label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Languages: chips, then a level for each */
.ld-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-chip { font: inherit; font-size: 1rem; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ld-chip:hover { border-color: var(--line-strong); }
.ld-chip[aria-pressed=true] { background: var(--linden); border-color: var(--linden); color: var(--accent-fg); }
.ld-chip[aria-pressed=true]::before { content: ''; display: inline-block; width: 6px; height: 11px; margin-inline-end: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.ld-levels { display: grid; gap: 10px; margin-top: 18px; }
.ld-level { border: 0; margin: 0; padding: 12px 14px; border-radius: 18px; background: var(--bg); min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ld-level legend { float: inline-start; font-weight: 600; font-size: 1rem; min-width: 7.5rem; padding: 0; margin-block: 6px; }
.ld-seg { flex: 1 1 320px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); }
.ld-seg label { position: relative; cursor: pointer; }
.ld-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.ld-seg label { display: flex; }
.ld-seg span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; min-height: 40px; padding: 6px 8px; border-radius: 12px; font-size: .9rem; color: var(--muted); transition: background-color .15s, color .15s; }
.ld-seg input:checked + span { background: var(--dune); color: #fff; font-weight: 600; }
.ld-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.ld-other { margin-top: 18px; max-width: 360px; }

/* CV drop */
.ld-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ld-drop { display: grid; justify-items: center; gap: 6px; padding: 32px 20px; border-radius: 22px; border: 2px dashed var(--line-strong); background: var(--bg); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.ld-drop:hover, .ld-drop.over { border-color: var(--linden); background: var(--accent-soft); }
.ld-drop.has { border-style: solid; border-color: var(--linden); }
.ld-file:focus-visible + .ld-drop { outline: 2px solid var(--focus); outline-offset: 3px; }
.ld-drop-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--linden); margin-bottom: 6px; }
.ld-drop-icon svg { width: 24px; height: 24px; }
.ld-drop-name { font-weight: 600; overflow-wrap: anywhere; }
.ld-drop-state { font-size: .875rem; color: var(--muted); }
.ld-drop-state:empty { display: none; }

/* Consent */
.ld-check { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; font-size: 1rem; line-height: 1.5; max-width: 60ch; }
.ld-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--linden); cursor: pointer; }
.ld-check label { cursor: pointer; }
.ld-check input[aria-invalid=true] { outline: 2px solid #A3271F; outline-offset: 2px; }
.ld-privacy { margin: 4px 0 0; font-size: .9375rem; }
.ld-privacy a { color: var(--linden); text-underline-offset: 3px; }
.ld-ts { margin-top: 18px; }

/* Actions */
.ld-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.ld-reply { min-height: 50px; }
.ld-skip { font: inherit; font-size: .9375rem; font-weight: 500; color: var(--fg-soft); background: none; border: 0; padding: 10px 6px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); border-radius: 8px; }
.ld-skip:hover { color: var(--linden); }
.ld-enter { font-size: .8125rem; color: var(--muted); }
@media (hover: none) { .ld-enter { display: none; } }
.ld-err { margin: 14px 0 0; color: #A3271F; font-weight: 500; }
.ld-err:empty { display: none; }
.ld-now.invalid { box-shadow: 0 0 0 2px rgba(163,39,31,.35), 0 18px 50px -34px rgba(38,35,30,.55); }
.ld-compose.nudge .ld-err { animation: ld-nudge .32s; }
@keyframes ld-nudge { 30% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }
.ld-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Finished */
.ld-finish { display: grid; justify-items: start; gap: 4px; }
.ld-finish-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--linden); color: var(--accent-fg); margin-bottom: 18px; }
.ld-finish-mark svg { width: 32px; height: 32px; }
.ld-finish .btn { margin-top: 8px; }

/* Narrow screens */
@media (max-width: 480px) {
  .ld-convo .apply-progress { max-width: none; }
  .ld-thread { padding-inline-start: 20px; }
  .ld-thread:not(:empty)::before { inset-inline-start: 4px; }
  .ld-turn::before { inset-inline-start: -20px; width: 12px; height: 12px; }
  .ld-now::before { inset-inline-start: -20px; }
  .ld-now { padding: 18px 16px; border-radius: 22px; }
  .ld-choices label { width: 100%; border-radius: 20px; }
  .ld-level legend { min-width: 0; width: 100%; }
  .ld-bubble { max-width: 94%; }
}

/* Persian and Arabic: their own type and no italics */
.lang-fa .ld-h1, .lang-fa .ld-q { font-family: 'Ray', var(--font-body); font-weight: 500; letter-spacing: 0; }
.lang-ar .ld-h1, .lang-ar .ld-q { font-family: 'IBM Plex Sans Arabic', var(--font-body); font-weight: 500; letter-spacing: 0; }
.lang-hi .ld-h1, .lang-hi .ld-q { font-family: 'Noto Sans Devanagari', var(--font-body); letter-spacing: 0; }
.lang-fa .ld-ack, .lang-ar .ld-ack { font-style: normal; }
.lang-fa .ld-done-turn .ld-q, .lang-ar .ld-done-turn .ld-q { font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .ld-turn, .ld-turn.ld-in { transition: none; opacity: 1; transform: none; }
  .ld-compose.nudge .ld-err { animation: none; }
  .ld-convo .apply-progress span { transition: none; }
}
