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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: hidden;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-hn);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang^="ar"] body,
html[dir="rtl"] body {
  font-family: var(--font-ar);
  letter-spacing: 0;
  line-height: 1.7;
}

html[lang^="ar"] h1,
html[lang^="ar"] h2,
html[lang^="ar"] h3,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--font-ar);
  letter-spacing: 0;
  line-height: 1.25;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.15rem;
  opacity: 0.62;
  transition: opacity 300ms ease;
}

.lang-switch a:hover,
.lang-switch a[aria-current="page"] {
  opacity: 1;
}

.lang-switch a[aria-current="page"] {
  border-bottom: 1px solid rgba(239, 238, 233, 0.42);
}

.lang-switch [aria-hidden="true"] {
  opacity: 0.35;
}

.lang-switch--drawer {
  margin-block: 0.5rem 1.5rem;
  letter-spacing: 0.04em;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

ul,
ol {
  margin: 0;
  padding: 0;
  /* Empty type restores list semantics in Safari/WebKit after removing markers. */
  list-style: none;
  list-style-type: "";
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-hn);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 60;
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}

.hero-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 78%, rgba(239, 238, 233, 0.09), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 10%, rgba(239, 238, 233, 0.05), transparent 70%),
    var(--ink);
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Dissolves the bottom of the figure into the background so the hero's
   overflow clip reads as a fade instead of a hard slice. Sits above the
   portrait (z-20) but below the header (z-30). */
.hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 25;
  height: 34vh;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0) 0%,
    rgba(11, 11, 11, 0.55) 42%,
    rgba(11, 11, 11, 0.88) 72%,
    var(--ink) 100%
  );
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* Marquee name */
/* Role kicker — sits just under the header. Outer centers one inner group;
   a <span> (not <div>) keeps the markup valid inside <p>. */
.role-kicker {
  position: absolute;
  inset-inline: 0;
  top: calc(8.25rem + env(safe-area-inset-top, 0px));
  z-index: 30;
  margin: 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(239, 238, 233, 0.68);
}

.role-kicker-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.7rem;
  letter-spacing: 0.2em;
  /* match trailing letter-spacing so the group is optically centered */
  padding-inline-start: 0.2em;
}

.role-kicker-sep {
  opacity: 0.45;
  letter-spacing: 0;
  padding-inline-start: 0;
}

.marquee-wrap {
  position: absolute;
  inset-inline: 0;
  top: 26vh;
  z-index: 10;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.marquee {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-size: 15vh;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(239, 238, 233, 0.55);
  text-stroke: 1.25px rgba(239, 238, 233, 0.55);
  animation: marquee var(--marquee-duration) linear infinite;
}

.marquee-wrap:hover .marquee {
  animation-play-state: paused;
}

.marquee span {
  padding-inline-end: 10vw;
  padding-bottom: 0.08em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .marquee-wrap {
  mask-image: linear-gradient(
    270deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    270deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

html[dir="rtl"] .marquee {
  animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

/* Portrait */
.portrait {
  /* Anchored from the top so the head always sits at the same height; the
     figure runs past the fold and the hero's overflow crops the lower body.
     Width drives the scale, the matching aspect-ratio prevents distortion. */
  --portrait-width: min(118vw, 84dvh);
  /* rem-based so the figure always starts below the rem-positioned kicker */
  --portrait-top: calc(11rem + env(safe-area-inset-top, 0px));

  position: absolute;
  top: var(--portrait-top);
  left: 50%;
  z-index: 20;
  display: block;
  width: var(--portrait-width);
  aspect-ratio: 914 / 1448;
  transform: translateX(-50%);
  pointer-events: none;
}

.portrait img {
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.04);
}

/* Header */
.hero-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(1.5rem + env(safe-area-inset-top, 0px))
    max(var(--gutter), env(safe-area-inset-right, 0px))
    1.5rem
    max(var(--gutter), env(safe-area-inset-left, 0px));
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 4.5rem;
  transition: opacity 300ms ease;
}

.brand:hover {
  opacity: 0.7;
}

.brand-logo {
  width: 4.5rem;
  height: 4.5rem;
}

.header-cluster {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--cream);
  transition: opacity 300ms ease;
}

.header-social a:hover {
  opacity: 0.6;
}

.header-social svg {
  display: block;
}

/* Hamburger */
.hamburger {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
}

.hamburger-bars {
  position: relative;
  width: 1.5rem;
  height: 1rem;
}

.hamburger-bars span {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: transform 500ms var(--ease-drawer), opacity 300ms ease;
}

.hamburger-bars span:nth-child(1) {
  top: 0;
}

.hamburger-bars span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-bars span:nth-child(3) {
  bottom: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bars span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  /* Transforms are physical, so the closed offset flips with the writing mode
     through a variable instead of a higher-specificity RTL override. */
  --drawer-closed-x: 100%;
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  z-index: 45;
  width: min(88%, 24rem);
  max-width: 24rem;
  height: 100vh;
  height: 100dvh;
  padding-block-start: max(4.5rem, calc(2.5rem + env(safe-area-inset-top, 0px)));
  padding-block-end: max(2rem, env(safe-area-inset-bottom, 0px));
  padding-inline-start: 2rem;
  /* Logical env() safe-area names are not implemented; cover both physical sides. */
  padding-inline-end: max(1.5rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  background: var(--panel);
  transform: translateX(var(--drawer-closed-x));
  transition: transform 600ms var(--ease-drawer);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

html[dir="rtl"] .drawer {
  --drawer-closed-x: -100%;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  inset-inline-end: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  top: max(1rem, env(safe-area-inset-top, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  opacity: 0;
  transform: rotate(90deg);
  transition: opacity 400ms ease, transform 400ms var(--ease-drawer);
}

.drawer.is-open .drawer-close {
  opacity: 1;
  transform: rotate(0deg);
  transition-delay: 300ms;
}

.drawer-close svg {
  width: 26px;
  height: 26px;
}

.drawer-label {
  margin-bottom: 1.25rem;
  color: rgba(239, 238, 233, 0.62);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms ease, transform 500ms var(--ease-editorial);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  font-size: clamp(1.75rem, 9vw, 2.25rem);
  letter-spacing: -0.02em;
}

.drawer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.drawer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
}

.drawer-nav a,
.drawer-social a {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 500ms ease, transform 500ms var(--ease-editorial);
}

.drawer.is-open .drawer-label,
.drawer.is-open .drawer-nav a,
.drawer.is-open .drawer-social a {
  opacity: 1;
  transform: none;
}

.drawer.is-open .drawer-label[data-label="index"] {
  transition-delay: 250ms;
}

.drawer.is-open .drawer-label[data-label="find"] {
  transition-delay: 500ms;
}

/* ============ CONTENT ============ */
.section {
  padding-block: 4rem;
  scroll-margin-top: 2rem;
}

/* Sections are divided by a short centred rule rather than a full-bleed
   hairline, so nothing competes with the hero's fade or the narrow measure.
   First-child has no preceding section, so the hero transition stays clean. */
.section + .section::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0 auto 2.5rem;
  background: rgba(239, 238, 233, 0.3);
}

/* One narrow measure for every section, centred on the page */
.container {
  width: min(100% - (2 * var(--gutter)), 46rem);
  margin-inline: auto;
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
  text-align: center;
  justify-items: center;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 238, 233, 0.62);
}

/* kept clearly below the hero marquee so the two don't compete */
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  max-width: 20ch;
  text-wrap: balance;
}

.section-lead {
  max-width: 44ch;
  color: rgba(239, 238, 233, 0.66);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Editorial rows */
.rows {
  display: grid;
}

.row {
  display: grid;
  gap: 0.85rem;
  padding-block: 2rem;
  border-top: 1px solid rgba(239, 238, 233, 0.12);
}

.rows .row:last-child {
  border-bottom: 1px solid rgba(239, 238, 233, 0.12);
}

.row-index {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  color: rgba(239, 238, 233, 0.58);
  transition: color 400ms ease, transform 400ms var(--ease-editorial);
}

/* the measure already caps the line length, so no per-element max-width */
.row-title {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  text-wrap: balance;
}

/* decorative only — the row carries no interaction, so nothing is hover-gated */
@media (hover: hover) {
  .row:hover .row-index {
    color: var(--cream);
    transform: translateX(0.25rem);
  }

  html[dir="rtl"] .row:hover .row-index {
    transform: translateX(-0.25rem);
  }
}

@media (hover: none) {
  .brand:active,
  .header-social a:active,
  .drawer-nav a:active,
  .drawer-social a:active,
  .contact-tree a:active {
    opacity: 0.62;
  }
}

.row-body {
  display: grid;
  gap: 1rem;
}

.row-body p {
  color: rgba(239, 238, 233, 0.66);
  line-height: 1.6;
}

.row-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.row-list li {
  position: relative;
  padding-inline-start: 0.9rem;
  color: rgba(239, 238, 233, 0.78);
  font-size: 0.9375rem;
}

.row-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 4px;
  height: 1px;
  background: var(--cream);
}

/* Expertise: 6–8 short items per group read better as columns than as a wrap */
.row-list--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem 2rem;
}

/* About — stacked at every width so it keeps the single centred measure */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.about-copy {
  display: grid;
  gap: 1.25rem;
}

.about-copy p {
  color: rgba(239, 238, 233, 0.72);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* reads as a sidenote rather than a second column of body copy */
.about-aside {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 238, 233, 0.16);
}

.about-aside h3 {
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 238, 233, 0.62);
}

.about-aside .row-list {
  flex-direction: column;
  gap: 0.9rem;
}

.about-aside .row-list li {
  padding-inline-start: 0;
  border-bottom: 1px solid rgba(239, 238, 233, 0.1);
  padding-bottom: 0.9rem;
}

.about-aside .row-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-aside .row-list li::before {
  display: none;
}

/* Contact — grouped into cards, each holding a small tree of entries.
   Cards are outlined with hairlines rather than filled, so they stay in the
   two-colour palette instead of reading as panels. */
.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(239, 238, 233, 0.16);
  text-align: start;
}

.contact-card-title {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 238, 233, 0.62);
}

/* The li carries the font-size so the connector pseudo-elements can be sized
   in em and stay locked to the first line of the entry at any breakpoint. */
.contact-tree li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
}

/* vertical trunk, lifted into the gap so it meets the card title */
.contact-tree li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(239, 238, 233, 0.18);
}

.contact-tree li:first-child::before {
  top: -1rem;
}

/* last entry closes the trunk, turning the branch into an L */
.contact-tree li:last-child::before {
  bottom: auto;
  height: calc(0.6rem + 0.7em);
}

/* horizontal branch into the entry */
.contact-tree li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: calc(0.6rem + 0.7em);
  width: 0.85rem;
  height: 1px;
  background: rgba(239, 238, 233, 0.18);
}

.contact-tree a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-block: 0.6rem;
  min-height: 3rem;
  font-size: inherit;
}

html[dir="rtl"] .contact-tree a {
  align-items: flex-start;
}

.contact-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: transform 400ms var(--ease-editorial);
}

.contact-icon {
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  color: rgba(239, 238, 233, 0.75);
  transition: color 400ms ease;
}

/* typographic arrow, not an icon font or emoji */
.contact-name::after {
  content: "\2197";
  font-size: 0.6em;
  color: rgba(239, 238, 233, 0.45);
  transition: color 400ms ease, transform 400ms var(--ease-editorial);
}

html[dir="rtl"] .contact-name::after {
  content: "\2196";
}

.contact-meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 238, 233, 0.62);
  transition: color 400ms ease;
}

@media (hover: hover) {
  .contact-tree a:hover .contact-name {
    transform: translateX(0.35rem);
  }

  html[dir="rtl"] .contact-tree a:hover .contact-name {
    transform: translateX(-0.35rem);
  }

  .contact-tree a:hover .contact-name::after,
  .contact-tree a:hover .contact-icon {
    color: var(--cream);
  }

  .contact-tree a:hover .contact-name::after {
    transform: translate(0.15rem, -0.15rem);
  }

  html[dir="rtl"] .contact-tree a:hover .contact-name::after {
    transform: translate(-0.15rem, -0.15rem);
  }

  .contact-tree a:hover .contact-meta {
    color: rgba(239, 238, 233, 0.8);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(239, 238, 233, 0.16);
  display: grid;
  justify-items: center;
  padding-block: 0.75rem;
  padding-inline: var(--gutter);
  text-align: center;
}

.footer-inner {
  margin: 0;
  color: rgba(239, 238, 233, 0.62);
  font-size: 0.75rem;
}

.footer-privacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(239, 238, 233, 0.3);
  text-underline-offset: 0.2em;
  transition: color 250ms ease;
}

.footer-privacy:hover {
  color: var(--cream);
}

/* Privacy notice */
.legal-content a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(239, 238, 233, 0.42);
  text-underline-offset: 0.2em;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    max(var(--gutter), env(safe-area-inset-right, 0px))
    1.5rem
    max(var(--gutter), env(safe-area-inset-left, 0px));
}

.legal-home {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 1px solid rgba(239, 238, 233, 0.36);
  font-size: 0.875rem;
}

.legal-page {
  width: min(100% - (2 * var(--gutter)), 46rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.legal-content {
  display: grid;
  gap: 2rem;
}

.legal-content > h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-wrap: balance;
}

.legal-updated {
  color: rgba(239, 238, 233, 0.62);
  font-size: 0.875rem;
}

.legal-content section {
  display: grid;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(239, 238, 233, 0.16);
}

.legal-content section h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
}

.legal-content section p {
  max-width: 65ch;
  color: rgba(239, 238, 233, 0.72);
  line-height: 1.7;
}

/* Standalone 404 */
.error-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(2rem, env(safe-area-inset-top, 0px)) var(--gutter)
    max(2rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  text-align: center;
}

.error-brand {
  position: absolute;
  top: max(1.5rem, env(safe-area-inset-top, 0px));
  inset-inline-start: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: inline-flex;
  width: 5rem;
  height: 5rem;
}

.error-brand img {
  width: 100%;
  height: 100%;
}

.error-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: min(100%, 44rem);
}

.error-code {
  color: transparent;
  font-size: clamp(7rem, 28vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(239, 238, 233, 0.42);
}

.error-title {
  max-width: 18ch;
  font-size: clamp(2rem, 6vw, 4rem);
  text-wrap: balance;
}

.error-copy {
  max-width: 42ch;
  color: rgba(239, 238, 233, 0.7);
  line-height: 1.65;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 1px solid rgba(239, 238, 233, 0.36);
}

@media (max-width: 479px) {
  .error-brand {
    width: 4rem;
    height: 4rem;
  }

  .error-content {
    transform: translateY(1.75rem);
  }
}

/* ============ ANIMATIONS ============ */
.anim-fade-in,
.anim-rise-in,
.anim-fade-up {
  animation-fill-mode: both;
}

.anim-fade-in {
  animation: fade-in 1.2s ease-out;
}

.anim-rise-in {
  animation: rise-in 1s var(--ease-editorial);
}

.anim-fade-up {
  animation: fade-up 0.7s var(--ease-editorial);
}

.anim-delay-100 {
  animation-delay: 100ms;
}

.anim-delay-150 {
  animation-delay: 150ms;
}

.anim-delay-200 {
  animation-delay: 200ms;
}

.anim-delay-240 {
  animation-delay: 240ms;
}

.anim-delay-250 {
  animation-delay: 250ms;
}

.anim-delay-280 {
  animation-delay: 280ms;
}

.anim-delay-320 {
  animation-delay: 320ms;
}

.anim-delay-360 {
  animation-delay: 360ms;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(2vh) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal for content below the hero. The hidden state is scoped to
   .js-reveal, which main.js only sets once it can actually run the observer,
   so content stays readable if the script never executes. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-editorial), transform 700ms var(--ease-editorial);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

[data-stagger] > .reveal {
  transition-delay: calc(var(--reveal-index, 0) * 50ms);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 359px) {
  /* Keep long email addresses intact at the narrowest supported width without
     changing card spacing or type scale at larger mobile sizes. */
  .contact-tree li {
    font-size: 0.9375rem;
  }
}

@media (min-width: 480px) {
  .row-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .hero-header {
    padding:
      calc(2rem + env(safe-area-inset-top, 0px))
      max(var(--gutter), env(safe-area-inset-right, 0px))
      2rem
      max(var(--gutter), env(safe-area-inset-left, 0px));
  }

  .brand {
    min-width: 5rem;
    min-height: 5rem;
  }

  .brand-logo {
    width: 5rem;
    height: 5rem;
  }

  .role-kicker {
    /* just under the 9rem header row */
    top: calc(9.75rem + env(safe-area-inset-top, 0px));
    font-size: 0.8125rem;
  }

  .role-kicker-inner {
    flex-wrap: wrap;
    letter-spacing: 0.22em;
    padding-inline-start: 0.22em;
  }

  .portrait {
    /* scaled down a notch from the previous 86dvh framing */
    --portrait-width: max(55dvh, min(76dvh, 54vw));
    --portrait-top: calc(11.5rem + env(safe-area-inset-top, 0px));
  }

  .header-cluster {
    display: flex;
  }

  .header-social {
    display: none;
  }

  .hamburger,
  .drawer,
  .drawer-backdrop {
    display: none;
  }

  .marquee-wrap {
    top: 24vh;
  }

  .marquee {
    font-size: 24vh;
    -webkit-text-stroke-width: 1.75px;
  }

}

@media (min-width: 960px) {
  .role-kicker-inner {
    flex-wrap: nowrap;
    letter-spacing: 0.28em;
    padding-inline-start: 0.28em;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  /* The desktop kicker type scale starts at 640px, but its English copy needs
     tighter tracking until the tablet content width is available. */
  .role-kicker-inner {
    gap: 0.25rem 0.5rem;
    letter-spacing: 0.15em;
    padding-inline-start: 0.15em;
  }
}

@media (min-width: 1024px) {
  .header-social {
    display: flex;
  }
}

@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }

  .section + .section::before {
    margin-bottom: 4rem;
  }

  .section-head {
    margin-bottom: 4rem;
  }

  .row {
    padding-block: 2.5rem;
  }

  /* Email and WhatsApp pair up once both addresses fit without awkward wraps.
     Elsewhere spans both and keeps labels and details on one line. */
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card--wide {
    grid-column: 1 / -1;
  }

  .contact-card--wide .contact-tree a {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

@media (min-width: 1440px) {
  .section {
    padding-block: 8rem;
  }

  .section + .section::before {
    margin-bottom: 4.5rem;
  }

  .section-head {
    margin-bottom: 4.5rem;
  }

  .row {
    padding-block: 2.75rem;
  }
}

/* Short landscape screens need the same visual hierarchy with less vertical
   dead space. Width-based rules alone cannot cover this class of device. */
@media (max-height: 480px) {
  .role-kicker {
    top: calc(5rem + env(safe-area-inset-top, 0px));
    font-size: 0.75rem;
  }

  .portrait {
    --portrait-top: calc(6.25rem + env(safe-area-inset-top, 0px));
    --portrait-width: max(48dvh, min(70dvh, 62vw));
  }

  .marquee-wrap {
    top: 16vh;
  }

  .marquee {
    font-size: 16vh;
  }
}

@media (min-width: 640px) and (max-height: 800px) {
  .role-kicker {
    top: calc(7.5rem + env(safe-area-inset-top, 0px));
  }

  .portrait {
    --portrait-top: calc(8.75rem + env(safe-area-inset-top, 0px));
    --portrait-width: max(54dvh, min(74dvh, 50vw));
  }

  .marquee-wrap {
    top: 22vh;
  }

  .marquee {
    font-size: 22vh;
  }
}

@media (min-width: 640px) and (max-height: 420px) {
  .hero-header {
    padding:
      calc(1rem + env(safe-area-inset-top, 0px))
      max(var(--gutter), env(safe-area-inset-right, 0px))
      1rem
      max(var(--gutter), env(safe-area-inset-left, 0px));
  }

  .brand {
    min-width: 4rem;
    min-height: 4rem;
  }

  .brand-logo {
    width: 4rem;
    height: 4rem;
  }

  .role-kicker {
    top: calc(5.75rem + env(safe-area-inset-top, 0px));
  }

  .portrait {
    --portrait-top: calc(7rem + env(safe-area-inset-top, 0px));
    --portrait-width: max(44dvh, min(60dvh, 40vw));
  }

  .marquee-wrap {
    top: 27vh;
  }

  .marquee {
    font-size: 20vh;
  }
}

html[lang^="ar"] .label,
html[lang^="ar"] .role-kicker,
html[lang^="ar"] .contact-card-title,
html[lang^="ar"] .contact-meta,
html[lang^="ar"] .drawer-label,
html[lang^="ar"] .about-aside h3 {
  letter-spacing: 0.06em;
  text-transform: none;
}

html[lang^="ar"] .section-title {
  max-width: 18ch;
}

html[lang^="ar"] .legal-content > h1 {
  max-width: 12ch;
}

html[lang^="ar"] .error-title {
  max-width: 16ch;
}

html[lang^="ar"] .marquee {
  letter-spacing: 0;
  /* Arabic glyphs need more descender room than the Latin outline stroke. */
  line-height: 1.12;
}

html[lang^="ar"] .marquee span {
  padding-bottom: 0.32em;
}

@media (min-width: 640px) {
  .header-actions .hamburger {
    display: none;
  }
}

.legal-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch--error {
  justify-content: center;
  margin-block-start: 1.5rem;
  letter-spacing: 0.04em;
}

html[lang^="ar"] .lang-switch {
  letter-spacing: 0.04em;
}

/* English wraps to two role lines at these narrow ranges; preserve a clear
   boundary between the kicker and the portrait without shifting Arabic. */
@media (max-width: 400px) {
  html[lang^="en"] .portrait {
    --portrait-top: calc(12rem + env(safe-area-inset-top, 0px));
  }
}

@media (min-width: 640px) and (max-width: 699px) {
  html[lang^="en"] .portrait {
    --portrait-top: calc(12.5rem + env(safe-area-inset-top, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .anim-fade-in,
  .anim-rise-in,
  .anim-fade-up {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .marquee {
    animation: none !important;
    transform: none !important;
  }

  .reveal,
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .drawer,
  .drawer-backdrop,
  .drawer-close,
  .drawer-label,
  .drawer-nav a,
  .drawer-social a,
  .hamburger-bars span {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
