/* =====================================================================
   KARINCA CSS — DESIGN SYSTEM
   ===================================================================== */
:root {
  --navy-950: #050E1B;
  --navy-900: #081628;
  --navy-850: #0A1B33;
  --navy-800: #0C2140;
  --navy-700: #123059;
  --blue: #2366D1;
  --blue-600: #1B55B3;
  --blue-300: #9CC0F0;
  --blue-100: #DCE8F8;
  --ink: #0B1728;
  --slate: #4A5A70;
  --muted: #7B889B;
  --line: #DCE3EC;
  --line-dk: rgba(156, 192, 240, .16);
  --line-dk2: rgba(156, 192, 240, .28);
  --bg: #F4F6F9;
  --paper: #FFFFFF;
  --mist: #EAF0F7;
  --fire: #E2542B;
  --fire-600: #C4441F;
  --fire-700: #A83A1B;
  --ok: #2F9E6B;

  --f-display: 'Archivo', 'IBM Plex Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --hdr: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[dir="rtl"] {
  --f-display: 'IBM Plex Sans Arabic', 'Archivo', Tahoma, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', Tahoma, sans-serif;
  --f-mono: 'IBM Plex Sans Arabic', 'IBM Plex Mono', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[dir="rtl"] body { line-height: 1.8; }
html[lang="ar"] * { letter-spacing: 0 !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--fire-600); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display, .h1, .h2 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 115%;
  text-transform: uppercase; letter-spacing: -.012em; line-height: .96; margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(38px, 5.6vw, 86px); }
.h2 { font-size: clamp(32px, 4.3vw, 62px); }
.h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; margin: 0; letter-spacing: -.005em; }
[dir="rtl"] .display, [dir="rtl"] .h1, [dir="rtl"] .h2 { font-weight: 700; line-height: 1.22; text-transform: none; }
[dir="rtl"] .h3 { font-weight: 600; line-height: 1.45; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--slate); max-width: 60ch; margin: 0; }
.dark .lead { color: rgba(226, 236, 250, .74); }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 26px;
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow b { font-weight: 500; color: var(--muted); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.dark .eyebrow { color: var(--blue-300); }
.dark .eyebrow b { color: rgba(156, 192, 240, .55); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.fire-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 4px rgba(226, 84, 43, .18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px; border: 1px solid transparent; border-radius: 2px;
  font: 600 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
[dir="rtl"] .btn { font-size: 15px; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr, [dir="rtl"] .link:hover .arr, [dir="rtl"] a:hover .arr { transform: scaleX(-1) translateX(4px); }
/* White text needs the darker orange (5:1 contrast; the bright --fire gives only 3.8:1) */
.btn-fire { background: var(--fire-600); color: #fff; }
.btn-fire:hover { background: var(--fire-700); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-600); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #1F8F5A; color: #fff; }
.btn-wa:hover { background: #197a4c; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 11.5px; }
.link { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
[dir="rtl"] .link { font-size: 14px; }
.link .arr { transition: transform .3s var(--ease); }
.link:hover .arr, a:hover > .link .arr { transform: translateX(5px); }
.dark .link { color: var(--blue-300); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff; transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.hdr.solid, .hdr.scrolled, .hdr.mega-open { background: rgba(6, 17, 32, .96); border-bottom-color: var(--line-dk); }
@supports (backdrop-filter: blur(10px)) { .hdr.solid, .hdr.scrolled { background: rgba(6, 17, 32, .86); backdrop-filter: blur(14px) saturate(140%); } }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 28px; transition: height .35s var(--ease); }
.hdr.scrolled .hdr-in { height: 66px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 42px; height: 42px; transition: width .35s, height .35s; }
.hdr.scrolled .logo-mark { width: 36px; height: 36px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font: 800 19px/1 var(--f-display); font-stretch: 125%; letter-spacing: .06em; }
.logo-text small { font: 500 9.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 226, 242, .72); margin-top: 6px; }
[dir="rtl"] .logo-text b { font-size: 22px; font-weight: 700; }
[dir="rtl"] .logo-text small { font-size: 11px; margin-top: 4px; }
.logo-img { height: 54px; width: auto; transition: height .35s var(--ease); }
.hdr.scrolled .logo-img { height: 44px; }
.logo-img.full { height: clamp(140px, 14vw, 190px); }
.facts dd.real { color: var(--ink); }
.facts dd.real small { display: inline; color: var(--muted); font-size: 13px; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(12px, 1.35vw, 24px); list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; position: relative;
  font: 500 12px/1 var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: rgba(236, 242, 250, .78);
  transition: color .2s;
}
[dir="rtl"] .nav-link { font-size: 14.5px; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"] { color: #fff; }
.nav-link::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 4px; height: 2px; width: 0; background: var(--fire); transition: width .3s var(--ease); }
.nav-link[aria-current="page"]::after { width: 16px; }
.nav-link .chev { transition: transform .25s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hdr-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line-dk2); border-radius: 2px; }
.lang button { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; padding: 8px 9px; color: rgba(236, 242, 250, .66); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy-900); }
.lang button:hover:not([aria-pressed="true"]) { color: #fff; }
.hdr-portal { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(236, 242, 250, .78); padding: 8px 2px; border-bottom: 1px solid transparent; white-space: nowrap; }
.hdr-portal:hover { color: #fff; border-bottom-color: var(--fire); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.burger span { display: block; width: 22px; height: 1.6px; background: #fff; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* Mega menu */
.mega {
  position: absolute; inset-inline: 0; top: 100%; background: var(--paper); color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(5, 14, 27, .35);
  animation: megaIn .28s var(--ease);
}
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.mega-in { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-block: 44px 48px; }
.mega-intro p { color: var(--slate); font-size: 15px; margin: 14px 0 24px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-inline-start: 1px solid var(--line); }
.mega-col { padding: 4px 28px 22px; border-bottom: 1px solid var(--line); }
.mega-col:nth-child(n+4) { border-bottom: 0; padding-top: 22px; }
.mega-col > a { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mega-col > a .ic { color: var(--blue); flex: none; }
.mega-col > a b { font: 700 15px/1.25 var(--f-display); font-stretch: 108%; }
[dir="rtl"] .mega-col > a b { font-weight: 600; font-size: 16px; }
.mega-col > a:hover b { color: var(--blue); }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega-col li a { font-size: 14px; color: var(--slate); display: block; padding: 2px 0; }
.mega-col li a:hover { color: var(--ink); }
.mega-col .no { font: 500 11px var(--f-mono); color: var(--muted); margin-inline-start: auto; }

/* Mobile nav */
.mnav {
  position: fixed; inset: 0; z-index: 55; background: var(--navy-950); color: #fff; overflow-y: auto;
  padding: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(120px + env(safe-area-inset-bottom, 0px));
  background-image: linear-gradient(var(--line-dk) 1px, transparent 1px), linear-gradient(90deg, var(--line-dk) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: megaIn .3s var(--ease);
}
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav > nav > ul > li { border-bottom: 1px solid var(--line-dk); }
.mnav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; font: 700 26px/1.1 var(--f-display); font-stretch: 112%; text-transform: uppercase; text-align: start; }
[dir="rtl"] .mnav-link { font-weight: 600; font-size: 24px; text-transform: none; }
.mnav-link .no { font: 500 11px var(--f-mono); color: var(--blue-300); letter-spacing: .1em; }
.mnav details summary { list-style: none; cursor: pointer; }
.mnav details summary::-webkit-details-marker { display: none; }
.mnav details[open] .chev { transform: rotate(180deg); }
.mnav .sub { padding: 0 0 18px; display: grid; gap: 2px; }
.mnav .sub a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: rgba(226, 236, 250, .8); font-size: 16px; }
.mnav .sub a .ic { color: var(--blue-300); }
.empty-list { max-width: 720px; display: grid; gap: 28px; padding: 24px 0 8px; }
.empty-list .lead { margin: 0; }
/* Home: one tile per main page */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { position: relative; display: grid; align-content: start; gap: 12px; min-height: 230px; padding: 34px 30px 72px; background: var(--paper); color: var(--ink); transition: background .25s var(--ease); }
.tile:hover { background: #fff; text-decoration: none; }
.tile-no { font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.tile h2 { margin: 0; }
.tile p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.55; }
.tile-go { position: absolute; inset-inline-end: 28px; bottom: 26px; color: var(--blue); }
.tile-fire { background: var(--fire-600); color: #fff; }
.tile-fire:hover { background: var(--fire-700); }
.tile-fire p, .tile-fire .tile-no, .tile-fire .tile-go { color: rgba(255, 255, 255, .9); }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 190px; padding: 24px 18px 58px; }
  .tile p { font-size: 13.5px; }
  .tile-go { inset-inline-end: 18px; bottom: 20px; }
}
.mnav-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.mnav-top .btn { justify-content: center; min-width: 0; padding-inline: 12px; }
.mnav-foot { margin-top: 32px; display: grid; gap: 18px; }
.mnav-foot .lang { align-self: start; width: max-content; }
.mnav-foot .lang button { padding: 11px 14px; font-size: 12px; }
.mnav-contact { font: 500 14px var(--f-mono); color: rgba(226, 236, 250, .72); display: grid; gap: 6px; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(84px, 10vw, 150px); position: relative; }
.sec-tight { padding-block: clamp(64px, 7vw, 100px); }
.paper { background: var(--paper); }
.mistbg { background: var(--mist); }
.dark { background: var(--navy-900); color: #fff; }
.blueprint {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(156, 192, 240, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 192, 240, .07) 1px, transparent 1px),
    linear-gradient(rgba(156, 192, 240, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 192, 240, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.shead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.shead .lead { justify-self: end; }
.shead-foot { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sheet-ref { font: 500 11px var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.dark .sheet-ref { color: rgba(156, 192, 240, .5); }

/* reveal: content is fully visible at rest, motion only adds a small lift */
.rv { transition: transform .9s var(--ease); }
.js .rv.pre { transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) { .js .rv.pre { transform: none; opacity: 1; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(660px, min(100svh, 1000px)); display: flex; align-items: flex-end; color: #fff; background: var(--navy-950); overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 11, 22, .94) 0%, rgba(4, 11, 22, .78) 34%, rgba(4, 11, 22, .18) 68%, rgba(4, 11, 22, .05) 100%),
              linear-gradient(0deg, rgba(4, 11, 22, .92) 0%, rgba(4, 11, 22, 0) 38%),
              linear-gradient(180deg, rgba(4, 11, 22, .55) 0%, rgba(4, 11, 22, 0) 22%); }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(4, 11, 22, .94) 0%, rgba(4, 11, 22, .78) 34%, rgba(4, 11, 22, .18) 68%, rgba(4, 11, 22, .05) 100%),
              linear-gradient(0deg, rgba(4, 11, 22, .92) 0%, rgba(4, 11, 22, 0) 38%),
              linear-gradient(180deg, rgba(4, 11, 22, .55) 0%, rgba(4, 11, 22, 0) 22%); }
.hero-in { width: 100%; padding-top: calc(var(--hdr) + 90px); padding-bottom: 0; }
.hero .h1 { max-width: 15ch; }
[dir="rtl"] .hero .h1 { max-width: 14ch; font-size: clamp(40px, 5.8vw, 84px); }
.hero .h1 .l2 { display: block; color: var(--blue-300); font-weight: 300; }
[dir="rtl"] .hero .h1 .l2 { font-weight: 400; }
.hero-sub { font: 600 clamp(16px, 1.5vw, 20px)/1.35 var(--f-body); color: #fff; margin: 34px 0 14px; max-width: 46ch; }
.hero-text { font-size: 16.5px; color: rgba(222, 232, 246, .76); max-width: 56ch; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-bar { margin-top: clamp(56px, 8vh, 96px); border-top: 1px solid var(--line-dk2); display: flex; align-items: stretch; }
.hero-bar ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; flex: 1; }
.hero-bar li { padding: 20px 0 22px; margin-inline-end: 22px; font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(214, 226, 242, .7); display: flex; gap: 10px; align-items: center; }
[dir="rtl"] .hero-bar li { font-size: 13px; }
.hero-bar li::before { content: ""; width: 5px; height: 5px; background: var(--blue-300); opacity: .7; }
.hero-bar li:first-child::before { background: var(--fire); opacity: 1; }
.scroll-ind { display: flex; align-items: center; gap: 14px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line-dk2); font: 500 10.5px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 226, 242, .6); }
.scroll-ind i { width: 1px; height: 40px; background: linear-gradient(var(--blue-300), transparent); position: relative; overflow: hidden; }
.scroll-ind i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Page hero (internal) ---------- */
.phero { position: relative; color: #fff; padding-top: calc(var(--hdr) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(156, 192, 240, .7); margin-bottom: 30px; }
[dir="rtl"] .crumbs { font-size: 13px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.phero .lead { margin-top: 28px; }
.phero-art { position: relative; border: 1px solid var(--line-dk2); aspect-ratio: 400 / 260; max-width: 100%; overflow: hidden; }
.phero-art .art, .phero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phero-art figcaption { position: absolute; inset-inline-start: 0; bottom: 0; background: var(--navy-950); padding: 8px 12px; font: 500 10.5px var(--f-mono); letter-spacing: .12em; color: var(--blue-300); text-transform: uppercase; }
.phero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 7px 11px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); border-radius: 2px; background: transparent; }
[dir="rtl"] .chip { font-size: 12.5px; }
.dark .chip, .phero .chip { border-color: var(--line-dk2); color: rgba(214, 226, 242, .8); }
.chip-ph { border-color: rgba(226, 84, 43, .45) !important; color: var(--fire) !important; background: rgba(226, 84, 43, .06); }
.dark .chip-ph { color: #FF9A73 !important; }

/* ---------- Media frames ---------- */
.media { position: relative; overflow: hidden; background: var(--navy-900); }
.media .art, .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
a:hover .media .art, a:hover .media img, .card:hover .media .art { transform: scale(1.045); }

/* ---------- Positioning ---------- */
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pos-text p { font-size: clamp(17px, 1.3vw, 19px); color: var(--slate); max-width: 56ch; margin: 34px 0 40px; }
.disc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.disc li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.disc li:nth-child(odd) { padding-inline-end: 20px; }
.disc li span { font: 500 11px var(--f-mono); color: var(--muted); }
.diagram { background: var(--navy-900); border: 1px solid var(--navy-700); position: relative; }
.diagram-scroll { overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 520px; height: auto; }
.diagram-foot { border-top: 1px solid var(--line-dk); padding: 18px 22px; color: rgba(214, 226, 242, .78); font-size: 14px; line-height: 1.6; display: flex; gap: 14px; }
.diagram-foot .fire-dot { margin-top: 7px; flex: none; }
.diagram-head { display: flex; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--line-dk); font: 500 10.5px var(--f-mono); letter-spacing: .14em; color: rgba(156, 192, 240, .7); text-transform: uppercase; }
.flow { stroke-dasharray: 5 7; animation: flow 2.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
[dir="rtl"] .flow { animation-direction: reverse; }
.caps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--ink); }
.cap { padding: 30px 28px 0 0; }
.cap + .cap { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
[dir="rtl"] .cap { padding: 30px 0 0 28px; }
[dir="rtl"] .cap + .cap { padding-inline-start: 28px; }
.cap .ic { color: var(--blue); width: 28px; height: 28px; }
.cap h3 { margin: 22px 0 10px; }
.cap p { margin: 0; color: var(--slate); font-size: 15px; }
.cap .step { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .12em; float: inline-end; }

/* ---------- Solution cards ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.sol-card { display: flex; flex-direction: column; grid-column: span 4; position: relative; }
.sol-card:nth-child(1) { grid-column: span 7; }
.sol-card:nth-child(2) { grid-column: span 5; }
.sol-card .media { aspect-ratio: 400 / 260; }
.sol-card:nth-child(1) .media, .sol-card:nth-child(2) .media { aspect-ratio: auto; height: clamp(300px, 30vw, 420px); }
.sol-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; background: var(--navy-900); color: #fff; }
.sol-card.wide .media { height: 100%; min-height: 340px; aspect-ratio: auto; }
.sol-card.wide .sol-body { padding: clamp(28px, 4vw, 56px); border: 0; justify-content: center; }
.sol-card.wide .sol-body p { color: rgba(214, 226, 242, .76); }
.sol-card.wide .link { color: var(--blue-300); }
.sol-tag { position: absolute; inset-inline-start: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; background: var(--navy-950); color: #fff; padding: 12px 16px; font: 500 12px var(--f-mono); letter-spacing: .12em; }
.sol-tag .ic { color: var(--blue-300); width: 20px; height: 20px; }
.sol-body { padding: 26px 0 0; display: flex; flex-direction: column; gap: 12px; flex: 1; border-top: 0; }
.sol-body p { margin: 0; color: var(--slate); font-size: 15.5px; max-width: 52ch; }
.sol-body .link { margin-top: 8px; }
.sol-card:hover .h3 { color: var(--blue); }
.sol-card.wide:hover .h3 { color: #fff; }
.sol-card .h3 { transition: color .25s; }
.sol-list { list-style: none; padding: 0; margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Process ---------- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.proc-step { position: relative; padding: 0 24px 44px 0; }
[dir="rtl"] .proc-step { padding: 0 0 44px 24px; }
.proc-step::before { content: ""; position: absolute; top: 9px; inset-inline-start: 22px; inset-inline-end: 0; height: 1px; background: var(--line-dk2); }
.proc-step:nth-child(5n)::before { inset-inline-end: 40%; background: linear-gradient(90deg, var(--line-dk2), transparent); }
[dir="rtl"] .proc-step:nth-child(5n)::before { background: linear-gradient(270deg, var(--line-dk2), transparent); }
.proc-node { width: 19px; height: 19px; border: 1px solid var(--blue-300); display: grid; place-items: center; background: var(--navy-900); position: relative; z-index: 1; }
.proc-node::after { content: ""; width: 5px; height: 5px; background: var(--blue-300); }
.proc-step:last-child .proc-node { border-color: var(--fire); }
.proc-step:last-child .proc-node::after { background: var(--fire); }
.proc-no { font: 500 38px/1 var(--f-display); font-stretch: 125%; color: rgba(156, 192, 240, .28); margin: 26px 0 14px; font-variant-numeric: tabular-nums; }
.proc-step h3 { font-size: 17px; margin-bottom: 8px; }
.proc-step p { margin: 0 0 14px; font-size: 14px; color: rgba(214, 226, 242, .66); line-height: 1.55; }
.proc-out { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-300); display: inline-flex; gap: 8px; align-items: center; }
[dir="rtl"] .proc-out { font-size: 12.5px; }
.proc-out::before { content: "→"; opacity: .6; }
[dir="rtl"] .proc-out::before { content: "←"; }

/* ---------- Industries switcher (home) ---------- */
.ind-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ind-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ind-list button { width: 100%; display: flex; align-items: center; gap: 18px; padding: 17px 4px; border-bottom: 1px solid var(--line); text-align: start; transition: color .2s, padding .3s var(--ease); }
.ind-list button span { font: 500 11px var(--f-mono); color: var(--muted); width: 26px; font-variant-numeric: tabular-nums; }
.ind-list button b { font: 600 clamp(18px, 1.6vw, 22px)/1.2 var(--f-display); font-stretch: 108%; flex: 1; }
[dir="rtl"] .ind-list button b { font-weight: 600; }
.ind-list button .arr { opacity: 0; transition: opacity .2s, transform .3s; color: var(--blue); }
.ind-list button[aria-selected="true"] { color: var(--blue); padding-inline-start: 14px; }
.ind-list button[aria-selected="true"] .arr { opacity: 1; }
.ind-panel { position: sticky; top: calc(var(--hdr) + 24px); }
.ind-panel .media { aspect-ratio: 400 / 260; }
.ind-panel-body { padding: 28px 0 0; display: grid; gap: 14px; }
.ind-panel-body p { margin: 0; color: var(--slate); max-width: 54ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Industry cards (industries page) */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.ind-card { display: flex; flex-direction: column; }
.ind-card .media { aspect-ratio: 400 / 260; }
.ind-card-body { display: grid; gap: 10px; padding-top: 22px; }
.ind-card-body p { margin: 0; color: var(--slate); font-size: 15px; }
.ind-card-body .no { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .12em; }
.ind-card:hover .h3 { color: var(--blue); }

/* ---------- Projects ---------- */
.proj-feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; }
.proj-feat .stack { display: grid; gap: 32px; }
.proj-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.proj-card:hover { border-color: #c3cfdd; box-shadow: 0 24px 50px -30px rgba(8, 22, 40, .35); }
.proj-card .media { aspect-ratio: 400 / 240; }
.proj-feat > .proj-card .media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.proj-body { padding: 24px 26px 26px; display: grid; gap: 14px; }
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.proj-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; margin: 0; }
.proj-meta dt { font: 500 10.5px/2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .proj-meta dt { font-size: 12px; }
.proj-meta dd { margin: 0; color: var(--ink); }
.proj-body p { margin: 0; color: var(--slate); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { padding: 10px 14px; border: 1px solid var(--line); font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); border-radius: 2px; background: var(--paper); transition: all .2s; }
[dir="rtl"] .filters button { font-size: 13px; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.count { font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.brand { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 16px; transition: background .3s; }
.brand:hover { background: #fbfcfe; }
.brand .wm { color: #4b5566; opacity: .72; transition: opacity .3s; text-align: center; }
.brand:hover .wm { opacity: 1; }
.brand .wm.s1 { font: 800 22px var(--f-display); font-stretch: 125%; letter-spacing: .08em; }
.brand .wm.s2 { font: 300 25px var(--f-display); font-stretch: 90%; letter-spacing: .02em; }
.brand .wm.s3 { font: 600 17px var(--f-mono); letter-spacing: .28em; }
.brand .wm.s4 { font: italic 700 24px var(--f-body); letter-spacing: -.02em; }
.brand .wm img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .8; }
.brand small { position: absolute; inset-inline-start: 14px; bottom: 11px; font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .brand small { font-size: 11.5px; }
.note { display: flex; gap: 12px; align-items: center; font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: .06em; margin-top: 22px; }
[dir="rtl"] .note { font-size: 13px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); }
.why-title { position: sticky; top: calc(var(--hdr) + 40px); align-self: start; }
.why-title .display { font-size: clamp(40px, 5.2vw, 78px); line-height: .98; }
.why-title .display span { display: block; }
.why-title .display span:nth-child(2) { color: var(--blue); }
.why-title .display span:nth-child(3) { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
[dir="rtl"] .why-title .display span:nth-child(3) { color: var(--ink); -webkit-text-stroke: 0; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.why-item { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.why-item h3 { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.why-item h3::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--blue); flex: none; }
.why-item p { margin: 0; color: var(--slate); font-size: 15px; }

/* ---------- Standards ---------- */
.std-state { font: 600 clamp(22px, 2.4vw, 34px)/1.3 var(--f-display); font-stretch: 104%; max-width: 30ch; margin: 0; text-wrap: balance; }
[dir="rtl"] .std-state { font-weight: 600; line-height: 1.55; }
.std-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-dk2); margin-top: clamp(48px, 6vw, 80px); }
.std { padding: 28px 22px 10px 0; }
.std + .std { padding-inline-start: 22px; border-inline-start: 1px solid var(--line-dk); }
[dir="rtl"] .std { padding: 28px 0 10px 22px; }
[dir="rtl"] .std + .std { padding-inline-start: 22px; }
.std-code { font: 800 clamp(38px, 4vw, 60px)/1 var(--f-display); font-stretch: 125%; color: #fff; letter-spacing: -.01em; }
.std-name { font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(156, 192, 240, .6); margin: 12px 0 18px; min-height: 3em; }
.std ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.std li { font-size: 13.5px; color: rgba(214, 226, 242, .78); line-height: 1.45; }
.std li b { display: block; font: 500 12px var(--f-mono); color: #fff; letter-spacing: .04em; }
.std-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dk); font-size: 13.5px; color: rgba(214, 226, 242, .6); }

/* ---------- Maintenance ---------- */
.mnt-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.mnt-grid .lead { margin: 28px 0 36px; }
.ring svg { width: 100%; height: auto; display: block; }
.ring-list { display: none; list-style: none; padding: 0; margin: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ring-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.ring-list li span { font: 500 11px var(--f-mono); color: var(--muted); }
.ring-spin { transform-origin: 320px 220px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Quote ---------- */
.quote-wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0; border: 1px solid var(--line-dk2); }
.quote-side { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 30px; }
.quote-side .lead { margin: 0; }
.next { list-style: none; margin: 0; padding: 0; counter-reset: nx; display: grid; gap: 0; border-top: 1px solid var(--line-dk); }
.next li { counter-increment: nx; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dk); color: rgba(226, 236, 250, .86); font-size: 15px; }
.next li::before { content: "0" counter(nx); font: 500 11px/2 var(--f-mono); color: var(--blue-300); }
.direct { display: grid; gap: 12px; margin-top: auto; }
.direct a, .direct div { display: flex; gap: 12px; align-items: center; color: #fff; font: 500 15px var(--f-mono); direction: ltr; justify-content: flex-start; }
[dir="rtl"] .direct a, [dir="rtl"] .direct div { justify-content: flex-end; }
.direct .ic { color: var(--blue-300); flex: none; }
.quote-form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 56px); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.fld { display: grid; gap: 8px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld > label, .fld > .lbl { font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
[dir="rtl"] .fld > label, [dir="rtl"] .fld > .lbl { font-size: 13px; }
.fld > label i, .fld > .lbl i { color: var(--fire); font-style: normal; }
.inp { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: #FAFBFD; color: var(--ink); font: 400 16px/1.4 var(--f-body); transition: border-color .2s, background .2s, box-shadow .2s; }
.inp:hover { border-color: #c3cfdd; }
.inp:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(35, 102, 209, .14); }
textarea.inp { min-height: 130px; resize: vertical; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5A70' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 40px; }
[dir="rtl"] select.inp { background-position: left 14px center; }
.fld.bad .inp, .fld.bad .opts { border-color: var(--fire); }
.fld.bad > label, .fld.bad > .lbl { color: var(--fire); }
[type="tel"], [type="email"] { direction: ltr; }
[dir="rtl"] [type="tel"], [dir="rtl"] [type="email"] { text-align: right; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; color: var(--slate); background: #FAFBFD; transition: all .2s; }
.opt input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--fire); outline-offset: 2px; }
.drop { position: relative; border: 1px dashed #b9c6d6; border-radius: 2px; padding: 22px; display: flex; gap: 16px; align-items: center; background: #FAFBFD; transition: border-color .2s, background .2s; }
.drop.over, .drop:hover { border-color: var(--blue); background: #f2f7fe; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { color: var(--blue); width: 26px; height: 26px; flex: none; }
.drop b { display: block; font-weight: 600; font-size: 15px; }
.drop small { color: var(--muted); font-size: 13px; }
.files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.files li { font: 500 12.5px var(--f-mono); color: var(--slate); display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--mist); direction: ltr; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; font-size: 14.5px; border-inline-start: 3px solid var(--blue); background: var(--mist); }
.form-msg.ok { border-color: var(--ok); background: #eaf6f0; }
.form-msg.warn { border-color: var(--fire); background: #fdf0eb; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dk); }
.cta-band .h2 { font-size: clamp(28px, 3.4vw, 48px); }
.cta-band p { margin: 12px 0 0; color: rgba(214, 226, 242, .72); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Detail pages ---------- */
.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line); }
.scope li { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.scope li span { font: 500 11px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.appr { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dk2); }
.appr > div { padding: 28px 24px 0 0; }
.appr > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--line-dk); }
[dir="rtl"] .appr > div { padding: 28px 0 0 24px; }
[dir="rtl"] .appr > div + div { padding-inline-start: 24px; }
.appr .no { font: 500 36px/1 var(--f-display); font-stretch: 125%; color: rgba(156, 192, 240, .3); }
.appr h3 { margin: 22px 0 10px; }
.appr p { margin: 0; color: rgba(214, 226, 242, .7); font-size: 15px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.rel { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); font-weight: 600; transition: background .2s, color .2s; }
.rel:hover { background: var(--navy-900); color: #fff; }
.rel .arr { color: var(--blue); }
.rel:hover .arr { color: var(--blue-300); }
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.rec { display: grid; gap: 14px; }
.rec .media { aspect-ratio: 400 / 260; }
.rec p { margin: 0; color: var(--slate); font-size: 14.5px; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.about-b { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); }
.about-b:not(:nth-child(3n+1)) { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
[dir="rtl"] .about-b { padding: 32px 0 40px 32px; }
[dir="rtl"] .about-b:not(:nth-child(3n+1)) { padding-inline-start: 32px; }
.about-b .mono { color: var(--muted); }
.about-b h3 { margin: 18px 0 12px; }
.about-b p { margin: 0; color: var(--slate); font-size: 15.5px; }
.facts { border: 1px solid var(--line); background: var(--paper); }
.facts h3 { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.facts dt, .facts dd { padding: 14px 24px; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font: 500 11px/1.9 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .facts dt { font-size: 12.5px; }
.facts dd { color: var(--fire); font-weight: 500; }
.facts .note { padding: 0 24px 18px; }

/* Engineering */
.eng-mod { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); align-items: start; }
.eng-mod:first-child { border-top: 0; }
.eng-mod .ref { font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--blue); }
.eng-mod h2 { margin: 16px 0 16px; font: 700 clamp(26px, 2.6vw, 38px)/1.1 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
[dir="rtl"] .eng-mod h2 { font-weight: 700; text-transform: none; line-height: 1.4; }
.eng-mod p { color: var(--slate); margin: 0 0 18px; max-width: 48ch; }
.formula { font: 500 15px/1.8 var(--f-mono); background: var(--navy-900); color: #fff; padding: 18px 20px; border-inline-start: 3px solid var(--blue); direction: ltr; text-align: left; overflow-x: auto; }
.formula small { display: block; color: var(--blue-300); font-size: 11.5px; letter-spacing: .06em; line-height: 1.6; }
.plot { background: var(--paper); border: 1px solid var(--line); padding: 20px; }
.plot-scroll { overflow-x: auto; }
.plot svg { display: block; width: 100%; height: auto; min-width: 460px; }
.plot-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.calc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.calc .fld label { font-size: 10px; }
[dir="rtl"] .calc .fld label { font-size: 12px; }
.calc .inp { min-height: 46px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; direction: ltr; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); }
.calc-out div { padding: 18px; }
.calc-out div + div { border-inline-start: 1px solid var(--line); }
.calc-out span { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; }
[dir="rtl"] .calc-out span { font-size: 12px; }
.calc-out b { font: 700 clamp(22px, 2.2vw, 30px)/1.3 var(--f-display); font-stretch: 110%; font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }
.calc-out div:last-child b { color: var(--fire); }
.calc-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.tbl th { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
[dir="rtl"] .tbl th { font-size: 12px; }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font: 500 13px var(--f-mono); color: var(--blue); white-space: nowrap; }
.tbl tbody tr:hover { background: #f8fafc; }
.revs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--paper); }
.revs div { padding: 22px 18px; position: relative; }
.revs div + div { border-inline-start: 1px solid var(--line); }
.revs .mono { color: var(--blue); font-size: 11px; }
.revs b { display: block; margin: 10px 0 14px; font-weight: 600; line-height: 1.35; }
.revs small { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .1em; }
.revs div:last-child .mono { color: var(--fire); }

/* Case study */
.cs-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cs-toc { position: sticky; top: calc(var(--hdr) + 32px); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cs-toc a { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--slate); }
.cs-toc a span { font: 500 11px/1.9 var(--f-mono); color: var(--muted); }
.cs-toc a:hover { color: var(--ink); }
.cs-sec { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 24px); }
.cs-sec:last-child { border-bottom: 0; }
.cs-sec h2 { font: 700 clamp(24px, 2.4vw, 34px)/1.15 var(--f-display); font-stretch: 112%; text-transform: uppercase; margin: 10px 0 18px; }
[dir="rtl"] .cs-sec h2 { text-transform: none; line-height: 1.4; }
.cs-sec p { color: var(--slate); max-width: 64ch; margin: 0; }
.cs-sec ul.cl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cs-sec ul.cl li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.cs-sec ul.cl li::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--fire); flex: none; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
.gallery .media:first-child { grid-row: span 2; }
.gallery .media { position: relative; }
.gallery .media figcaption { position: absolute; inset-inline-start: 10px; bottom: 10px; font: 500 10px var(--f-mono); letter-spacing: .12em; background: rgba(5, 14, 27, .85); color: var(--blue-300); padding: 5px 8px; text-transform: uppercase; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dk2); margin-top: 40px; }
.cs-facts div { padding: 18px 18px 0 0; }
.cs-facts div + div { padding-inline-start: 18px; border-inline-start: 1px solid var(--line-dk); }
[dir="rtl"] .cs-facts div { padding: 18px 0 0 18px; }
[dir="rtl"] .cs-facts div + div { padding-inline-start: 18px; }
.cs-facts span { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(156, 192, 240, .6); display: block; margin-bottom: 6px; }
.cs-facts b { font-weight: 500; font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cinfo { display: grid; border-top: 1px solid var(--line); }
.cinfo > div { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cinfo .ic { color: var(--blue); }
.cinfo span { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
[dir="rtl"] .cinfo span { font-size: 12px; }
.cinfo b { font-weight: 500; font-size: 16.5px; }
.cinfo .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.copy { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); padding: 8px 10px; border: 1px solid var(--line); border-radius: 2px; }
.copy:hover { border-color: var(--blue); }
.mapbox { position: relative; margin-top: 32px; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--navy-900); }
.mapbox svg { width: 100%; height: 100%; display: block; }
.mapbox a { position: absolute; inset-inline-end: 14px; bottom: 14px; }
.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 3.5vw, 44px); }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-950); color: #fff; padding-top: clamp(72px, 9vw, 130px); position: relative; overflow: hidden; }
.ftr-statement { font: 800 clamp(34px, 6.2vw, 96px)/.95 var(--f-display); font-stretch: 125%; text-transform: uppercase; margin: 0 0 clamp(56px, 7vw, 100px); max-width: 16ch; text-wrap: balance; }
[dir="rtl"] .ftr-statement { font-weight: 700; line-height: 1.3; text-transform: none; font-size: clamp(34px, 5.4vw, 80px); }
.ftr-statement em { font-style: normal; color: var(--blue-300); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dk); }
.ftr-brand p { color: rgba(214, 226, 242, .64); font-size: 14.5px; max-width: 38ch; margin: 22px 0 26px; }
.ftr h4 { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); margin: 6px 0 20px; }
[dir="rtl"] .ftr h4 { font-size: 13px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { color: rgba(226, 236, 250, .74); font-size: 14.5px; transition: color .2s; }
.ftr ul a:hover { color: #fff; }
.ftr .ltr { direction: ltr; unicode-bidi: isolate; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { font: 500 11px var(--f-mono); letter-spacing: .08em; padding: 8px 10px; border: 1px solid var(--line-dk2); color: rgba(226, 236, 250, .8); border-radius: 2px; }
.social a:hover { border-color: #fff; color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: rgba(214, 226, 242, .5); }
.ftr-bottom nav { display: flex; gap: 22px; }
.ftr-bottom a:hover { color: #fff; }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: rgba(5, 14, 27, .97); border-top: 1px solid var(--line-dk2); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mbar-in { display: grid; grid-template-columns: 1fr 1fr 1.35fr; }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; color: #fff; font: 600 12px var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .mbar a { font-size: 14px; }
.mbar a + a { border-inline-start: 1px solid var(--line-dk); }
.mbar a .ic { width: 19px; height: 19px; color: var(--blue-300); }
.mbar a.q { background: var(--fire-600); border: 0; }
.mbar a.q .ic { color: #fff; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* The full navigation needs about 1425px of screen (Turkish labels about 1510px) next to the language switch,
   portal, staff and quote links; narrower screens use the menu button so nothing is ever cut off. */
@media (min-width: 1360px) { .hdr .hdr-in { max-width: 1520px; padding-inline: 32px; } }
@media (max-width: 1424px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hdr-tools { margin-inline-start: auto; }
}
@media (max-width: 1510px) {
  html[lang="tr"] .nav { display: none; }
  html[lang="tr"] .burger { display: inline-flex; }
  html[lang="tr"] .hdr-tools { margin-inline-start: auto; }
}
@media (max-width: 1240px) {
  .std-grid { grid-template-columns: repeat(3, 1fr); }
  .std:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .std:nth-child(n+4) { border-top: 1px solid var(--line-dk); }
  .ftr-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .shead { grid-template-columns: minmax(0, 1fr); }
  .shead .lead { justify-self: start; }
  .pos-grid, .ind-split, .why-grid, .mnt-grid, .two, .contact-grid, .phero-grid, .eng-mod, .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .why-title, .ind-panel, .cs-toc { position: static; }
  .cs-toc { display: none; }
  .caps { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .cap:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 30px; }
  .sol-card, .sol-card:nth-child(1), .sol-card:nth-child(2) { grid-column: span 6; }
  .sol-card:nth-child(1) .media, .sol-card:nth-child(2) .media { height: auto; aspect-ratio: 400 / 260; }
  .sol-card.wide { grid-template-columns: minmax(0, 1fr); }
  .sol-card.wide .media { min-height: 0; aspect-ratio: 400 / 240; }
  .proc { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .proc-step:nth-child(5n)::before { inset-inline-end: 0; background: var(--line-dk2); }
  .proc-step:nth-child(2n)::before { inset-inline-end: 40%; background: linear-gradient(90deg, var(--line-dk2), transparent); }
  .ind-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-feat { grid-template-columns: minmax(0, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-wrap { grid-template-columns: minmax(0, 1fr); }
  .appr { grid-template-columns: 1fr 1fr; }
  .appr > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .appr > div:nth-child(n+3) { border-top: 1px solid var(--line-dk); margin-top: 28px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-b:not(:nth-child(3n+1)) { padding-inline-start: 0; border-inline-start: 0; }
  .about-b:nth-child(even) { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .revs { grid-template-columns: 1fr 1fr; }
  .revs div:nth-child(3) { border-inline-start: 0; }
  .revs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .phero-art { max-width: 640px; }
}
@media (max-width: 900px) {
  .mbar { display: block; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .hdr-cta, .hdr-portal.hdr-staff { display: none; }   /* staff sign-in: in the menu and the footer on phones */
  .hdr .lang { display: none; }
  /* The client portal stays visible at the top on phones */
  .hdr-tools { gap: 10px; }
  .hdr-portal { display: inline-flex; align-items: center; padding: 10px 12px; border: 1px solid rgba(156, 192, 240, .5); border-radius: 2px; color: #fff; }
  .hdr-portal:hover { border-color: var(--fire); }
}
@media (max-width: 380px) {
  .hdr-portal { padding: 9px 8px; font-size: 10px; letter-spacing: .03em; }
  .mnav-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --hdr: 68px; }
  .hdr.scrolled .hdr-in { height: 60px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text b { font-size: 16px; }
  .logo-text small { font-size: 8.5px; letter-spacing: .14em; }
  .logo-img, .hdr.scrolled .logo-img { height: 40px; }
  .hero { min-height: 0; }
  .hero-in { padding-top: calc(var(--hdr) + 130px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-bar { flex-direction: column; }
  .hero-bar li { padding: 12px 0; margin-inline-end: 18px; }
  .scroll-ind { display: none; }
  .disc, .why-list, .scope, .ring-list { grid-template-columns: minmax(0, 1fr); }
  .disc li:nth-child(odd) { padding-inline-end: 0; }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .cap, .cap + .cap { border-inline-start: 0; padding-inline-start: 0; padding-inline-end: 0; }
  .cap:nth-child(n+2) { border-top: 1px solid var(--line); margin-top: 30px; }
  .sol-card, .sol-card:nth-child(1), .sol-card:nth-child(2) { grid-column: 1 / -1; }
  .proc { grid-template-columns: minmax(0, 1fr); }
  .proc-step { padding: 0 0 8px 40px !important; border-inline-start: 1px solid var(--line-dk2); margin-inline-start: 9px; }
  .proc-step::before { display: none; }
  .proc-node { position: absolute; inset-inline-start: -10px; top: 0; }
  .proc-no { margin: 0 0 10px; font-size: 26px; }
  .proc-step { padding-bottom: 34px !important; }
  .ind-grid, .proj-grid, .rec-grid, .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .brand .wm.s1 { font-size: 17px; } .brand .wm.s2 { font-size: 20px; } .brand .wm.s3 { font-size: 13px; } .brand .wm.s4 { font-size: 19px; }
  .std-grid { grid-template-columns: 1fr 1fr; }
  .std, .std + .std { padding-inline-start: 0 !important; padding-inline-end: 16px !important; border-inline-start: 0; }
  .std:nth-child(n+3) { border-top: 1px solid var(--line-dk); }
  .ring { display: none; }
  .ring-list { display: grid; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1 1 100%; }
  .appr { grid-template-columns: minmax(0, 1fr); }
  .appr > div, .appr > div + div { border-inline-start: 0; padding-inline-start: 0 !important; }
  .appr > div:nth-child(n+2) { border-top: 1px solid var(--line-dk); margin-top: 28px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-b, .about-b:nth-child(even) { padding-inline-start: 0 !important; border-inline-start: 0; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-out { grid-template-columns: minmax(0, 1fr); }
  .calc-out div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .revs { grid-template-columns: minmax(0, 1fr); }
  .revs div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gallery .media:first-child { grid-column: 1 / -1; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-facts div, .cs-facts div + div { padding-inline-start: 0 !important; border-inline-start: 0; }
  .cinfo > div { grid-template-columns: 36px 1fr; }
  .cinfo .copy { grid-column: 2; justify-self: start; }
  .proj-body { padding: 20px; }
}

/* =====================================================================
   WEBSITE CHAT (assets/js/chat.js, only when turned on in the dashboard)
   Above the mobile action bar (z 50), below the menu overlay (55) and the header (60).
   ===================================================================== */
.kc-chat { position: fixed; inset-inline-end: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 52; font-family: var(--f-body); }
.kc-chat-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--navy-900); color: #fff; border: 1px solid rgba(156, 192, 240, .35); box-shadow: 0 10px 28px rgba(5, 14, 27, .35); transition: transform .2s var(--ease), background .2s; }
.kc-chat-btn:hover { transform: translateY(-2px); background: var(--navy-800); }
.kc-chat.is-open .kc-chat-btn { background: var(--fire-600); border-color: var(--fire-600); }
.kc-chat-dot { position: absolute; top: 4px; inset-inline-end: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--fire); border: 2px solid var(--navy-900); }
.kc-chat-panel { position: absolute; inset-inline-end: 0; bottom: 72px; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 150px)); display: flex; flex-direction: column;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(5, 14, 27, .28); }
.kc-chat-hd { display: flex; align-items: center; gap: 8px; padding: 14px 14px 14px 18px; background: var(--navy-900); color: #fff; }
[dir="rtl"] .kc-chat-hd { padding: 14px 18px 14px 14px; }
.kc-chat-hd div { flex: 1; min-width: 0; }
.kc-chat-hd b { display: block; font: 700 16px/1.3 var(--f-display); }
.kc-chat-hd small { display: block; font-size: 12.5px; color: var(--blue-300); margin-top: 2px; }
.kc-chat-x { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 6px; }
.kc-chat-x:hover { background: rgba(255, 255, 255, .1); }
.kc-chat-end { font-size: 12px; color: var(--blue-300); padding: 6px 8px; border-radius: 4px; white-space: nowrap; }
.kc-chat-end:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.kc-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f6f8fb; overscroll-behavior: contain; }
.kc-m { max-width: 86%; padding: 10px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.kc-m p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; }
.kc-m time { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.kc-m-who { display: block; font-size: 11.5px; font-weight: 600; color: var(--blue-600); margin-bottom: 3px; }
.kc-m-visitor { align-self: flex-end; background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.kc-m-visitor time { color: var(--blue-300); }
.kc-m-staff { border-color: #bfd3f2; }
.kc-m-system { align-self: center; max-width: 92%; padding: 2px 8px; background: transparent; border: 0; font-size: 12.5px; color: var(--slate); text-align: center; }
.kc-pending { opacity: .6; }
.kc-btns { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.kc-btns button { font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--blue); color: var(--blue-600); background: #fff; border-radius: 18px; line-height: 1.2; text-align: start; }
.kc-btns button:hover { background: var(--blue); color: #fff; }
.kc-btns .kc-link { border-color: var(--fire-600); color: var(--fire-600); }
.kc-btns .kc-link:hover { background: var(--fire-600); color: #fff; }
.kc-chat-typing { display: flex; gap: 4px; margin: 0; padding: 0 16px 10px; background: #f6f8fb; }
.kc-chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: kc-dot 1s infinite ease-in-out; }
.kc-chat-typing span:nth-child(2) { animation-delay: .15s; } .kc-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes kc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.kc-chat-leave { display: grid; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; max-height: 48%; overflow-y: auto; }
.kc-chat-leave label { display: grid; gap: 3px; font-size: 12.5px; color: var(--slate); }
.kc-chat-leave input, .kc-chat-leave textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fafbfd; width: 100%; }
.kc-chat-leave textarea { resize: vertical; }
.kc-chat-leave-btn { background: var(--fire-600); color: #fff; font-weight: 600; font-size: 14px; padding: 10px; border-radius: 6px; }
.kc-chat-leave-btn:hover { background: var(--fire-700); }
.kc-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.kc-chat-err { margin: 0; padding: 8px 16px; font-size: 13px; color: var(--fire-600); background: #fdf0eb; }
.kc-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.kc-chat-form textarea { flex: 1; min-width: 0; resize: none; font: inherit; font-size: 14.5px; line-height: 1.45; padding: 9px 12px; max-height: 120px; border: 1px solid var(--line); border-radius: 18px; background: #fafbfd; color: var(--ink); }
.kc-chat-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.kc-chat-send { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--fire-600); color: #fff; }
.kc-chat-send:hover { background: var(--fire-700); }
.kc-chat-send:disabled { opacity: .5; }
[dir="rtl"] .kc-chat-send svg { transform: scaleX(-1); }
.kc-chat-note { margin: 0; padding: 6px 14px 10px; font-size: 11.5px; line-height: 1.45; color: var(--muted); background: #fff; }
@media (max-width: 900px) { .kc-chat { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; } }   /* above the mobile action bar */
@media (max-width: 520px) {
  .kc-chat-btn { width: 52px; height: 52px; }
  .kc-chat-panel { position: fixed; inset-inline: 8px; bottom: calc(136px + env(safe-area-inset-bottom, 0px)); width: auto; height: min(560px, calc(100vh - 220px)); }
}
@media (prefers-reduced-motion: reduce) { .kc-chat-typing span { animation: none; } }
@media print { .kc-chat { display: none; } }
