/* Mehdi Saidi — site styles
   Mobile-first. Uses CSS logical properties so the Arabic (RTL) version mirrors automatically. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41;
}

:root {
  --paper: #f6f3ee;
  --paper-2: #efe9e0;
  --card: #fffdf9;
  --ink: #0f1b2d;
  --ink-2: #33404f;
  --muted: #5f6875;
  --line: #e1dacf;
  --accent: #a8461f;
  --accent-soft: #f3e2d8;
  --teal: #2a6661;
  --teal-soft: #dcebe8;
  --sand: #d9c8ac;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 27 45 / 0.04), 0 8px 24px -12px rgb(15 27 45 / 0.12);
  --shadow-lg: 0 2px 4px rgb(15 27 45 / 0.05), 0 24px 48px -24px rgb(15 27 45 / 0.25);
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 68px;
}

:lang(ar) {
  --font-display: "IBM Plex Sans Arabic", "Manrope", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Manrope", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(ar) body,
body:lang(ar) {
  line-height: 1.85;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3 {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.98rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgb(15 27 45 / 0.5);
}
.btn:active {
  transform: translateY(0);
}
.btn--accent {
  --btn-bg: var(--accent);
}
.btn--accent:hover {
  --btn-bg: #923b18;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgb(15 27 45 / 0.25);
}
.btn--ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
}
.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.btn .arrow {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
[dir="rtl"] .arrow {
  transform: scaleX(-1);
}
[dir="rtl"] .btn:hover .arrow {
  transform: scaleX(-1) translateX(3px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 243 238 / 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-inline-end: auto;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.95rem/1 "Fraunces", Georgia, serif;
  letter-spacing: 0.02em;
}
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 700;
  font-size: 1rem;
}
.brand-role {
  font-size: 0.75rem;
  color: var(--muted);
}
:lang(ar) .brand-text {
  line-height: 1.45;
}

.main-nav {
  display: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover {
  color: var(--ink);
  background: rgb(15 27 45 / 0.05);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  flex: none;
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 32px;
  padding-inline: 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu ul {
  list-style: none;
  border-top: 1px solid var(--line);
}
.mobile-menu li {
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 1rem 0.25rem;
  text-decoration: none;
  font: 500 1.35rem/1.3 var(--font-display);
}
.mobile-menu .btn {
  width: 100%;
  margin-top: 1.75rem;
}
body.menu-open {
  overflow: hidden;
}

@media (min-width: 400px) {
  .brand-text {
    display: flex;
  }
}
@media (min-width: 560px) {
  .header-cta {
    display: inline-flex;
  }
}
@media (min-width: 1040px) {
  .main-nav {
    display: block;
  }
  .menu-toggle,
  .mobile-menu {
    display: none;
  }
  .header-inner {
    gap: 1rem;
  }
}
@media (max-width: 559px) {
  .brand-role {
    display: none;
  }
}

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta {
  position: fixed;
  inset-inline: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  justify-content: center;
  transform: translateY(150%);
  transition: transform 0.35s ease;
  pointer-events: none;
}
.mobile-cta .btn {
  width: 100%;
  max-width: 420px;
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-cta.is-visible {
  transform: none;
}
@media (min-width: 560px) {
  .mobile-cta {
    display: none;
  }
}

/* ---------- Section scaffolding ---------- */

.section {
  padding-block: var(--section);
}
.section--alt {
  background: var(--paper-2);
}
.section--ink {
  background: var(--ink);
  color: #e9edf2;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
:lang(ar) .kicker {
  letter-spacing: 0;
  font-size: 0.92rem;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.section-head p:not(.kicker) {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: var(--ink-2);
}
.section--ink .kicker {
  color: #e8a283;
}
.section--ink .section-head p:not(.kicker) {
  color: #b9c2ce;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(15 27 45 / 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
[dir="rtl"] .hero::before {
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}
[dir="rtl"] .hero-badge {
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
}
@media (max-width: 559px) {
  .badge-langs {
    display: none;
  }
}
.hero-badge .dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-soft);
}
.hero-badge .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgb(42 102 97 / 0.18);
}
.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.5rem, 6.4vw, 4.2rem);
  font-weight: 450;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
:lang(ar) .hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
}
:lang(ar) .hero h1 em {
  font-style: normal;
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
  list-style: none;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex: none;
}

.hero-visual {
  position: relative;
  margin: 0;
}
.hero-visual-frame {
  position: relative;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.hero-chip svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.hero-chip--a {
  inset-inline-start: -0.5rem;
  bottom: 12%;
}
.hero-chip--a svg {
  color: var(--teal);
}
.hero-chip--b {
  inset-inline-end: 1rem;
  top: -1.1rem;
}
.hero-chip--b svg {
  color: var(--accent);
}
.hero-langs {
  display: inline-flex;
  gap: 0.35rem;
}
.hero-langs span {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--paper-2);
  font-size: 0.78rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 1fr;
  }
  .hero-chip--a {
    inset-inline-start: -1.75rem;
  }
  .hero-chip--b {
    inset-inline-end: 1.5rem;
  }
}
@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 680px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #d5ccbe;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.service-card:nth-child(3n + 2) .service-icon {
  background: var(--teal-soft);
  color: var(--teal);
}
.service-card:nth-child(3n + 3) .service-icon {
  background: #e7e3f0;
  color: #4a4373;
}
.service-icon svg {
  width: 26px;
  height: 26px;
}
.service-card h3 {
  font-size: 1.4rem;
}
.service-card > p {
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: 1rem;
}
.service-more {
  margin-top: auto;
  padding-top: 1.25rem;
}
.service-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.service-more summary::-webkit-details-marker {
  display: none;
}
.service-more summary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.service-more[open] summary svg {
  transform: rotate(45deg);
}
.service-more ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}
.service-more li {
  position: relative;
  padding-inline-start: 1.3rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.service-more li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.service-card--cta {
  justify-content: space-between;
  background: var(--ink);
  border-color: var(--ink);
  color: #e9edf2;
}
.service-card--cta h3 {
  color: #fff;
}
.service-card--cta h3 + p {
  margin-top: 0.8rem;
}
@media (min-width: 1040px) {
  .service-card--cta {
    grid-column: span 2;
  }
}
.service-card--cta p {
  color: #b9c2ce !important;
}
.service-card--cta .btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  list-style: none;
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.why-num {
  font: 400 0.95rem/1.6 var(--font-display);
  color: #e8a283;
  min-width: 2ch;
}
.why-item h3 {
  font-size: 1.25rem;
  color: #fff;
}
.why-item p {
  margin-top: 0.4rem;
  color: #b9c2ce;
  font-size: 0.98rem;
}
@media (min-width: 760px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }
}
@media (min-width: 1040px) {
  .why-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }
  .why-layout .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    margin-bottom: 0;
  }
}

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.skill-group {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.skill-group h3 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.skill-tags li {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.skill-tags li:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Experience ---------- */

.timeline {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.role {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
@media (min-width: 860px) {
  .role {
    grid-template-columns: 0.9fr 1.4fr;
    gap: 2.5rem;
    padding: 2.25rem;
  }
}
.role-head h3 {
  font-size: 1.45rem;
}
.role-org {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--accent);
}
.role-place {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.role-place svg {
  width: 14px;
  height: 14px;
}
.role-summary {
  color: var(--ink-2);
}
.role-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.role-points li {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: var(--teal-soft);
  color: #1d4a46;
  font-size: 0.88rem;
  font-weight: 600;
}
.role--note {
  background: transparent;
  border-style: dashed;
}

/* ---------- Languages ---------- */

.lang-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 760px) {
  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.lang-card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lang-glyph {
  display: block;
  font: 500 clamp(3.2rem, 6vw, 4.2rem)/1 "Fraunces", Georgia, serif;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.lang-glyph[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
.lang-card h3 {
  margin-top: 1.5rem;
  font-size: 1.3rem;
}
.lang-level {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal);
}
.lang-level::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.lang-card p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.lang-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 22px rgb(225 218 207 / 0.25), 0 0 0 44px rgb(225 218 207 / 0.15);
}

/* ---------- Process ---------- */

.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.step {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 500 1.2rem/1 "Fraunces", Georgia, serif;
  margin-bottom: 1.4rem;
}
.step:nth-child(2) .step-num {
  background: var(--teal);
}
.step:nth-child(3) .step-num {
  background: var(--accent);
}
.step h3 {
  font-size: 1.3rem;
}
.step p {
  margin-top: 0.6rem;
  color: var(--ink-2);
}
@media (min-width: 860px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(2rem + 24px);
    inset-inline-start: calc(1.75rem + 60px);
    inset-inline-end: -1.25rem;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--sand) 0 6px, transparent 6px 12px);
  }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 4.5rem;
  }
}
.about-card {
  position: relative;
  padding: 2.25rem;
  border-radius: 24px;
  background: var(--ink);
  color: #e9edf2;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 0 0 30px rgb(255 255 255 / 0.03), 0 0 0 60px rgb(255 255 255 / 0.02);
}
.about-monogram {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.7rem/1 "Fraunces", Georgia, serif;
}
.about-card .about-name {
  margin-top: 1.5rem;
  font: 500 1.9rem/1.2 var(--font-display);
  color: #fff;
}
.about-card .about-role {
  margin-top: 0.5rem;
  color: #b9c2ce;
  font-size: 0.98rem;
}
.about-facts {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.about-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
}
.about-facts svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.2em;
  color: #e8a283;
}
.about-copy h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.about-copy p:not(.kicker) {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--ink-2);
}
.about-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
}
.about-copy .btn {
  margin-top: 2rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item h3 {
  font-size: 1.18rem;
}
.faq-item summary svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-item[open] summary svg {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 0.25rem 1.5rem;
  max-width: 68ch;
  color: var(--ink-2);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
}
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }
}
.contact-intro h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.3rem);
  color: #fff;
}
.contact-intro > p:not(.kicker) {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: #b9c2ce;
}
.contact-links {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.14);
  text-decoration: none;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.3);
}
.contact-link-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
  color: #e8a283;
}
.contact-link-icon svg {
  width: 22px;
  height: 22px;
}
.contact-link small {
  display: block;
  font-size: 0.8rem;
  color: #9aa5b3;
}
.contact-link span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.form-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.field .optional {
  font-weight: 500;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.4 var(--font-body);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f1b2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-inline-end: 2.6rem;
}
[dir="rtl"] .field select {
  background-position: left 0.9rem center;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cfc5b6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(15 27 45 / 0.08);
}
.field input[type="email"] {
  direction: ltr;
}
[dir="rtl"] .field input[type="email"] {
  text-align: right;
}
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 34ch;
}
.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status:empty {
  display: none;
}
.form-status[data-state="success"] {
  background: var(--teal-soft);
  color: #1d4a46;
}
.form-status[data-state="error"] {
  background: var(--accent-soft);
  color: #7a3013;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}
.hp-field {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem 6rem;
  background: var(--ink);
  color: #9aa5b3;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.92rem;
}
@media (min-width: 560px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-brand {
  color: #fff;
  font-weight: 700;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.footer-links a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.4rem;
}
.footer-links a:hover {
  color: #fff;
}

/* ---------- Simple pages (404, thank-you) ---------- */

.simple-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding-block: 4rem;
}
.simple-card {
  max-width: 640px;
  text-align: center;
}
.simple-card .big {
  font: 400 clamp(5rem, 16vw, 9rem)/1 "Fraunces", Georgia, serif;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.simple-card h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.simple-card p {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}
.simple-card .hero-actions {
  justify-content: center;
}
.simple-alt {
  display: grid;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Reveal (progressive; content stays visible without JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
