:root {
  --bg: #fff;
  --fg: #000;
  --muted: #2f2f2f;
  --border: #000;
  --section-gap: clamp(4.5rem, 8vw, 9rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

main {
  overflow: hidden;
}

.section {
  padding: var(--section-gap) 1.5rem;
}

.container {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.centered {
  text-align: center;
}

.brand-header {
  --header-shift: 0px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem 0;
  pointer-events: none;
}

.brand-lockup {
  display: inline-grid;
  justify-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--fg);
  transform: translateY(calc(var(--header-shift) * 1px)) scale(0.76);
  opacity: 0.55;
  transform-origin: top center;
  transition: opacity 220ms ease;
  pointer-events: auto;
}

.brand-subtitle {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
}

.lang-toggle {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.2rem 0;
  cursor: pointer;
  transform: translateY(calc(var(--header-shift) * 0.7px));
  transition: opacity 220ms ease;
  pointer-events: auto;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  opacity: 0.7;
}

.top-phone {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
  pointer-events: auto;
}

main {
  padding-top: 8.5rem;
}

.top-phone:hover,
.top-phone:focus-visible {
  border-color: var(--border);
}

.hero {
  padding-top: clamp(3.5rem, 10vw, 7.5rem);
  min-height: calc(100vh - 220px);
}

h1,
h2,
h3,
.name {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.25rem);
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
}

h3 {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.lead,
.subtitle,
.step p {
  margin: 1rem auto 0;
  max-width: 42ch;
  color: var(--muted);
}

.seo-copy {
  margin: 1rem auto 0;
  max-width: 72ch;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--muted);
  opacity: 0.9;
}

.cta-group {
  margin-top: 2.3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.centered-single {
  justify-content: center;
}

.btn {
  display: inline-block;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  padding: 0.88rem 1.45rem;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-secondary {
  opacity: 0.88;
}

.btn-outline {
  background: transparent;
}

.projects {
  margin-top: 2.4rem;
  display: grid;
  gap: 0;
}

.projects img {
  width: 100%;
  display: block;
  border-radius: 0;
  border: 0;
  filter: saturate(0.75);
}

.projects-section {
  padding-inline: 0;
}

.full-bleed-image {
  width: 100%;
  display: block;
  margin-top: 2rem;
  border-radius: 0;
  border: 0;
  filter: saturate(0.75);
}

.authority .portrait {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
}

.name {
  margin-top: 1rem;
}

.authority-contact {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--fg);
}

.contact-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

#bioToggle {
  margin-top: 1.1rem;
}

.bio-panel {
  margin-top: 0.85rem;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms ease, opacity 320ms ease;
}

.bio-panel[aria-hidden='false'] {
  grid-template-rows: 1fr;
  opacity: 1;
}

.bio-content {
  overflow: hidden;
}

.bio-text {
  margin: 0;
  color: var(--muted);
}

.form-wrap {
  max-width: 680px;
}

form {
  margin-top: 2rem;
  display: grid;
  gap: 0.78rem;
}

.form-subtitle {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

label {
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
}

.required-mark {
  color: var(--fg);
  font-weight: 700;
}

.field-group {
  display: grid;
  gap: 0.78rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

input:focus-visible,
select:focus-visible,
.btn:focus-visible,
.lang-toggle:focus-visible,
.top-phone:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.form-note {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-helper {
  margin: -0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.success {
  display: none;
  margin-top: 0.3rem;
  font-weight: 500;
}

.success.visible {
  display: block;
}

.success.error {
  opacity: 0.75;
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.timeline {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  position: relative;
  align-items: start;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 88px;
  left: 16%;
  right: 16%;
  border-top: 1px solid var(--border);
}

.step {
  position: relative;
  z-index: 1;
}

.step img {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto 1rem;
  filter: saturate(0.8);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 550ms ease, transform 550ms ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    display: none;
  }

  .section {
    padding: clamp(3.5rem, 11vw, 5rem) 1.15rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }
}
