/* ==========================================================================
   AMEHPC — Corporate Consultancy Design System
   Token custom properties (--color-*, --font-*, --radius, --radius-lg) come
   from tokens.css. All spatial rules use CSS logical properties so
   [dir="rtl"] needs almost no overrides.
   ========================================================================== */

/* ── Reset & base ──────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}



html[lang="ar"] {
  --font-display: var(--font-display-ar);
  --font-body: var(--font-body-ar);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body, "Segoe UI", sans-serif);
  color: var(--color-ink, #0F0F0F);
  background: var(--color-paper, #FAFAF8);
  line-height: 1.75;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display, sans-serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.6em;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.55rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--color-accent, #2D3436);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Keyboard focus must always be visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

ul {
  margin: 0 0 1.15rem;
  padding-inline-start: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

code {
  font-family: var(--font-body);
  font-size: 0.8em;
  color: var(--color-muted-2);
  background: var(--color-surface);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  unicode-bidi: isolate;
  direction: ltr;
}

/* ── Layout primitives ──────────────────────────────────────────────── */

.site-main {
  display: block;
}

.site-header .header-inner,
.site-footer .footer-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 1.15rem 2rem;
}

.site-main>* {
  padding-inline: max(2rem, calc((100% - 80rem) / 2));
}

.site-main>h1,
.site-main>h2,
.site-main>h3,
.site-main>h4,
.site-main>p:not(.eyebrow),
.site-main>ul {
  max-width: 56rem;
  padding-inline: 0;
  margin-inline-start: max(2rem, calc((100% - 80rem) / 2));
}

.site-main>h2 {
  margin-block-start: 5rem;
  margin-block-end: 1.5rem;
}

.site-main>h2:first-child {
  margin-block-start: 3rem;
}

.site-main>h3 {
  margin-block-start: 3rem;
  margin-block-end: 1rem;
}

.surface-band>h2:not(:first-child),
.surface-band>h2:not(:first-of-type),
.dark-band>h2:not(:first-child),
.dark-band>h2:not(:first-of-type) {
  margin-block-start: 3.5rem;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 250, 248, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  order: 1;
}

.brand::before {
  content: "";
  display: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.primary-nav {
  display: contents;
}

.funnel-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  order: 2;
  margin-inline: auto;
}

.funnel-nav a {
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.funnel-nav a:hover {
  border-bottom-color: var(--color-brand);
  text-decoration: none;
}

.funnel-nav a[aria-current="page"] {
  border-bottom-color: var(--color-brand);
  color: var(--color-ink);
  background: transparent;
}

.secondary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  order: 4;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.secondary-nav a {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.secondary-nav a:hover {
  color: var(--color-ink);
  text-decoration: none;
}

.secondary-nav a[aria-current="page"] {
  color: var(--color-brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 2;
  flex-shrink: 0;
}

.nav-cta {
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.lang-switch {
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(15, 15, 15, 0.03);
  padding: 0.12rem 0.25rem;
  border-radius: 7px;
  border: 1px solid rgba(15, 15, 15, 0.06);
  flex-shrink: 0;
}

.lang-switch a {
  color: var(--color-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.lang-switch a:hover {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.lang-switch .current {
  color: var(--color-ink);
  font-weight: 700;
  background: var(--color-surface);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-ink);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-ink);
  background: transparent;
}

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-on-dark);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
  font-weight: 500;
}

.btn-dark:hover {
  background: transparent;
  color: var(--color-ink);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
}

.btn+.btn {
  margin-inline-start: 0.75rem;
}

/* ── Eyebrow label ────────────────────────────────────────────────────── */

.eyebrow,
p.eyebrow,
a.eyebrow,
.hero .eyebrow,
.dark-band .eyebrow,
.cta-banner .eyebrow,
.surface-band .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand);
  background: transparent;
  padding: 0.38rem 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-brand);
  margin-block: 0 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.eyebrow::before,
p.eyebrow::before,
a.eyebrow::before {
  content: "";
  display: none;
}

.eyebrow:hover,
a.eyebrow:hover {
  opacity: 0.7;
  text-decoration: none;
}

.eyebrow:active,
a.eyebrow:active {
  opacity: 0.9;
}

.dark-band .eyebrow,
.dark-band a.eyebrow {
  color: var(--color-brand-pale);
  background: rgba(200, 169, 126, 0.15);
  border: 1px solid rgba(200, 169, 126, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dark-band a.eyebrow:hover {
  background: rgba(200, 169, 126, 0.28);
  border-color: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(200, 169, 126, 0.3);
}

.cta-banner .eyebrow,
.cta-banner a.eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-banner a.eyebrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

/* ── Section bands ───────────────────────────────────────────────────── */

.dark-band {
  background: var(--dark-band-bg);
  color: var(--color-on-dark);
  padding-block: 7rem;
  position: relative;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
}

.dark-band::before {
  display: none;
}

.dark-band h1,
.dark-band h2,
.dark-band h3,
.dark-band h4 {
  color: var(--color-on-dark);
}

.dark-band p:not(.eyebrow) {
  color: var(--color-on-dark-muted);
  max-width: 44rem;
}

.dark-band a {
  color: var(--color-brand);
}

.surface-band {
  background: var(--color-surface);
  padding-block: 6rem;
}

.surface-band>h1,
.surface-band>h2,
.surface-band>h3,
.surface-band>p:not(.eyebrow),
.surface-band>ul {
  max-width: 52rem;
}

/* Checklist styling used for the "Areas of Expertise" list inside a dark-band. */
.dark-band ul {
  list-style: none;
  padding-inline-start: 0;
  columns: 2;
  column-gap: 2.5rem;
  max-width: 44rem;
}

.dark-band ul li {
  position: relative;
  padding-inline-start: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--color-on-dark);
  break-inside: avoid;
}

.dark-band ul li::before {
  content: "—";
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-brand);
  font-weight: 700;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 8rem 7rem;
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--color-ink);
  letter-spacing: -0.03em;
  max-width: 20ch;
  line-height: 1.04;
}

.hero h2 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: normal;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 48ch;
}

.hero p {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 44ch;
  line-height: 1.75;
}

.hero .btn {
  margin-top: 1rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 100%;
  max-width: 275px;
  margin-inline: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: center 15%;
  aspect-ratio: 4 / 5;
  image-rendering: -webkit-optimize-contrast;
  filter: grayscale(0.15) contrast(1.05);
  box-shadow: none;
  border: 1px solid var(--color-border);
  transition: filter 0.35s ease;
}

.hero-photo:hover {
  filter: grayscale(0) contrast(1.05);
}

.site-main>figure,
.wide-figure {
  margin-block: 3.5rem;
}

.site-main>figure img,
.wide-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.04) brightness(1.02);
  box-shadow: var(--shadow-lg);
}

.wide-banner {
  display: block;
  width: 100%;
  margin-block: 3.5rem;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 30%;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.05) brightness(1.02) saturate(1.04);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.wide-banner:hover {
  transform: scale(1.005);
  filter: contrast(1.08) brightness(1.04);
}

/* ── Cards ──────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-block: 4rem;
}

@media (min-width: 680px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.25rem;
  }
}

.cards .card,
a.card,
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 2.5rem 2.25rem;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 100%;
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cards .card:hover,
a.card:hover,
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand);
  background: var(--color-paper);
  text-decoration: none;
}

.cards .card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

/* Only clamp blog card descriptions that have an image preceding them */
.cards .card > img ~ p:not(.link-arrow) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cards .card .link-arrow::after,
a.card .link-arrow::after,
.card .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card .icon-circle,
.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-ink);
  transition: color 0.2s ease;
}

.cards .card:hover h3,
a.card:hover h3,
.card:hover h3 {
  color: var(--color-brand);
}

.card p {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.975rem;
}

.card > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.5rem;
}

.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  color: var(--color-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--color-ink);
  font-family: var(--font-body);
  transition: color 0.2s ease, margin-inline-start 0.2s ease;
}

.cards .card:hover .link-arrow,
a.card:hover .link-arrow,
.card:hover .link-arrow,
.link-arrow:hover {
  color: var(--color-brand);
  text-decoration: none;
  margin-inline-start: 4px;
}

/* ── Contact form ────────────────────────────────────────────────────── */

.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
  margin-block: 2rem 0;
  background: var(--color-surface-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-pale);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
}

/* ── Three dark columns (home "who are you") ──────────────────────────── */

.cols-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cols-3 .col,
a.col {
  flex: 1 1 16rem;
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--color-brand);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cols-3 .col:hover,
a.col:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-top-color: var(--color-brand-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.cols-3 .col h3 {
  color: var(--color-on-dark);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.cols-3 .col p {
  color: var(--color-on-dark-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── Stats ──────────────────────────────────────────────────────────── */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 3rem;
}

.stats .stat,
a.stat {
  flex: 1 1 12rem;
  position: relative;
  display: block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 2.25rem 2rem;
  text-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.stats .stat:hover,
a.stat:hover {
  border-color: var(--color-brand);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.stats .stat h4 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stats .stat p {
  color: var(--color-on-dark-muted);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

/* ── CTA banner ──────────────────────────────────────────────────────── */

.cta-banner {
  background: var(--color-ink);
  color: var(--color-on-dark);
  padding-block: 6rem;
  margin-block: 5rem 6rem;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.cta-banner h1,
.cta-banner h2,
.cta-banner h3 {
  color: var(--color-on-dark);
}

.cta-banner p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
  max-width: 44rem;
  font-size: 1.1rem;
}

.cta-banner .btn {
  margin-top: 1.25rem;
}

/* ── Timeline (About: Education & Credentials) ─────────────────────── */

.timeline {
  max-width: 56rem;
  padding-block: 3rem;
  padding-inline: 0;
  margin-inline-start: max(2rem, calc((100% - 80rem) / 2));
}

.timeline .timeline-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  column-gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.timeline .timeline-item:last-child {
  border-bottom: 0;
}

.timeline .timeline-item>* {
  grid-column: 2;
}

.timeline .timeline-item p:first-child {
  grid-column: 1;
  grid-row: 1 / 99;
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand);
}

.timeline .timeline-item h3,
.timeline .timeline-item h4 {
  margin: 0 0 0.4rem;
  color: var(--color-ink);
}

.timeline .timeline-item p:not(:first-child) {
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-top: none;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 5rem;
}

.footer-brand {
  flex: 1 1 18rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-on-dark);
  letter-spacing: 0.04em;
}

.footer-copyright {
  color: var(--color-on-dark-muted);
  font-size: 0.85rem;
}

.footer-col h3 {
  color: var(--color-brand);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--color-on-dark-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ── Social Proof Bar ──────────────────────────────────────────────── */

.proof-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0;
  margin-block: 0 5rem;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

.proof-bar::before {
  display: none;
}

.proof-bar .proof-item {
  flex: 1 1 10rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1.75rem;
  border-inline-end: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.proof-bar .proof-item:last-child {
  border-inline-end: none;
}

.proof-bar .proof-item:hover {
  background: rgba(200, 169, 126, 0.04);
}

.proof-bar .proof-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.proof-bar .proof-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}

.proof-bar .proof-label span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.1rem;
}

/* ── Funnel Grid ──────────────────────────────────────────────────────── */

.funnel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.9fr;
  gap: 0;
  padding-block: 4rem;
}

.funnel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.funnel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.funnel-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-paper);
  text-decoration: none;
}

.funnel-card:hover::before {
  transform: scaleX(1);
}

.funnel-card .funnel-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: none;
  transition: opacity 0.3s ease;
}

.funnel-card:hover .funnel-icon {
  opacity: 0.7;
}

.funnel-card:nth-child(1) .funnel-icon,
.funnel-card:nth-child(2) .funnel-icon,
.funnel-card:nth-child(3) .funnel-icon {
  background: transparent;
  border: none;
}

.funnel-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-ink);
  font-size: 1.4rem;
}

.funnel-card p {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.funnel-card .funnel-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
  letter-spacing: 0.01em;
  transition: color 0.25s ease, gap 0.25s ease;
}

.funnel-card:hover .funnel-cta {
  color: var(--color-brand);
  gap: 0.55rem;
}

/* ── Form extensions (select, radio) ──────────────────────────────── */

.contact-form select {
  width: 100%;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-inline-end: 2.5rem;
  cursor: pointer;
}

[dir="rtl"] .contact-form select {
  background-position: left 1rem center;
  padding-inline-end: 1rem;
  padding-inline-start: 2.5rem;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-pale);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form .form-hint {
  font-size: 0.8rem;
  color: var(--color-muted-2);
  margin-top: 0.3rem;
}

/* ── Testimonials ──────────────────────────────────────────────────── */

.testimonial-card {
  background: var(--color-surface);
  border-inline-start: 3px solid var(--color-brand);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  box-shadow: none;
  position: relative;
  max-width: 56rem;
  margin-inline-start: max(2rem, calc((100% - 80rem) / 2));
}

.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(200, 169, 126, 0.18);
  position: absolute;
  top: -8px;
  left: 12px;
  line-height: 1;
}

[dir="rtl"] .testimonial-card::before {
  left: auto;
  right: 12px;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-muted);
  position: relative;
  z-index: 1;
  line-height: 1.75;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-ink);
  margin-top: 0.85rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* ── FAQ Accordion ────────────────────────────────────────────────── */

.faq-accordion {
  margin-block: 2rem;
  max-width: 56rem;
  margin-inline-start: max(2rem, calc((100% - 80rem) / 2));
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-surface-card);
  overflow: hidden;
  box-shadow: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.75rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-question:hover {
  background-color: var(--color-surface);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-inline-start: 1rem;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-brand);
  transition: transform 0.3s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 2px;
  height: 14px;
}

.faq-icon::after {
  width: 14px;
  height: 2px;
}

.faq-item.active .faq-icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.75rem;
  color: var(--color-muted);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

/* ── Scroll to Top ─────────────────────────────────────────────────── */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  box-sizing: border-box;
  background: var(--color-ink);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: 2rem;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-brand);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* ── Social Icons ──────────────────────────────────────────────────── */

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0;
  color: var(--color-on-dark-muted);
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* ── Hamburger Menu (Mobile) ─────────────────────────────────────── */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
  order: 2;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-ink);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Scroll Reveal Animations ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children delay */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Hero entrance animation */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  animation: hero-fade-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero h2 {
  animation: hero-fade-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero p {
  animation: hero-fade-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero .btn {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* Stats counter glow on reveal */
.stats .stat h4 {
  transition: color 0.6s ease;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 5rem 4rem;
  }

  .hero-media {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-photo {
    max-width: 220px;
    margin-inline: auto;
  }

  .dark-band ul {
    columns: 1;
  }

  .timeline .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timeline .timeline-item>* {
    grid-column: 1;
  }

  .timeline .timeline-item p:first-child {
    grid-row: auto;
  }

  .dark-band,
  .surface-band {
    padding-block: 4rem;
  }

  .cta-banner {
    padding-block: 4rem;
  }

  .site-main>h2 {
    margin-block-start: 3.5rem;
    margin-block-end: 1rem;
  }

  .cta-banner {
    margin-block: 3rem 4rem;
  }

  .cards {
    padding-block: 2.5rem;
  }

  .funnel-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 2.5rem;
  }

  .proof-bar {
    flex-direction: column;
  }

  .proof-bar .proof-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--color-border);
  }

  .proof-bar .proof-item:last-child {
    border-bottom: none;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .prose {
    padding-block: 2.5rem 3rem;
  }

  .prose h2,
  .prose h3,
  .prose h4,
  .prose h5,
  .prose h6 {
    margin: 1.75rem 0 0.7rem;
  }

  h1 {
    font-size: clamp(2.25rem, 9vw, 3.25rem);
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-paper);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-start;
    z-index: 100;
  }

  [dir="rtl"] .primary-nav {
    right: auto;
    left: -100%;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.08);
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .primary-nav.nav-open {
    right: 0;
  }

  [dir="rtl"] .primary-nav.nav-open {
    left: 0;
  }

  .funnel-nav, .secondary-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    border: none;
  }

  .funnel-nav {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .funnel-nav a, .secondary-nav a {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: none;
    color: var(--color-ink);
  }

  .funnel-nav a[aria-current="page"], .secondary-nav a[aria-current="page"] {
    background: none;
    border-bottom-color: var(--color-brand);
    color: var(--color-brand);
  }

  .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  [dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: auto;
  }

  .lang-switch {
    display: inline-flex;
    font-size: 0.74rem;
    padding: 0.12rem 0.25rem;
  }

  .lang-switch a,
  .lang-switch .current {
    padding: 0.18rem 0.32rem;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.4);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 620px) {
  .header-inner {
    gap: 0.6rem;
  }

  .hero-copy .btn {
    display: flex;
    width: 100%;
  }

  .btn+.btn {
    margin-inline-start: 0;
    margin-top: 0.6rem;
    display: flex;
    width: 100%;
  }
}

@media (max-width: 580px) {
  .brand {
    font-size: 1.1rem;
  }

  .nav-cta {
    display: none;
  }

  .lang-switch {
    display: inline-flex;
    font-size: 0.72rem;
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: 0.95rem;
  }

  .lang-switch a,
  .lang-switch .current {
    padding: 0.14rem 0.22rem;
    font-size: 0.68rem;
  }
}

/* ── RTL Overrides ─────────────────────────────────────────────────── */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .primary-nav ul {
    padding-right: 0;
}

html[dir="rtl"] .header-actions {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .footer-col {
    text-align: right;
}

html[dir="rtl"] .footer-copyright {
    text-align: right;
}

/* ── Article / blog post content ─────────────────────────────────── */

.prose {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: 4rem 5rem;
}

.site-main > .prose {
  padding-inline: 0;
  margin-inline: max(2rem, calc((100% - 44rem) / 2));
}

.prose .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.01em;
}

.prose .back-link:hover {
  color: var(--color-brand);
  text-decoration: none;
}

.prose .back-link::before {
  content: "←";
  margin-inline-end: 0.45rem;
}

[dir="rtl"] .prose .back-link::before {
  content: "→";
}

.prose h1 {
  margin-bottom: 0.75rem;
  color: var(--color-ink);
}

.prose .post-meta {
  color: var(--color-muted);
  font-style: italic;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 2.5rem 0 0.85rem;
}

.prose h6 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose p:empty {
  display: none;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-inline-start: 1.4rem;
}

.prose li {
  margin-bottom: 0.55rem;
}

.prose li > p {
  margin: 0.25rem 0 0.5rem;
}

.prose li h6 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.prose li::marker {
  color: var(--color-brand);
  font-weight: 700;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--color-brand);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-brand);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0;
  padding-inline-start: 1.5rem;
  border-inline-start: 3px solid var(--color-brand);
  color: var(--color-muted);
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

.prose img {
  margin-block: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

/* ── Misc utilities ─────────────────────────────────────────────────── */

.contact-note {
  margin-block-start: 1.5rem;
}
/* ── About Hero (Corporate Grid) ────────────────────────────────────── */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 5% 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin: 0;
}

.about-hero-copy p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-ink);
  opacity: 0.85;
  margin: 0;
}

.about-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0; /* Sharp corporate look */
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 5% 2rem;
  }
  .about-hero-media {
    order: -1;
  }
}

/* ── CV Section Title ──────────────────────────────────────────────────── */

.cv-section-title {
  padding: 5rem var(--page-pad, 8%) 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cv-section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 0.35rem;
}

.cv-section-title p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
}

/* ── CV Accordion ──────────────────────────────────────────────────────── */

.cv-accordion {
  padding: 0 var(--page-pad, 8%) 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cv-accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.cv-accordion-item:first-child {
  border-top: 1px solid var(--color-border);
}

.cv-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  text-align: start;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.cv-accordion-trigger:hover {
  color: var(--color-brand);
}

.cv-accordion-trigger-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-accordion-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
  padding: 0.15rem 0.5rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.cv-accordion-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-accordion-icon::before,
.cv-accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-accordion-icon::before {
  width: 18px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.cv-accordion-icon::after {
  width: 1.5px;
  height: 18px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cv-accordion-item.open .cv-accordion-icon {
  opacity: 1;
}

.cv-accordion-item.open .cv-accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.cv-accordion-trigger:hover .cv-accordion-icon {
  opacity: 1;
}

.cv-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-accordion-inner {
  padding: 0 0 1.75rem;
}

/* CV accordion content typography */
.cv-accordion-inner p,
.cv-accordion-inner li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-ink);
  opacity: 0.82;
}

.cv-accordion-inner ul {
  padding-inline-start: 1.25rem;
  margin: 0;
}

.cv-accordion-inner li {
  margin-bottom: 0.35rem;
}

.cv-accordion-inner .cv-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cv-accordion-inner .cv-entry:last-child {
  border-bottom: none;
}

.cv-accordion-inner .cv-entry-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.cv-accordion-inner .cv-entry-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.4;
}

.cv-accordion-inner .cv-entry-content span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ── CV Timeline (summary cards above accordion) ───────────────────────── */

.cv-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  margin: 0 0 0;
}

.cv-summary-card {
  padding: 2rem var(--page-pad, 8%);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cv-summary-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
}

.cv-summary-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.cv-summary-card p {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .cv-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .cv-section-title {
    padding: 3.5rem 5% 1.25rem;
  }

  .cv-accordion {
    padding: 0 5% 3rem;
  }

  .cv-summary-grid {
    grid-template-columns: 1fr;
  }

  .cv-summary-card {
    padding: 1.5rem 5%;
  }

  .cv-accordion-inner .cv-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ── RTL: CV Accordion & Social Proof ──────────────────────────────────── */

[dir="rtl"] .cv-accordion-icon::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .cv-accordion-icon::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .cv-accordion-item.open .cv-accordion-icon::after {
  transform: translateX(50%) rotate(90deg);
}

[dir="rtl"] .cv-accordion-trigger {
  text-align: start;
}

[dir="rtl"] .cv-accordion-trigger-label {
  flex-direction: row;
}

/* Social proof bar RTL fix */
[dir="rtl"] .social-proof-bar {
  direction: rtl;
}

/* Prevent any element from causing horizontal scroll */
.site-main > * {
  max-width: 100%;
}
