:root {
  --olive: #304A32;
  --red: #C92130;
  --purple: #493458;
  --gold: #D99D20;
  --cream: #FFF8EF;
  --ink: #242126;
  --paper: #F8EDDF;
  --radius: 1.35rem;
  --shadow: 0 1.2rem 3rem rgba(36, 33, 38, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: fixed; inset-block-start: .5rem; inset-inline-start: .5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.topbar {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  color: var(--cream);
}
.brand-marks {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .45rem;
  border: 1px solid rgba(255,248,239,.32);
  border-radius: 999px;
  background: rgba(255,248,239,.1);
  backdrop-filter: blur(8px);
  text-decoration: none;
}
.brand-marks img {
  width: 2.65rem;
  height: 2.65rem;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
.marks-divider { width: 1px; height: 1.8rem; background: rgba(255,248,239,.4); }
.topbar nav { display: flex; gap: 1rem; }
.topbar nav a { font-size: .88rem; font-weight: 750; text-decoration-thickness: .08em; text-underline-offset: .3em; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(7rem, 18vh, 10rem) clamp(1rem, 7vw, 6rem) 5rem;
  color: var(--cream);
  background: var(--olive);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: auto -20% -18rem;
  height: 32rem;
  background: var(--cream);
  transform: rotate(-4deg);
}
.eyebrow { margin: 0 0 1rem; font-size: .82rem; font-weight: 850; letter-spacing: .08em; }
.hero .eyebrow { color: #d6dfd3; }
.hero-title { position: relative; z-index: 2; display: grid; margin: 0; width: max-content; max-width: 100%; line-height: .78; }
.name { display: block; font-size: clamp(5.4rem, 28vw, 17rem); font-weight: 950; letter-spacing: -.08em; }
.name-naya { color: var(--cream); transform: rotate(-2deg); }
.name-wajeeh { color: var(--gold); margin-inline-start: clamp(1rem, 15vw, 10rem); transform: rotate(1.5deg); }
.amp { position: absolute; z-index: 3; inset: 48% 48% auto auto; color: var(--red); font-family: Georgia, serif; font-size: clamp(3rem, 11vw, 7rem); font-weight: 400; transform: rotate(14deg); }
.roles { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; max-width: 48rem; margin-top: 2.5rem; }
.roles p { display: grid; gap: .1rem; margin: 0; }
.roles strong { font-size: .82rem; letter-spacing: .08em; }
.roles span { color: #d6dfd3; font-size: .92rem; }
.roles-line { width: 2.6rem; height: 1px; background: var(--cream); opacity: .45; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.1rem; }
.button { display: inline-flex; min-height: 3.4rem; align-items: center; justify-content: center; gap: .65rem; padding: .8rem 1.3rem; border: 2px solid transparent; border-radius: 999px; font-weight: 850; text-decoration: none; transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 .8rem 2rem rgba(0,0,0,.16); }
.button-primary { color: var(--ink); background: var(--cream); }
.text-link { font-weight: 750; text-underline-offset: .4em; }
.hero-stroke { position: absolute; z-index: -1; border-radius: 50%; border: clamp(2rem, 8vw, 6rem) solid; opacity: .95; filter: saturate(.9); }
.stroke-one { width: 26rem; height: 15rem; inset: 5rem -11rem auto auto; color: var(--purple); transform: rotate(25deg); }
.stroke-two { width: 19rem; height: 10rem; inset: 25rem auto auto -8rem; color: var(--red); transform: rotate(-28deg); }

.portrait-composition { position: relative; z-index: 5; display: grid; gap: 1rem; margin-top: 5rem; color: var(--ink); }
.candidate-card { display: grid; grid-template-columns: 1fr; min-height: 19rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.portrait-photo { width: 100%; height: auto; display: block; object-fit: cover; object-position: center top; background: #fff; }
.portrait-placeholder { min-height: 100%; display: grid; place-content: center; gap: .5rem; padding: 1rem; text-align: center; background: var(--purple); color: var(--cream); }
.card-wajeeh .portrait-placeholder { background: var(--olive); }
.portrait-initial { display: block; font-size: clamp(4rem, 16vw, 8rem); font-weight: 950; line-height: 1; }
.portrait-placeholder small { font-size: .75rem; opacity: .8; }
.candidate-copy { align-self: end; padding: 1.5rem; }
.candidate-number { margin: 0; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .05em; }
.candidate-copy h2 { margin: .15rem 0 .65rem; font-size: clamp(2rem, 9vw, 4rem); line-height: 1.1; }
.candidate-copy p:last-child { margin: 0; font-size: .95rem; }

.section { padding: 6rem clamp(1rem, 7vw, 6rem); }
.section-heading { max-width: 42rem; }
.section-heading h2, .poll h2, .countdown h2 { margin: 0; font-size: clamp(3.3rem, 15vw, 8rem); line-height: .95; letter-spacing: -.055em; }
.section-heading > p:last-child { max-width: 35rem; font-size: 1.08rem; }
.vision { position: relative; background: var(--cream); }
.pillars { display: grid; gap: 0; margin-top: 3rem; border-block: 1px solid rgba(36,33,38,.3); }
.pillar { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.6rem 0; border-bottom: 1px solid rgba(36,33,38,.3); }
.pillar:last-child { border-bottom: 0; }
.pillar > span { color: var(--red); font: 700 .8rem/1.5 Georgia, serif; }
.pillar h3 { margin: 0; font-size: clamp(1.45rem, 6vw, 2rem); }
.pillar p { grid-column: 2; max-width: 31rem; margin: .35rem 0 0; }

.countdown { position: relative; isolation: isolate; overflow: hidden; color: var(--cream); background: var(--purple); text-align: center; }
.countdown .eyebrow { color: #EEE0E9; }
.countdown h2 { color: var(--gold); }
.countdown-orbit { position: absolute; z-index: -1; width: 26rem; height: 26rem; inset: 3rem 50% auto auto; translate: 50% 0; border: 1px solid rgba(255,248,239,.25); border-radius: 50%; }
.countdown-orbit::after { content: ""; position: absolute; width: 2rem; height: 2rem; border-radius: 50%; background: var(--red); inset: 8% 14% auto auto; }
.timer { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; max-width: 44rem; margin: 3rem auto 0; }
.timer div { padding: 1rem .5rem; border: 1px solid rgba(255,248,239,.35); border-radius: 1rem; background: rgba(255,255,255,.045); backdrop-filter: blur(5px); }
.timer strong { display: block; font: 700 clamp(2.4rem, 12vw, 5.5rem)/1 Georgia, serif; font-variant-numeric: tabular-nums; }
.timer span { display: block; margin-top: .45rem; font-size: .82rem; }
.timezone { margin: 1rem 0 0; color: #EEE0E9; font-size: .82rem; }
.countdown-finished { margin: 2rem 0 0; color: var(--gold); font-size: 1.5rem; font-weight: 900; }

.poll { position: relative; min-height: 42rem; display: grid; align-items: center; color: var(--cream); background: var(--red); overflow: hidden; }
.poll::before { content: ""; position: absolute; width: 24rem; height: 40rem; border: 5rem solid var(--gold); border-radius: 49% 51% 48% 52%; inset: -14rem -13rem auto auto; transform: rotate(25deg); opacity: .9; }
.poll-mark { position: absolute; inset: auto auto -3rem -1rem; font-size: clamp(7rem, 34vw, 21rem); font-weight: 950; line-height: .8; color: rgba(36,33,38,.14); transform: rotate(-6deg); white-space: nowrap; }
.poll-copy { position: relative; z-index: 2; max-width: 43rem; }
.poll h2 { max-width: 9ch; }
.poll-copy > p:not(.eyebrow) { max-width: 38rem; font-size: 1.08rem; }
.button-gold { margin-top: 1rem; color: var(--ink); background: var(--gold); }

footer { position: relative; padding: 5rem 1rem 2rem; color: var(--cream); background: var(--ink); text-align: center; overflow: hidden; }
.footer-names { margin: 0; font-size: clamp(2.2rem, 10vw, 5rem); font-weight: 950; line-height: 1.1; }
.footer-names b { color: var(--red); }
.button-light { margin-top: 1.3rem; color: var(--ink); background: var(--cream); }
.footer-meta { margin: 4rem 0 0; font-size: .75rem; opacity: .6; }
.footer-branch { position: relative; width: 12rem; height: 5rem; margin: 0 auto 1rem; }
.footer-branch span { position: absolute; width: 10rem; height: .14rem; background: var(--gold); inset: 2.5rem 1rem auto auto; transform: rotate(-12deg); transform-origin: right; }
.footer-branch i { position: absolute; display: block; width: 1.6rem; height: .65rem; border-radius: 100% 0 100% 0; background: var(--olive); transform: rotate(-30deg); }
.footer-branch i:nth-child(2) { inset: 1.55rem 2rem auto auto; }
.footer-branch i:nth-child(3) { inset: 2.45rem 4rem auto auto; transform: rotate(145deg); }
.footer-branch i:nth-child(4) { inset: 1rem 6rem auto auto; }
.footer-branch i:nth-child(5) { inset: 2rem 8rem auto auto; transform: rotate(145deg); }
.footer-branch i:nth-child(6) { inset: .45rem 9.5rem auto auto; }

.reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .brand-marks img { width: 3.25rem; height: 3.25rem; }
  .topbar nav { gap: 2rem; }
  .portrait-composition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-card { grid-template-columns: 1fr; }
  .portrait-placeholder { min-height: 25rem; }
  .card-wajeeh { transform: translateY(4rem); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { grid-template-columns: 2rem 1fr; align-content: start; padding: 2rem; border-bottom: 0; border-inline-end: 1px solid rgba(36,33,38,.3); }
  .pillar:first-child { padding-inline-start: 0; }
  .pillar:last-child { border-inline-end: 0; padding-inline-end: 0; }
  .timer { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  .topbar { padding-inline: .75rem; }
  .topbar nav { gap: .65rem; }
  .topbar nav a { font-size: .78rem; }
  .brand-marks { gap: .3rem; padding: .25rem .35rem; }
  .brand-marks img { width: 2.35rem; height: 2.35rem; }
  .marks-divider { height: 1.45rem; }
}

@media (min-width: 1000px) {
  .hero { min-height: 72rem; }
  .name { font-size: clamp(10rem, 20vw, 18rem); }
  .portrait-composition { max-width: 70rem; margin-inline: auto; }
  .candidate-card { grid-template-columns: 48% 1fr; min-height: 28rem; }
  .portrait-photo { height: 100%; min-height: 28rem; }
  .portrait-placeholder { min-height: 100%; }
  .vision { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: end; }
  .pillars { margin: 0; }
}

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