/* ===== @on Brand System ===== */
:root {
  --ink: #0b1220;
  --ink-soft: #1a2333;
  --slate: #334155;
  --muted: #64748b;
  --line: #d8dee8;
  --mist: #eef2f7;
  --snow: #f7f9fc;
  --white: #ffffff;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --cyan: #0891b2;
  --signal: #14b8a6;
  --font-display: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "Source Serif 4", "IBM Plex Sans Arabic", serif;
  --shadow-soft: 0 12px 40px rgba(11, 18, 32, 0.08);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--snow);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 1.05rem;
}
[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.85;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .nav-wordmark,
[dir="rtl"] .hero-wordmark,
[dir="rtl"] .footer-wordmark,
[dir="rtl"] .btn,
[dir="rtl"] .section-label,
[dir="rtl"] .nav-menu a,
[dir="rtl"] .nav-mobile a {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header.scrolled {
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}
.nav-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.nav-at { color: var(--signal); }
.header.scrolled .nav-wordmark { color: var(--ink); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--signal);
  transition: width 0.3s var(--ease);
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.is-active { color: var(--white); }
.nav-menu a.is-active::after { width: 100%; }
.header.scrolled .nav-menu a { color: var(--slate); }
.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.is-active { color: var(--ink); }
.header.header-solid {
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.06);
}
.header.header-solid .nav-wordmark { color: var(--ink); }
.header.header-solid .nav-menu a { color: var(--slate); }
.header.header-solid .nav-menu a:hover,
.header.header-solid .nav-menu a.is-active { color: var(--ink); }
.header.header-solid .lang-toggle {
  border-color: var(--line);
  color: var(--slate);
}
.header.header-solid .lang-active { color: var(--teal-deep); }
.header.header-solid .btn-nav {
  background: var(--ink);
  color: var(--white);
}
.header.header-solid .nav-toggle span { background: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: 0.25s var(--ease);
}
.lang-toggle:hover { border-color: var(--signal); color: var(--white); }
.lang-active { color: var(--signal); }
.lang-inactive { opacity: 0.55; }
.lang-sep { margin: 0 3px; opacity: 0.35; }
.header.scrolled .lang-toggle {
  border-color: var(--line);
  color: var(--slate);
}
.header.scrolled .lang-toggle:hover {
  border-color: var(--teal);
  color: var(--ink);
}
.header.scrolled .lang-active { color: var(--teal-deep); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--signal);
  color: var(--ink);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-nav:hover {
  background: #5eead4;
  transform: translateY(-1px);
}
.header.scrolled .btn-nav {
  background: var(--ink);
  color: var(--white);
}
.header.scrolled .btn-nav:hover { background: var(--ink-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: 0.3s var(--ease);
}
.header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
}

/* ===== Hero — full-bleed composition ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) 0 80px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-orb-a {
  width: 48vw;
  height: 48vw;
  max-width: 560px;
  max-height: 560px;
  background: #0d9488;
  top: -10%;
  right: -8%;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero-orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  background: #0369a1;
  bottom: -12%;
  left: -6%;
  animation: orbFloat 18s ease-in-out infinite reverse;
}
.hero-signal {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 65% 45%, rgba(20, 184, 166, 0.18), transparent 70%),
    linear-gradient(160deg, transparent 40%, rgba(8, 145, 178, 0.12) 100%);
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.06); }
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-copy {
  max-width: 720px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-logo {
  width: 64px;
  height: 64px;
  animation: logoPulse 5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}
.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 4.75rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--white);
}
.hero-at { color: var(--signal); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 22ch;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.68);
  max-width: 40ch;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) forwards;
}
.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--signal));
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--signal);
  color: var(--ink);
}
.btn-primary:hover {
  background: #5eead4;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}
.btn-full { width: 100%; }
.contact-form .btn-primary {
  background: var(--ink);
  color: var(--white);
}
.contact-form .btn-primary:hover { background: var(--ink-soft); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
}
.text-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-deep);
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}
.text-link:hover { color: var(--ink); }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-header {
  max-width: 560px;
  margin-bottom: 56px;
}
.section-header.center,
.services .section-header,
.why .section-header,
.team .section-header,
.contact .section-header,
.divisions .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.section-header h2,
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Divisions ===== */
.divisions {
  background:
    linear-gradient(180deg, var(--snow) 0%, var(--mist) 100%);
}
.divisions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.division {
  padding: 48px 40px;
  position: relative;
  transition: background 0.35s var(--ease);
}
.division:first-child {
  border-right: 1px solid var(--line);
}
.division:hover {
  background: rgba(255, 255, 255, 0.7);
}
.division-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 20px;
}
.division h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.division p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 36ch;
}
.division-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.division-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

/* ===== Services ===== */
.services { background: var(--white); }
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 28px;
  align-items: start;
  padding: 36px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.service-row:hover { background: var(--snow); }
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.service-row h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.service-row p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ===== Why ===== */
.why {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13, 148, 136, 0.08), transparent 55%),
    var(--snow);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.3s var(--ease);
}
.why-card:hover { background: var(--snow); }
.why-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(13, 148, 136, 0.22);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.why-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  background:
    linear-gradient(135deg, #0b1220 0%, #12263a 48%, #0f3d3a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}
.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.about .section-label { color: var(--signal); }
.about-content h2 { color: var(--white); }
.about-content p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  max-width: 42ch;
}
.about-panel {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.about-panel-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.about-panel-mark img {
  width: 88px;
  height: 88px;
  filter: brightness(1.15);
}
.about-panel-brand {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.about-panel-brand span { color: var(--signal); }
.about-panel-tag {
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.about-panel-domain {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--signal);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== Team ===== */
.team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.team-card {
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}
.team-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--white);
  background: var(--ink);
  margin: 24px 0 18px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-role {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.team-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ===== Contact ===== */
.contact {
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--snow) 100%);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
  min-width: 0;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.contact-item > div:last-child {
  min-width: 0;
  flex: 1;
}
.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal-deep);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item a,
.contact-item p {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-item a:hover { color: var(--teal-deep); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.form-group { margin-bottom: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--snow);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}
.footer-wordmark span { color: var(--signal); }
.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}
.footer-blurb {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  max-width: 28ch;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--signal); }
.footer-bottom {
  padding-top: 24px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Inner pages ===== */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--snow) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-copy { max-width: 720px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 28px;
}
.page-hero-ink {
  background:
    linear-gradient(135deg, #0b1220 0%, #12263a 50%, #0f3d3a 100%);
  border-bottom: none;
  color: var(--white);
}
.page-hero-ink .section-label { color: var(--signal); }
.page-hero-ink h1 { color: var(--white); }
.page-hero-ink .page-lead { color: rgba(255, 255, 255, 0.68); }
.section-mist { background: var(--mist); }
.section-action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.narrow { max-width: 720px; }
.about-prose p {
  font-size: 1.12rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 20px;
}
.presence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.presence-card {
  background: var(--white);
  padding: 40px 36px;
}
.presence-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.presence-card p { color: var(--muted); line-height: 1.7; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.focus-grid-4 { grid-template-columns: repeat(2, 1fr); }
.focus-card {
  padding: 28px 0;
  border-top: 2px solid var(--ink);
}
.focus-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.focus-card p { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  padding: 8px 0;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.process-step p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.services-catalog {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 36px 8px;
  border-bottom: 1px solid var(--line);
}
.service-detail-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service-detail-body p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 54ch;
}
.service-detail .text-link { margin-top: 16px; }
.btn, .nav-menu a, .nav-mobile a, .section-label, .lang-toggle,
.form-group label, .form-group input, .form-group select, .form-group textarea,
.text-link, .footer-col h4, .footer-col a, .footer-tagline, .team-role,
.division-index, .service-num, .process-num, .why-number, .team-avatar {
  font-family: var(--font-display);
}

.section-tight { padding-top: 40px; padding-bottom: 20px; }
.page-intro {
  font-size: 1.2rem;
  color: var(--slate);
  line-height: 1.8;
}
.align-start { text-align: start; margin-left: 0; margin-right: 0; max-width: 40ch; }
.prose-block p {
  font-size: 1.12rem;
  color: var(--slate);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.prose-block p:last-child { margin-bottom: 0; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.offer-card {
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
}
.offer-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.split-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--slate);
  line-height: 1.65;
  font-size: 1.02rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--signal);
}
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.channel-block {
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}
.channel-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 20px 0 14px;
}
.channel-lead {
  font-size: 1.1rem;
  color: var(--slate);
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 20px;
}
.together-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.cta-band {
  background:
    linear-gradient(135deg, #0b1220 0%, #0f3d3a 100%);
  color: var(--white);
  padding: 72px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cta-band p { color: rgba(255, 255, 255, 0.65); max-width: 36ch; }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RTL ===== */
[dir="rtl"] .nav-menu a::after { left: auto; right: 0; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
[dir="rtl"] .service-row { direction: rtl; }
[dir="rtl"] .division:first-child {
  border-right: none;
  border-left: 1px solid var(--line);
}
[dir="rtl"] .about-content,
[dir="rtl"] .section-header,
[dir="rtl"] .page-hero-copy,
[dir="rtl"] .about-prose { text-align: right; }
[dir="rtl"] .services .section-header,
[dir="rtl"] .why .section-header,
[dir="rtl"] .divisions .section-header { text-align: center; }
[dir="rtl"] .cta-band-inner { flex-direction: row-reverse; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: 0.85rem; }
}

@media (max-width: 960px) {
  .divisions-layout { grid-template-columns: 1fr; }
  .division:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  [dir="rtl"] .division:first-child {
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 12px 20px;
  }
  .service-row p { grid-column: 2; }
  .about-layout,
  .team-grid,
  .why-grid,
  .presence-grid,
  .focus-grid,
  .focus-grid-4,
  .process-grid,
  .footer-grid,
  .offer-grid,
  .split-block { grid-template-columns: 1fr 1fr; }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-nav { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 18px 28px;
    gap: 4px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.35s var(--ease);
    pointer-events: none;
    z-index: 999;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-mobile a {
    color: var(--ink) !important;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid var(--mist);
  }
  .nav-mobile a.is-active { color: var(--teal-deep) !important; }
  .header:not(.scrolled):not(.header-solid) .nav-toggle span { background: var(--white); }

  .hero {
    justify-content: flex-start;
    min-height: 100dvh;
    overflow: hidden;
    padding: calc(var(--header-h) + 28px) 0 48px;
  }
  .hero-brand {
    gap: 12px;
    margin-bottom: 18px;
  }
  .hero-logo {
    width: 48px;
    height: 48px;
  }
  .hero-wordmark {
    font-size: clamp(2.35rem, 11vw, 2.8rem);
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    max-width: none;
    margin-bottom: 24px;
  }
  .hero-cta {
    width: 100%;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    padding: 13px 20px;
  }
  .hero-orb-a,
  .hero-orb-b {
    max-width: 280px;
    max-height: 280px;
  }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2,
  .page-hero h1 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }
  .division { padding: 28px 4px; }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-info {
    order: 1;
    gap: 20px;
  }
  .contact-form {
    order: 2;
    padding: 24px 16px;
    width: 100%;
  }
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .why-grid,
  .footer-grid,
  .process-grid,
  .focus-grid,
  .focus-grid-4,
  .presence-grid,
  .offer-grid,
  .split-block,
  .team-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 40px 1fr; gap: 12px; }
  .service-row {
    grid-template-columns: 40px 1fr;
    padding: 28px 0;
  }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 40px; }
  .page-lead { font-size: 1.02rem; max-width: none; }
  .page-intro { font-size: 1.05rem; }
  .prose-block p { font-size: 1.02rem; }
  .channel-lead { font-size: 1rem; max-width: none; }
  .cta-band { padding: 56px 0; }
  .cta-band .btn { width: 100%; }
  body { font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-wordmark { font-size: 1.2rem; }
  .nav-mark { width: 32px; height: 32px; }
  .hero-wordmark { font-size: 2.35rem; }
  .lang-toggle { padding: 6px 10px; font-size: 0.75rem; }
}
