/* ---- Design tokens: tal-ogen-design-system / colors ---- */
:root {
  --ink: #0b1f3a;
  --ink-2: #18375f;
  --muted: #52627a;
  --soft: #edf6f8;
  --line: #dbe7ee;
  --card: #ffffff;
  --accent: #087f8c;
  --accent-2: #2f80ed;
  --accent-soft: #e5f7f8;
  --accent-deep: #126f9b;
  --tag-text: #1f6470;
  --pill-text: #25415f;
  --list-text: #29435f;
  --value-text: #245567;
  --success: #19a974;
  --panel-dark: #0b1f3a;
  --panel-dark-2: #0d3148;
  --band-dark-2: #12345b;
  --metric-teal: #69e5ce;
  --rule-teal: #58dbc3;
  --text-on-dark: #eaf9fb;
  --text-on-dark-muted: rgba(231, 244, 248, 0.76);
  --bg-page: radial-gradient(circle at top right, rgba(47, 128, 237, 0.09), transparent 34rem),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 38%);
  --bg-band-dark: linear-gradient(90deg, #0b1f3a, #12345b);
  --bg-thumb: linear-gradient(135deg, rgba(8, 127, 140, 0.14), rgba(47, 128, 237, 0.08)), #f5fbfc;
  --grad-accent-text: linear-gradient(95deg, #087f8c, #2f80ed);
  --grad-flagship: linear-gradient(110deg, #087f8c, #126f9b);

  /* ---- tokens / typography ---- */
  --font-sans: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- tokens / effects ---- */
  --shadow: 0 18px 50px rgba(14, 42, 71, 0.08);
  --shadow-hover: 0 24px 58px rgba(14, 42, 71, 0.13);
  --shadow-pill-hover: 0 9px 22px rgba(14, 42, 71, 0.08);
  --shadow-flagship: 0 10px 24px rgba(8, 127, 140, 0.2);
  --radius: 18px;
  --radius-pill: 999px;
  --max: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Dark theme tokens ---- */
html[data-theme="dark"] {
  --ink: #e8f1f8;
  --ink-2: #cbdeee;
  --muted: #98aac0;
  --soft: #0f2438;
  --line: #213b54;
  --card: #0e2033;
  --accent: #46c6d4;
  --accent-2: #6aa9f7;
  --accent-soft: rgba(70, 198, 212, 0.12);
  --accent-deep: #58b7d6;
  --tag-text: #85dde6;
  --pill-text: #c6d7ea;
  --list-text: #c6d7ea;
  --value-text: #a3d6e1;
  --bg-page: radial-gradient(circle at top right, rgba(106, 169, 247, 0.08), transparent 34rem),
    linear-gradient(180deg, #0a1929 0%, #081524 38%);
  --bg-band-dark: linear-gradient(90deg, #06101d, #0d2742);
  --bg-thumb: linear-gradient(135deg, rgba(70, 198, 212, 0.1), rgba(106, 169, 247, 0.06)), #0c1c2e;
  --grad-accent-text: linear-gradient(95deg, #46c6d4, #6aa9f7);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 24px 58px rgba(0, 0, 0, 0.45);
  --shadow-pill-hover: 0 9px 22px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  font-family: var(--font-sans);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Animations ---- */
@keyframes toRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes toWords {
  0%,
  26% {
    transform: translateY(0);
  }
  33%,
  59% {
    transform: translateY(-25%);
  }
  66%,
  92% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(-75%);
  }
}

@keyframes toGrad {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes toArrow {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@keyframes toSpin {
  to {
    transform: rotate(360deg);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
}

[data-reveal].on {
  opacity: 1;
  transform: none;
}

/* ---- Header + hero ---- */
.hero-band {
  background: linear-gradient(180deg, var(--accent-soft), rgba(255, 255, 255, 0) 640px);
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 64px;
  text-align: center;
}

.hero .portrait-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 26px;
  animation: toRise 620ms var(--ease-out) both;
}

.hero .portrait-ring {
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(8, 127, 140, 0.28);
  border-radius: 50%;
  animation: toSpin 40s linear infinite;
}

.hero .portrait {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow);
}

.hero .kicker-wrap {
  display: inline-block;
  animation: toRise 620ms var(--ease-out) both;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 800;
  animation: toRise 620ms var(--ease-out) 100ms both;
}

/* Font test: Oswald regular on the English hero title only */
html:not([dir="rtl"]) .hero h1 {
  font-family: "Oswald", Impact, "Arial Narrow Bold", var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.word-carousel {
  display: block;
  overflow: hidden;
  height: 1.24em;
  margin: 0 auto;
}

.word-carousel .words {
  display: block;
  animation: toWords 7.5s var(--ease-out) 1.2s infinite;
}

.word-carousel .words span {
  display: block;
  height: 1.24em;
  line-height: 1.24em;
  color: transparent;
  background: var(--grad-accent-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: toGrad 6s ease infinite;
}

.hero .subtitle {
  margin: 20px auto 0;
  max-width: 660px;
  color: var(--ink-2);
  font-size: 1.2rem;
  font-weight: 680;
  line-height: 1.4;
  animation: toRise 620ms var(--ease-out) 200ms both;
}

.hero .lede {
  margin: 16px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  animation: toRise 620ms var(--ease-out) 260ms both;
}

.hero .value-line {
  margin: 22px 0 0;
  color: var(--value-text);
  font-size: 1.08rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  animation: toRise 620ms var(--ease-out) 320ms both;
}

.hero .value-line .arrow {
  color: var(--accent);
  animation: toArrow 1.8s ease infinite;
}

.hero .value-line .arrow.late {
  animation-delay: 0.6s;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  animation: toRise 620ms var(--ease-out) 380ms both;
}

/* ---- Component: Kicker ---- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker.on-dark {
  color: #fff;
}

/* ---- Component: ContactPill ---- */
.to-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--pill-text);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.to-contact-pill:hover {
  color: var(--pill-text);
  border-color: rgba(8, 127, 140, 0.36);
  box-shadow: var(--shadow-pill-hover);
  transform: translateY(-2px);
}

.to-contact-pill strong {
  color: var(--ink);
  font-weight: 760;
}

.to-contact-pill.flagship,
.to-contact-pill.flagship:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--grad-flagship);
  box-shadow: var(--shadow-flagship);
}

.to-contact-pill.flagship strong {
  color: #fff;
}

/* ---- Component: McpPill (wears the flagship gradient) ---- */
.to-contact-pill.mcp {
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  cursor: pointer;
}

.to-contact-pill.mcp::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 56px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-80px) skewX(-14deg);
  animation: mcpSheen 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mcpSheen {
  0% {
    transform: translateX(-80px) skewX(-14deg);
  }
  55%,
  100% {
    transform: translateX(320px) skewX(-14deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-contact-pill.mcp::after {
    animation: none;
    opacity: 0;
  }
}

/* ---- Component: SectionHead ---- */
.section-head {
  max-width: 760px;
}

.section-head .kicker {
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.section-head.on-dark h2 {
  color: #fff;
}

.section-head.on-dark p {
  color: #c8d8e6;
}

/* ---- Component: IconBadge ---- */
.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Sections ---- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 32px;
}

.section-head-row {
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 24px;
}

.about-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.about-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.strengths {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f4fbfc);
  box-shadow: var(--shadow);
}

.about-photo {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* height: 0 + flex: 1 keeps the image from inflating the grid row,
   so the photo card always matches the text card's height */
.about-photo img {
  display: block;
  width: 100%;
  height: 0;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}

.about-photo figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.strengths ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strengths li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--list-text);
  font-weight: 650;
}

/* ---- Component: ProjectCard ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.projects-grid .span-all {
  grid-column: 1 / -1;
}

.to-project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition:
    transform 280ms var(--ease-out),
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.to-project-card:hover {
  border-color: rgba(8, 127, 140, 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.to-project-card.flagship {
  border-color: rgba(8, 127, 140, 0.32);
  box-shadow: 0 22px 55px rgba(17, 66, 80, 0.12);
}

.to-thumb {
  position: relative;
  margin: 0;
  min-height: 205px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-thumb);
  overflow: hidden;
}

.to-project-card.flagship .to-thumb {
  min-height: 270px;
  aspect-ratio: 16 / 9;
  background: #091316;
}

#agents .to-thumb {
  min-height: 102px;
}

.to-thumb::before,
.to-thumb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.to-thumb::before {
  width: 180px;
  height: 180px;
  right: -44px;
  top: -58px;
}

.to-thumb::after {
  width: 116px;
  height: 116px;
  left: 28px;
  bottom: -50px;
}

.to-thumb img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms var(--ease-out);
}

.to-project-card:hover .to-thumb img {
  transform: scale(1.025);
}

.humanforai-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-top h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.project-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 730;
  white-space: nowrap;
}

.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-points {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}

.case-points > div {
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
}

.case-points dt {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-points dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  padding: 6px 10px;
  color: var(--tag-text);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

/* ---- Skills band (marquee) ---- */
.skills-band {
  margin: 36px 0;
  padding: 54px 0;
  background: var(--bg-band-dark);
  overflow: hidden;
}

.skills-band .band-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 6px;
}

.marquee {
  display: flex;
  overflow: hidden;
  margin-top: 26px;
}

/* two identical tracks, each translating -100%: keeps every composited
   layer well under the ~4096px mobile GPU texture cap */
.marquee-track {
  display: flex;
  flex: none;
  gap: 12px;
  padding-right: 12px;
  animation: toMarquee 32s linear infinite;
}

.marquee-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(105, 229, 206, 0.28);
  border-radius: var(--radius-pill);
  color: var(--text-on-dark);
  font-size: 0.92rem;
  font-weight: 650;
  /* each pill composites as its own small layer, so the animated track never
     allocates one track-wide texture (mobile GPUs cap layers at ~4096 device px
     and silently freeze the animation when exceeded) */
  transform: translateZ(0);
}

.marquee-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--metric-teal);
}

.marquee-pill .pill-logo {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
}

/* ---- Product / Why AI Transformation ---- */
.product-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(229, 247, 248, 0.7), rgba(255, 255, 255, 0.94)), #ffffff;
}

.product-card .kicker {
  margin-bottom: 10px;
}

.product-card h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.product-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.product-card p:last-child {
  margin-bottom: 0;
}

/* ---- Component: BringCard ---- */
.closing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bring-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.bring-card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.bring-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

/* ---- Footer ---- */
.site-footer {
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer a {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--accent);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid,
  .projects-grid,
  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* single column: no side card to match, so let the image size itself again */
  .about-photo img {
    height: auto;
    flex: none;
    max-height: 480px;
  }

  /* aspect-ratio + min-height would force a 480px intrinsic width;
     let the 16:9 ratio derive height from the card width instead */
  .to-project-card.flagship .to-thumb {
    min-height: 0;
  }

  .project-top {
    flex-wrap: wrap;
  }

  .site-header {
    justify-content: center;
  }

  .site-nav {
    gap: 16px;
    justify-content: center;
  }

  .hero {
    padding: 56px 24px 48px;
  }

  .section {
    padding: 30px 24px;
  }
}

/* ---- Language switch + theme toggle pill ---- */
.site-nav .nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 3px;
  padding-inline: 12px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 180ms ease;
}

.site-nav .nav-pill:hover {
  border-color: rgba(8, 127, 140, 0.36);
}

.site-nav .lang-switch {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
}

.site-nav .lang-switch:hover {
  color: var(--accent);
}

.nav-pill-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

/* ---- Theme toggle ---- */
.site-nav .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 180ms ease;
}

.site-nav .theme-toggle:hover {
  background: rgba(11, 31, 58, 0.07);
}

html[data-theme="dark"] .site-nav .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* full-page cross-fade when the theme switches (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 400ms;
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ---- Dark theme component overrides ---- */
html[data-theme="dark"] .hero .portrait {
  border-color: #142c44;
}

html[data-theme="dark"] .strengths {
  background: linear-gradient(180deg, #0e2033, #0c1c2e);
}

html[data-theme="dark"] .product-card {
  background: linear-gradient(135deg, rgba(70, 198, 212, 0.08), rgba(14, 32, 51, 0.94)), #0e2033;
}

html[data-theme="dark"] .to-thumb::before,
html[data-theme="dark"] .to-thumb::after {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .to-contact-pill,
html[data-theme="dark"] .site-nav .nav-pill {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .to-contact-pill.flagship,
html[data-theme="dark"] .to-contact-pill.flagship:hover {
  background: var(--grad-flagship);
}

html[data-theme="dark"] .to-contact-pill:hover,
html[data-theme="dark"] .site-nav .nav-pill:hover {
  border-color: rgba(70, 198, 212, 0.45);
}


/* ---- RTL (Hebrew) ---- */
html[dir="rtl"] {
  --font-sans: "Heebo", Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .brand,
html[dir="rtl"] .subtitle,
html[dir="rtl"] .value-line {
  letter-spacing: 0;
}

html[dir="rtl"] .kicker,
html[dir="rtl"] .case-points dt {
  letter-spacing: 0.04em;
}

html[dir="rtl"] .case-points > div {
  padding-left: 0;
  border-left: 0;
  padding-right: 14px;
  border-right: 2px solid var(--accent-soft);
}

html[dir="rtl"] .site-footer a {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="rtl"] .footer-social a {
  margin-right: 0;
}

/* keep the marquee geometry LTR so the loop animation is identical */
html[dir="rtl"] .marquee {
  direction: ltr;
}

/* keep the header layout identical to the English page:
   brand top-left, menu on the right, pill (language | theme) far right */
html[dir="rtl"] .site-header {
  direction: ltr;
}
