/* Fonts are self-hosted (fonts/), no requests to Google. One typeface for the whole site: Montserrat (variable, 300-700; latin, latin-ext, cyrillic), the KOTA brand typeface. Noto Sans Arabic for Arabic script. CJK uses system fonts. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/montserrat-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Arabic script (Arabic, Persian, Sorani Kurdish): variable font, one file for all weights */
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/noto-sans-arabic-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* =========================================================
   Kota Holdings: site stylesheet (v7, white base with dark accents, multilingual)
   Structure: tokens > base > header > heroes > components >
   sections > footer > motion > responsive
   ========================================================= */

:root {
  /* light base */
  --bg: #ffffff;
  --bg-2: #f3f6f4;
  --bg-3: #e6ebe8;
  --ink: #0b1210;
  --text: #46534d;
  --muted: #66726c;
  --line: rgba(11, 18, 16, .10);
  --line-2: rgba(11, 18, 16, .20);
  --accent: #1f8a5c;
  --accent-ink: #17724b;
  --glow: rgba(31, 138, 92, .12);
  --btn-bg: #17724b;
  --btn-fg: #ffffff;
  /* fixed dark surfaces */
  --d-bg: #07090a;
  --d-bg-2: #0b100e;
  --d-bg-3: #101714;
  --neon: #3ddc97;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --radius: 4px;
}

/* dark surfaces re-map the tokens, so every component works on both */
.on-dark, .hero, .stats, .cta-inner, .site-footer {
  --bg: var(--d-bg); --bg-2: var(--d-bg-2); --bg-3: var(--d-bg-3);
  --ink: #f1f5f3; --text: #9da9a3; --muted: #8a9690;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18);
  --accent: var(--neon); --accent-ink: var(--neon); --glow: rgba(61,220,151,.16);
  --btn-bg: var(--neon); --btn-fg: #04110b;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.75rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }
p + p { margin-top: 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lede { font-size: clamp(1.3rem, 2.3vw, 2rem); line-height: 1.4; color: var(--ink); letter-spacing: -0.025em; font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--neon); color: #04110b; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--neon); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Header (transparent, glass once scrolled) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-solid, .nav-open .site-header {
  background: rgba(7, 9, 10, .9);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.09);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; }
.brand-k { height: 32px; width: auto; }
.brand-rule { width: 1px; height: 26px; background: rgba(255,255,255,.22); }
.brand-word { height: 28px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { position: relative; color: rgba(255,255,255,.68); font-size: 14.5px; transition: color .2s; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--neon); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links .nav-cta {
  color: #fff; padding: 9px 20px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  transition: background .2s, border-color .2s, color .2s;
}
.nav-links .nav-cta:hover, .nav-links .nav-cta.active { background: var(--neon); color: #04110b; border-color: var(--neon); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared effect layer: film grain only (no grid lines) ---------- */
.fx { position: relative; isolation: isolate; overflow: hidden; }
.fx::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}

/* ---------- Hero (home, video) ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px;
  background: var(--bg); color: #fff; overflow: hidden; isolation: isolate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 70% at 85% 110%, rgba(61,220,151,.14), transparent 70%),
    linear-gradient(90deg, rgba(7,9,10,.9) 0%, rgba(7,9,10,.6) 48%, rgba(7,9,10,.2) 100%),
    linear-gradient(180deg, rgba(7,9,10,.65) 0%, rgba(7,9,10,0) 24%, rgba(7,9,10,0) 62%, var(--d-bg) 100%);
}
.hero-copy { position: relative; padding-top: var(--header-h); }
.hero h1 { color: #fff; max-width: 12ch; font-size: clamp(2.8rem, 6.4vw, 6rem); letter-spacing: -0.045em; line-height: 1; }
.hero p { margin-top: 28px; max-width: 48ch; font-size: 1.125rem; color: rgba(255,255,255,.78); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-24px); } 100% { transform: translateY(60px); } }

/* ---------- Sub-page hero (same system as home, lower) ---------- */
.hero-sub { height: 76vh; height: 76svh; min-height: 520px; max-height: 820px; }
.hero-sub h1 { max-width: 16ch; font-size: clamp(2.6rem, 5.6vw, 5rem); }
.hero-sub .hero-copy { padding-top: calc(var(--header-h) + 24px); }
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* word-by-word headline */
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.is-split .wi { display: inline-block; transform: translateY(115%); opacity: 0; animation: wordUp 1s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * .075s); }
@keyframes wordUp { to { transform: none; opacity: 1; } }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 15px/1.2 var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { box-shadow: 0 0 0 4px var(--glow), 0 8px 28px var(--glow); transform: translateY(-1px); }
.btn-ghost, .btn-ghost-light { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover, .btn-ghost-light:hover { background: var(--glow); border-color: var(--accent); }

.link-arrow { font-weight: 500; color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s, color .2s; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); border-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Stats bar ---------- */
.stats { background: var(--d-bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { position: relative; padding: 44px 32px 44px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat-num { display: block; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1; font-weight: 500; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 16px; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--neon); }
.stat-sub { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section-tight-top { padding-top: 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { max-width: 1020px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 60px; }
.section-head .eyebrow { margin-bottom: 18px; }
.mt { margin-top: 48px; }
.mt-lg { margin-top: 72px; }

/* ---------- Image slots ---------- */
.media { position: relative; overflow: hidden; background: var(--bg-3); max-height: 520px; border: 1px solid var(--line); border-radius: 2px; }
.media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(7,9,10,.28)); }
.media img, .media video {
  color: transparent; font-size: 0; width: 100%; height: 100%; object-fit: cover;
  scale: 1.1; translate: 0 var(--py, 0px);
  transition: scale 1s var(--ease), opacity .4s ease; will-change: scale, translate;
}
.js .media img { opacity: 0; }
.js .media img.is-loaded { opacity: 1; }
.media img.is-missing { visibility: hidden; }
a.card:hover .media img, .brand:hover .media img, .media:hover img { scale: 1.17; }
.media video { scale: 1.04; }
a.card:hover .media video, .card:hover .media video { scale: 1.1; }
.r-3-2 { aspect-ratio: 3 / 2; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-4-5 { aspect-ratio: 4 / 5; }
.media-video { background: var(--d-bg-3); }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-21-9 { aspect-ratio: 21 / 9; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 56px 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
.grid-divisions { gap: 48px 28px; }
.grid-4 h3, .grid-divisions h3 { font-size: 1.1rem; margin-top: 22px; }
.grid-4 p, .grid-divisions p { font-size: 15px; }
.card { display: block; }
.card h3 { margin-top: 24px; transition: color .25s; }
.card p { margin-top: 10px; max-width: 46ch; }
a.card:hover h3 { color: var(--accent-ink); }

/* ---------- Brand list (home) ---------- */
.brand-list { border-top: 1px solid var(--line); counter-reset: bl; }
.brand-list li { border-bottom: 1px solid var(--line); counter-increment: bl; }
.brand-list a { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 30px 0; overflow: hidden; }
.brand-list a::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%); }
.brand-list a:hover::before { opacity: 1; }
.bl-name { display: flex; align-items: baseline; gap: 28px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); letter-spacing: -0.03em; transition: transform .4s var(--ease), color .25s; }
.bl-name::before { content: "0" counter(bl); font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--accent-ink); }
.bl-desc { position: relative; color: var(--muted); text-align: right; padding-right: 34px; }
.bl-desc::after { content: "\2192"; position: absolute; right: 0; top: 0; color: var(--accent-ink); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
.brand-list a:hover .bl-name { transform: translateX(10px); color: var(--accent-ink); }
.brand-list a:hover .bl-desc::after { opacity: 1; transform: none; }

/* ---------- Solutions: brand rows ---------- */
.brands { display: flex; flex-direction: column; gap: 0; }
.brand { display: grid; grid-template-columns: 5fr 7fr; gap: 96px; align-items: center; padding: 96px 0; border-top: 1px solid var(--line); }
.brand:first-child { border-top: 0; padding-top: 0; }
.brand:last-child { padding-bottom: 0; }
.brand.flip { grid-template-columns: 7fr 5fr; }
.brand-media { width: 100%; max-width: 420px; }
.brand.flip .brand-media { justify-self: end; order: 2; }
.brand-text h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -0.04em; }
.brand-text p { margin-top: 22px; max-width: 50ch; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.chips li { font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); }
.brand-text .eyebrow { margin-bottom: 20px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.split-text h2 { margin-bottom: 8px; }
.role { color: var(--accent-ink); font: 500 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 48px; }
.facts > div { padding: 20px 0; border-top: 1px solid var(--line); }
.facts dt { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--ink); margin-top: 8px; }

/* founder portrait (4:5, no frame ornaments) */
.founder-photo { margin: 0; position: relative; overflow: hidden; border-radius: 2px; background: var(--bg-3); aspect-ratio: 4 / 5; box-shadow: 0 24px 60px rgba(11,18,16,.14); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.timeline { max-width: 860px; }
.tl-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-size: 2.25rem; line-height: 1; color: var(--ink); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tl-row p { margin-top: 8px; max-width: 54ch; }

.offices { margin-top: 56px; gap: 40px; }
.offices > div { border-top: 1px solid var(--line); padding-top: 24px; }
.offices h3 { margin-bottom: 6px; }
.offices a { color: var(--accent-ink); border-bottom: 1px solid transparent; }
.offices a:hover { border-color: var(--accent); }
.offices p + p { margin-top: .4em; }

/* ---------- Leadership ---------- */
/* PLATZHALTER: Teamdaten stehen als Karten im HTML (about.html, #leadership) */
/* portrait cards: 4:5 photo on top, text below; 4 columns, 2 on tablet, 1-2 on mobile */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .3s, box-shadow .4s, transform .5s var(--ease);
}
.team-card:hover { border-color: rgba(31,138,92,.4); box-shadow: 0 16px 40px rgba(11,18,16,.09); transform: translateY(-3px); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .9s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-info { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 24px; border-top: 2px solid transparent; transition: border-color .3s; }
.team-card:hover .team-info { border-top-color: var(--accent); }
.team-card h3 { font-size: 1.1rem; }
.team-role { color: var(--ink); font-size: 14.5px; line-height: 1.45; opacity: .85; }
.team-note { margin-top: 28px; }

/* ---------- Simple content ---------- */
.stack { display: flex; flex-direction: column; gap: 0; margin: 56px 0; border-top: 1px solid var(--line); }
.stack > div { padding: 32px 0; border-bottom: 1px solid var(--line); }
.stack p { margin-top: 8px; max-width: 56ch; }
.narrow h2 + .stack { margin-top: 40px; }
.narrow .btn { margin-top: 8px; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 128px; background: #fff; }
.section-alt + .cta { padding-top: 128px; }
.section + .cta { padding-top: 0; }
.cta-inner {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 48px;
  padding: 64px 56px; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 120% at 100% 100%, rgba(61,220,151,.16), transparent 70%), var(--d-bg-2);
}
.cta h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); max-width: 26ch; }
html[lang] .cta-inner h2 { hyphens: none; overflow-wrap: normal; text-wrap: balance; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Form ---------- */
.form { margin-top: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.field { margin-bottom: 24px; }
.form-row .field { margin-bottom: 0; }
.field label { display: block; font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.form .btn { margin-top: 8px; }
.form .muted { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #050706; color: rgba(255,255,255,.62); padding: 96px 0 36px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; gap: 64px; flex-wrap: wrap; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 56px; }
.footer-cols h6 { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--neon); margin-bottom: 20px; }
.footer-cols a, .footer-cols p { display: block; margin-bottom: 10px; }
.footer-cols p + p { margin-top: 0; }
.footer-cols a { transition: color .2s, transform .3s var(--ease); }
.footer-cols a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: rgba(255,255,255,.42); }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) var(--d, 0s); }
.js .reveal-media.in { clip-path: inset(0 0 0 0); }
.js .reveal-media:not(.in) img, .js .reveal-media:not(.in) video { scale: 1.3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-media { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .is-split .wi { transform: none; opacity: 1; }
  .js .reveal-media:not(.in) img { scale: 1.1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .grid-4 { gap: 40px 20px; }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(4, auto); gap: 40px 48px; justify-content: start; }
  .brand, .split { gap: 56px; }
  .team-grid { gap: 16px; }
  .team-info { padding: 18px 18px 20px; }
  .cta-inner { padding: 48px 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 24px; }
  .brand-k { height: 28px; }
  .brand-word { height: 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #07090a; padding: 8px 24px 28px;
    border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav-links { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.09); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links .nav-cta { margin-top: 20px; text-align: center; border: 1px solid rgba(255,255,255,.22); }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; flex-wrap: wrap; }
  .hero { height: 92svh; min-height: 560px; align-items: flex-end; }
  .hero-sub { height: 72svh; min-height: 500px; }
  .hero-sub h1 { max-width: 14ch; }
  .stats-grid.cols-3 .stat, .stats-grid.cols-3 .stat + .stat { padding: 32px 16px 32px 0; border-left: 0; }
  .stats-grid.cols-3 .stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
  .brand, .brand.flip { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .brand-media, .brand.flip .brand-media { max-width: 340px; justify-self: start; order: 0; }
  .hero-copy { padding-bottom: 72px; }
  .hero-overlay { background: radial-gradient(ellipse 80% 50% at 80% 100%, rgba(61,220,151,.14), transparent 70%), linear-gradient(180deg, rgba(7,9,10,.6) 0%, rgba(7,9,10,.3) 35%, rgba(7,9,10,.88) 85%, var(--d-bg) 100%); }
  .scroll-cue { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .grid-3.grid-divisions { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .grid-3 .media:not(.r-4-5) { aspect-ratio: 16 / 9; }
  .grid-4 h3, .grid-divisions h3 { margin-top: 16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { max-width: 420px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .tl-row { grid-template-columns: 90px 1fr; gap: 16px; padding: 28px 0; }
  .tl-year { font-size: 1.6rem; }
  .brand-list a { flex-direction: column; gap: 6px; padding: 22px 0; }
  .bl-name { gap: 18px; }
  .bl-desc { text-align: left; padding: 0 0 0 40px; }
  .bl-desc::after { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 32px 20px 32px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta { padding-bottom: 80px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; margin-bottom: 24px; }
  .form-row .field + .field { margin-top: 24px; }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-cols { gap: 32px 40px; }
}


@media (max-width: 700px) {
  .grid-3.grid-divisions { grid-template-columns: 1fr; gap: 40px; }
  .grid-divisions .media { max-height: 440px; }
  .grid-4 .media { max-height: 300px; }
}

@media (max-width: 480px) {
  .grid-4 h3 { font-size: 1rem; }
  .grid-4 p { font-size: 14px; line-height: 1.5; }
  .facts { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .btn { padding: 14px 22px; }
  .stat-num { font-size: 2.4rem; }
  .stat-label { font-size: 11px; letter-spacing: .1em; }
}

/* ---------- AI assistant (assistant.js) ---------- */
.kc-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(61,220,151,.5);
  background: radial-gradient(circle at 30% 25%, #17211c, #07090a 70%);
  box-shadow: 0 10px 30px rgba(7,9,10,.35);
  transition: transform .3s var(--ease);
  animation: kcPulse 3.2s ease-out 2s 3;
}
.kc-launcher:hover { transform: translateY(-2px) scale(1.04); }
.kc-launcher img { width: 28px; height: auto; transition: transform .3s var(--ease), opacity .2s; }
.kc-launcher .kc-x { position: absolute; width: 20px; height: 20px; opacity: 0; transform: rotate(-60deg); transition: transform .3s var(--ease), opacity .2s; }
.kc-launcher .kc-x::before, .kc-launcher .kc-x::after { content: ""; position: absolute; left: 9px; top: 0; width: 2px; height: 20px; background: #fff; transform: rotate(45deg); }
.kc-launcher .kc-x::after { transform: rotate(-45deg); }
.kc-open .kc-launcher img { opacity: 0; transform: scale(.6); }
.kc-open .kc-launcher .kc-x { opacity: 1; transform: none; }
@keyframes kcPulse { 0% { box-shadow: 0 10px 30px rgba(7,9,10,.35), 0 0 0 0 rgba(61,220,151,.45); } 100% { box-shadow: 0 10px 30px rgba(7,9,10,.35), 0 0 0 22px rgba(61,220,151,0); } }

.kc-panel {
  position: fixed; right: 24px; bottom: 100px; z-index: 150; width: 384px; height: min(600px, calc(100svh - 128px));
  display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #0b1210; font-size: 15px; line-height: 1.5;
  border: 1px solid rgba(11,18,16,.12); border-radius: 16px; box-shadow: 0 24px 70px rgba(7,9,10,.28);
  transform-origin: 100% 100%; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.92);
  transition: opacity .25s ease, transform .35s var(--ease), visibility .25s;
}
.kc-open .kc-panel { opacity: 1; visibility: visible; transform: none; }
.kc-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #07090a; color: #fff; }
.kc-head img { width: 26px; height: auto; }
.kc-head strong { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.kc-head small { display: block; font: 500 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #3ddc97; margin-top: 3px; }
.kc-close { margin-left: auto; width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 6px; }
.kc-close:hover { background: rgba(255,255,255,.12); }
.kc-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #f6f8f7; overscroll-behavior: contain; }
.kc-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; word-wrap: break-word; animation: kcIn .3s var(--ease); }
.kc-msg.bot { align-self: flex-start; background: #fff; border: 1px solid rgba(11,18,16,.09); border-bottom-left-radius: 4px; }
.kc-msg.user { align-self: flex-end; background: #17724b; color: #fff; border-bottom-right-radius: 4px; }
.kc-msg a { color: #17724b; text-decoration: underline; text-underline-offset: 2px; }
@keyframes kcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid rgba(11,18,16,.09); border-radius: 14px; border-bottom-left-radius: 4px; }
.kc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a9690; animation: kcDot 1.1s infinite ease-in-out; }
.kc-typing i:nth-child(2) { animation-delay: .15s; } .kc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kcDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.kc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: #f6f8f7; }
.kc-chip { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(23,114,75,.35); background: #fff; color: #17724b; cursor: pointer; transition: background .2s, color .2s; }
.kc-chip:hover { background: #17724b; color: #fff; }
.kc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(11,18,16,.1); background: #fff; }
.kc-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid rgba(11,18,16,.2); border-radius: 10px; color: #0b1210; background: #fff; }
.kc-form input:focus { outline: none; border-color: #1f8a5c; box-shadow: 0 0 0 3px rgba(31,138,92,.15); }
.kc-form button { font: inherit; font-weight: 500; padding: 0 16px; border: 0; border-radius: 10px; background: #17724b; color: #fff; cursor: pointer; }
.kc-form button:hover { background: #1f8a5c; }
.kc-note { padding: 0 14px 10px; font-size: 11.5px; color: #66726c; background: #fff; }
.kc-backdrop { display: none; }

@media (max-width: 600px) {
  .kc-launcher { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .kc-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 82svh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; transform-origin: 50% 100%; transform: translateY(100%); }
  .kc-open .kc-panel { transform: none; }
  .kc-backdrop { display: block; position: fixed; inset: 0; z-index: 149; background: rgba(7,9,10,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .kc-open .kc-backdrop { opacity: 1; visibility: visible; }
  .kc-open .kc-launcher { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .kc-launcher { animation: none !important; } .kc-typing i { animation: none !important; opacity: .6; } }

/* ---------- Team cards: photo slot, contact ---------- */
.team-contact { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.4; }
.team-contact a { color: var(--accent-ink); overflow-wrap: anywhere; }
.team-contact a:hover { text-decoration: underline; }

/* ---------- Careers: filter + job list ---------- */
.filter-bar { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.js .filter-bar { display: flex; }
.chip-btn { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.jobs { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); }
.job[hidden] { display: none; }
.job summary { list-style: none; display: grid; grid-template-columns: 1fr auto 28px; gap: 8px 24px; align-items: center; padding: 26px 0; cursor: pointer; }
.job summary::-webkit-details-marker { display: none; }
.job-title { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); letter-spacing: -.02em; font-weight: 500; transition: color .2s; }
.job summary:hover .job-title { color: var(--accent-ink); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.job-meta span:first-child { color: var(--accent-ink); }
.job-toggle { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; }
.job-toggle::before, .job-toggle::after { content: ""; position: absolute; left: 8px; top: 13px; width: 10px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.job-toggle::after { transform: rotate(90deg); }
.job[open] .job-toggle::after { transform: rotate(0); }
.job-body { padding: 0 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.job-body h4 { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.job-body ul { list-style: disc; padding-left: 18px; }
.job-body li { margin-bottom: 6px; }
.job-body .btn { grid-column: 1 / -1; justify-self: start; }
.jobs-note { margin-top: 40px; }

/* ---------- Newsroom gallery ---------- */
/* 3 x 2 grid, uniform 3:2 tiles */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { display: block; width: 100%; margin: 0; padding: 0; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.gallery-empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--muted); font: 500 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.gallery-empty[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(7,9,10,.92); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 88vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 2px; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-next { right: 20px; top: 50%; margin-top: -24px; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .job-body { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .job summary { grid-template-columns: 1fr 28px; }
  .job-meta { grid-column: 1; grid-row: 2; }
  .job-toggle { grid-column: 2; grid-row: 1; }
}
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------- Legal pages + footer links ---------- */
.legal-links { display: inline-flex; gap: 20px; }
.legal-links a { color: rgba(255,255,255,.55); transition: color .2s; }
.legal-links a:hover { color: #fff; }
.hero-legal { height: 52vh; height: 52svh; min-height: 400px; max-height: 520px; }
.container.legal { max-width: 840px; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.02em; margin: 2.4em 0 .6em; }
.legal h2:first-child, .legal .muted + h2 { margin-top: 0; }
.legal p { max-width: 70ch; line-height: 1.75; color: var(--text); }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .ph { background: #fff6d6; color: #5c4600; padding: 1px 6px; border-radius: 3px; font-size: .95em; }
@media (max-width: 900px) { .hero-legal { height: 48svh; min-height: 340px; } .footer-bottom { margin-top: 56px; } }

@media (max-width: 560px) {
  .stats-grid.cols-3 { grid-template-columns: 1fr; }
  .stats-grid.cols-3 .stat, .stats-grid.cols-3 .stat + .stat { padding: 24px 0; border-left: 0; }
  .stats-grid.cols-3 .stat + .stat { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .hero-legal h1 { font-size: clamp(1.7rem, 8vw, 2.6rem); max-width: 100%; }
  .site-footer { padding-bottom: 104px; }
}
.legal .muted + h2 { margin-top: 1.8em; }


/* =========================================================
   Multilingual layer (v11): language switcher, scripts, RTL
   Generated pages: /<code>/<page>.html, see i18n/README.md
   ========================================================= */

/* ---------- Language switcher (desktop dropdown) ---------- */
.nav-links a { white-space: nowrap; }
.lang { position: relative; display: flex; align-items: center; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  color: rgba(255,255,255,.78); font: 500 13px/1 var(--sans); letter-spacing: .1em;
  transition: color .2s, border-color .2s, background .2s;
}
.lang-btn:hover, .lang.is-open .lang-btn { color: #fff; border-color: rgba(255,255,255,.22); }
.lang-chev { flex: none; transition: transform .25s var(--ease); }
.lang.is-open .lang-chev { transform: rotate(180deg); }
.lang-panel {
  position: absolute; top: calc(100% + 14px); inset-inline-end: 0; z-index: 120; min-width: 216px; padding: 6px;
  background: rgba(9, 13, 11, .97); border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 56px rgba(0,0,0,.5);
  animation: langIn .2s var(--ease);
}
.lang-panel[hidden] { display: none; }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-title { display: none; }
.lang-list { display: block; }
.nav-links .lang-opt {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 12px; border-radius: 4px;
  border-inline-start: 2px solid transparent; font-size: 14.5px; line-height: 1.3; color: rgba(255,255,255,.72);
  transition: background .15s, color .15s;
}
.nav-links .lang-opt::after { display: none; }
.lang-opt .lc { flex: 0 0 2.4em; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--neon); }
.nav-links .lang-opt:hover, .nav-links .lang-opt:focus-visible { background: rgba(255,255,255,.07); color: #fff; outline: none; }
.nav-links .lang-opt:focus-visible { box-shadow: inset 0 0 0 1px var(--neon); }
.nav-links .lang-opt[aria-current] { color: #fff; background: rgba(61,220,151,.1); border-inline-start-color: var(--neon); }
.lang-opt .ln { font-family: var(--sans); }
.lang-opt[lang="ar"] .ln, .lang-opt[lang="ckb"] .ln, .lang-opt[lang="fa"] .ln { font-family: 'Noto Sans Arabic', var(--sans); font-size: 15.5px; line-height: 1.2; }
.lang-opt[lang="zh-Hans"] .ln { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', sans-serif; }
.lang-opt[lang="ja"] .ln { font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif; }

@media (min-width: 901px) and (max-width: 1180px) {
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 14px; }
}

/* ---------- Language switcher (mobile: inside the burger menu) ---------- */
@media (max-width: 900px) {
  .nav-links { max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .lang { display: block; }
  .lang-btn { display: none; }
  .lang-panel, .lang-panel[hidden] {
    display: block; position: static; min-width: 0; padding: 26px 0 4px; background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; animation: none;
  }
  .lang-title { display: block; margin-bottom: 8px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--neon); }
  .lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .nav-links .lang-opt { padding: 13px 0 13px 10px; padding-inline: 10px 0; font-size: 16px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .nav-links .lang-opt[aria-current] { background: rgba(61,220,151,.08); }
}

/* ---------- Legal pages: translation notice ---------- */
.legal-notice {
  margin: 0 0 2.4em; padding: 16px 20px; border-inline-start: 3px solid var(--accent); background: var(--bg-2);
  font-size: 15px; line-height: 1.6; color: var(--ink); max-width: none;
}
.legal .legal-notice a { margin-inline-start: .4em; white-space: nowrap; }

/* ---------- Scripts without case or with joined letters ----------
   Arabic script (ar, ckb, fa) and CJK (zh, ja): no letter-spacing, no uppercase,
   no negative tracking in headings (it breaks joined letters), looser line height. */
html:lang(ar) *, html:lang(ckb) *, html:lang(fa) *, html:lang(zh) *, html:lang(ja) * { letter-spacing: 0 !important; }
html:lang(ar) .eyebrow, html:lang(ckb) .eyebrow, html:lang(fa) .eyebrow, html:lang(zh) .eyebrow, html:lang(ja) .eyebrow,
html:lang(ar) .stat-label, html:lang(ckb) .stat-label, html:lang(fa) .stat-label, html:lang(zh) .stat-label, html:lang(ja) .stat-label,
html:lang(ar) .role, html:lang(ckb) .role, html:lang(fa) .role, html:lang(zh) .role, html:lang(ja) .role,
html:lang(ar) .facts dt, html:lang(ckb) .facts dt, html:lang(fa) .facts dt, html:lang(zh) .facts dt, html:lang(ja) .facts dt,
html:lang(ar) .chips li, html:lang(ckb) .chips li, html:lang(fa) .chips li, html:lang(zh) .chips li, html:lang(ja) .chips li,
html:lang(ar) .field label, html:lang(ckb) .field label, html:lang(fa) .field label, html:lang(zh) .field label, html:lang(ja) .field label,
html:lang(ar) .chip-btn, html:lang(ckb) .chip-btn, html:lang(fa) .chip-btn, html:lang(zh) .chip-btn, html:lang(ja) .chip-btn,
html:lang(ar) .job-meta, html:lang(ckb) .job-meta, html:lang(fa) .job-meta, html:lang(zh) .job-meta, html:lang(ja) .job-meta,
html:lang(ar) .job-body h4, html:lang(ckb) .job-body h4, html:lang(fa) .job-body h4, html:lang(zh) .job-body h4, html:lang(ja) .job-body h4,
html:lang(ar) .footer-cols h6, html:lang(ckb) .footer-cols h6, html:lang(fa) .footer-cols h6, html:lang(zh) .footer-cols h6, html:lang(ja) .footer-cols h6,
html:lang(ar) .gallery-empty, html:lang(ckb) .gallery-empty, html:lang(fa) .gallery-empty, html:lang(zh) .gallery-empty, html:lang(ja) .gallery-empty,
html:lang(ar) .kc-head small, html:lang(ckb) .kc-head small, html:lang(fa) .kc-head small, html:lang(zh) .kc-head small, html:lang(ja) .kc-head small,
html:lang(ar) .lang-title, html:lang(ckb) .lang-title, html:lang(fa) .lang-title, html:lang(zh) .lang-title, html:lang(ja) .lang-title {
  text-transform: none; font-family: var(--sans); font-size: 13.5px; font-weight: 500;
}
html:lang(ar) .stat-label, html:lang(ckb) .stat-label, html:lang(fa) .stat-label, html:lang(zh) .stat-label, html:lang(ja) .stat-label { font-size: 14px; }
html:lang(ar) .bl-name::before, html:lang(ckb) .bl-name::before, html:lang(fa) .bl-name::before { font-family: var(--sans); }

/* Arabic script font + proportions */
html:lang(ar), html:lang(ckb), html:lang(fa) {
  --sans: 'Noto Sans Arabic', 'Montserrat', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
html:lang(ar) body, html:lang(ckb) body, html:lang(fa) body { font-size: 18px; line-height: 1.85; }
html:lang(ar) h1, html:lang(ckb) h1, html:lang(fa) h1,
html:lang(ar) h2, html:lang(ckb) h2, html:lang(fa) h2,
html:lang(ar) h3, html:lang(ckb) h3, html:lang(fa) h3 { line-height: 1.3; font-weight: 600; }
html:lang(ar) .hero h1, html:lang(ckb) .hero h1, html:lang(fa) .hero h1 { line-height: 1.22; max-width: 14ch; font-size: clamp(2.5rem, 5.4vw, 5rem); }
html:lang(ar) .hero-sub h1, html:lang(ckb) .hero-sub h1, html:lang(fa) .hero-sub h1 { max-width: 18ch; font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
html:lang(ar) .lede, html:lang(ckb) .lede, html:lang(fa) .lede { line-height: 1.7; font-weight: 500; }
html:lang(ar) .is-split .w, html:lang(ckb) .is-split .w, html:lang(fa) .is-split .w { padding: .18em .04em .3em; margin: -.18em -.04em -.3em; }
html:lang(ar) .btn, html:lang(ckb) .btn, html:lang(fa) .btn { line-height: 1.5; }
html:lang(ar) .nav-links a, html:lang(ckb) .nav-links a, html:lang(fa) .nav-links a { font-size: 15.5px; }
html:lang(ar) .stat-num, html:lang(ckb) .stat-num, html:lang(fa) .stat-num,
html:lang(ar) .tl-year, html:lang(ckb) .tl-year, html:lang(fa) .tl-year { font-family: 'Montserrat', var(--sans); }

/* CJK: system fonts only, nothing is loaded from a CDN */
html:lang(zh) {
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
}
html:lang(ja) {
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans CJK JP', 'Noto Sans JP', system-ui, sans-serif;
}
html:lang(zh) body, html:lang(ja) body { line-height: 1.85; }
html:lang(zh) h1, html:lang(ja) h1, html:lang(zh) h2, html:lang(ja) h2, html:lang(zh) h3, html:lang(ja) h3 { line-height: 1.3; font-weight: 600; }
html:lang(zh) .hero h1, html:lang(ja) .hero h1 { line-height: 1.2; max-width: 11em; font-size: clamp(2.4rem, 5.6vw, 5rem); }
html:lang(zh) .hero-sub h1, html:lang(ja) .hero-sub h1 { max-width: 14em; font-size: clamp(2.2rem, 4.8vw, 4.2rem); }
html:lang(zh) .lede, html:lang(ja) .lede { line-height: 1.7; }
html:lang(zh) p, html:lang(ja) p { line-break: strict; }
html:lang(ja) p, html:lang(ja) li, html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .stat-sub, html:lang(ja) .stat-label, html:lang(ja) .bl-desc { word-break: auto-phrase; }
html:lang(zh) .stat-sub, html:lang(zh) .bl-desc, html:lang(zh) .chips li { word-break: keep-all; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3,
html:lang(ar) h1, html:lang(ckb) h1, html:lang(fa) h1 { text-wrap: balance; }
html:lang(zh) .is-split .w, html:lang(ja) .is-split .w { padding: .12em .02em .2em; margin: -.12em -.02em -.2em; }
html:lang(zh) .stat-num, html:lang(ja) .stat-num, html:lang(zh) .tl-year, html:lang(ja) .tl-year { font-family: 'Montserrat', var(--sans); }

/* Long-word languages: let headings and cards break instead of overflowing */
html:lang(de) h1, html:lang(de) h2, html:lang(de) h3, html:lang(ru) h1, html:lang(ru) h2, html:lang(ru) h3,
html:lang(tr) h1, html:lang(tr) h2, html:lang(tr) h3, html:lang(fr) h1, html:lang(es) h1 { overflow-wrap: break-word; hyphens: auto; }
html:lang(de) .hero h1, html:lang(ru) .hero h1 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); max-width: 14ch; }
html:lang(de) .hero-sub h1, html:lang(ru) .hero-sub h1, html:lang(tr) .hero-sub h1 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); max-width: 18ch; }
html:lang(ru) .eyebrow, html:lang(de) .eyebrow { letter-spacing: .1em; }
html:lang(ru) .chips li, html:lang(ru) .chip-btn, html:lang(ru) .job-meta { letter-spacing: .04em; }

/* ---------- Right-to-left (ar, ckb, fa) ---------- */
[dir="rtl"] .progress { transform-origin: 100% 50%; }
[dir="rtl"] .nav-links a:not(.nav-cta)::after { transform-origin: 100% 50%; }
[dir="rtl"] .hero-overlay {
  background:
    radial-gradient(ellipse 60% 70% at 15% 110%, rgba(61,220,151,.14), transparent 70%),
    linear-gradient(270deg, rgba(7,9,10,.9) 0%, rgba(7,9,10,.6) 48%, rgba(7,9,10,.2) 100%),
    linear-gradient(180deg, rgba(7,9,10,.65) 0%, rgba(7,9,10,0) 24%, rgba(7,9,10,0) 62%, var(--d-bg) 100%);
}
[dir="rtl"] .cta-inner { background: radial-gradient(ellipse 60% 120% at 0 100%, rgba(61,220,151,.16), transparent 70%), var(--d-bg-2); }

/* arrows point the other way */
[dir="rtl"] .link-arrow::after { content: " \2190"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }
[dir="rtl"] .bl-desc { text-align: left; padding-right: 0; padding-left: 34px; }
[dir="rtl"] .bl-desc::after { content: "\2190"; right: auto; left: 0; transform: translateX(8px); }
[dir="rtl"] .brand-list a:hover .bl-name { transform: translateX(-10px); }
[dir="rtl"] .brand-list a:hover .bl-desc::after { transform: none; }
[dir="rtl"] .footer-cols a:hover { transform: translateX(-3px); }

/* stats bar: dividers on the other side */
[dir="rtl"] .stat { padding: 44px 0 44px 32px; }
[dir="rtl"] .stat + .stat { padding-right: 32px; padding-left: 32px; border-left: 0; border-right: 1px solid var(--line); }

/* small parts */
[dir="rtl"] .job-body ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .scroll-cue { left: auto; right: 50%; }
[dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .team-contact a { align-self: flex-start; }
[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }
[dir="rtl"] .field select { background-position: left 14px center; }

/* chat assistant moves to the left corner */
[dir="rtl"] .kc-launcher { right: auto; left: 24px; }
[dir="rtl"] .kc-panel { right: auto; left: 24px; transform-origin: 0 100%; }
[dir="rtl"] .kc-close { margin-left: 0; margin-right: auto; }
[dir="rtl"] .kc-msg.bot { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
[dir="rtl"] .kc-msg.user { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
[dir="rtl"] .kc-typing { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
[dir="rtl"] .kc-form input { text-align: start; }

/* lightbox controls */
[dir="rtl"] .lb-close { right: auto; left: 20px; }
[dir="rtl"] .lb-prev { left: auto; right: 20px; }
[dir="rtl"] .lb-next { right: auto; left: 20px; }

@media (max-width: 900px) {
  [dir="rtl"] .stats-grid.cols-3 .stat, [dir="rtl"] .stats-grid.cols-3 .stat + .stat { padding: 32px 0 32px 16px; border: 0; }
  [dir="rtl"] .stats-grid.cols-3 .stat + .stat { padding-left: 16px; padding-right: 20px; border-right: 1px solid var(--line); }
  [dir="rtl"] .stat, [dir="rtl"] .stat + .stat { padding: 32px 0 32px 20px; border: 0; }
  [dir="rtl"] .stat:nth-child(even) { padding-right: 24px; padding-left: 20px; border-right: 1px solid var(--line); }
  [dir="rtl"] .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  [dir="rtl"] .bl-desc { text-align: right; padding: 0 40px 0 0; }
}
@media (max-width: 600px) {
  [dir="rtl"] .kc-launcher { right: auto; left: 16px; }
  [dir="rtl"] .kc-panel { left: 0; right: 0; }
}
@media (max-width: 560px) {
  [dir="rtl"] .stats-grid.cols-3 .stat, [dir="rtl"] .stats-grid.cols-3 .stat + .stat { padding: 24px 0; border: 0; }
  [dir="rtl"] .stats-grid.cols-3 .stat + .stat { border-top: 1px solid var(--line); }
  [dir="rtl"] .lb-prev { right: 8px; left: auto; }
  [dir="rtl"] .lb-next { left: 8px; right: auto; }
}
.nav-open .kc-launcher { opacity: 0; pointer-events: none; }

/* Mobile team cards: compact row, photo left, text right (emails stay on one line) */
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; gap: 14px; }
  .team-card { flex-direction: row; align-items: stretch; }
  .team-card:hover { transform: none; }
  .team-photo { flex: 0 0 104px; aspect-ratio: auto; min-height: 130px; }
  .team-info { flex: 1; min-width: 0; justify-content: center; padding: 14px 14px 14px 16px; border-top: 0; }
  .team-card h3 { font-size: 1rem; }
  .team-role { font-size: 13px; }
  .team-contact { font-size: clamp(9.5px, 2.9vw, 11px); }
  .team-contact a { overflow-wrap: normal; white-space: nowrap; }
}
