@font-face { font-family: Tajawal; src: url('./assets/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url('./assets/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #10263a;
  --muted: #485f72;
  --line: #dce6ee;
  --brand: #006fa8;
  --navy: #0a263e;
  --page: #f2f6fa;
  --done: #076345;
  --done-bg: #dff4e9;
  --active: #005882;
  --active-bg: #e1f3ff;
  --planned: #465e72;
  --planned-bg: #edf2f7;
  font: 400 100%/1.54 Tajawal, Tahoma, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, h3, p { margin-block: 0; }
a { color: var(--brand); text-decoration-thickness: .09em; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #0076ad; outline-offset: 4px; }
.wrap { max-inline-size: 72rem; inline-size: calc(100% - 3rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; inset-block-start: -8rem; background: white; padding: .6rem 1rem; z-index: 2; }
.skip:focus { inset-block-start: 1rem; }
.header { background: white; border-block-end: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-block-size: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.brand img { inline-size: 7.5rem; block-size: 2.625rem; object-fit: contain; object-position: right center; }
nav { display: flex; gap: clamp(.7rem, 2.7vw, 2rem); }
nav a, footer a { display: inline-flex; align-items: center; min-block-size: 2.75rem; font-weight: 700; text-decoration: none; }
nav a { color: var(--ink); font-size: .95rem; }
nav a:hover, footer a:hover { text-decoration: underline; }

.hero { background-color: var(--navy); background-image: radial-gradient(ellipse at 10% 0%, #1a4e6c, transparent 62%), repeating-linear-gradient(90deg, #ffffff09 0 1px, transparent 1px 36px), repeating-linear-gradient(0deg, #ffffff09 0 1px, transparent 1px 36px); color: #fff; }
.hero-content { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: clamp(1.5rem, 5vw, 5rem); padding-block: 3.5rem 3.25rem; }
.hero-intro { display: grid; gap: .75rem; }
.hero h1 { font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.15; font-weight: 700; }
.hero h1 span { color: #8fd9ff; }
.hero p { color: #dcebf5; font-size: 1.06rem; }
.hero p[lang="en"] { text-align: right; }
.hero .last-update { color: #bae0f5; font-size: .94rem; }
.last-update time { margin-inline-start: .4rem; color: white; font-weight: 700; }
.summary { border: 1px solid #a2c9e145; border-radius: 1.1rem; padding: 1.2rem; background: #ffffff0d; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics div { display: grid; align-content: start; gap: .1rem; padding-inline: .8rem; }
.metrics div:first-child { padding-inline-start: 0; }
.metrics div + div { border-inline-start: 1px solid #a2c9e145; }
.metrics strong { font: 700 2.25rem/1.1 Tajawal, Tahoma, sans-serif; }
.metrics span, .hero .metric-caption { font-size: .9rem; line-height: 1.35; }
.metrics span { color: #e5f3fc; }
.segments { display: grid; grid-template-columns: repeat(var(--segments), minmax(0, 1fr)); gap: .32rem; margin-block: 1.05rem .5rem; }
.segment { block-size: .42rem; border-radius: 10rem; background: #5b7588; }
.segment.done { background: #6cdeac; }
.segment.active { background: #7bd0fa; }

.body-wrap { padding-block: 2.25rem 3.5rem; }
.current { display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid #c5dce9; border-inline-start: .25rem solid var(--brand); border-radius: 1rem; overflow: hidden; background: white; }
.current-main, .next { padding: clamp(1.1rem, 3vw, 1.75rem); }
.current-label { display: flex; align-items: center; gap: .65rem; }
.current h2 { font-size: clamp(1.4rem, 3vw, 2.05rem); margin-block: .45rem .25rem; }
.current p { color: var(--muted); }
.next { background: #eaf5fc; border-inline-start: 1px solid #d7e7f1; }
.next h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-block-end: .4rem; font-size: 1.15rem; }
.current-main p + p, .next p + p { margin-block-start: .25rem; }
.en { font-family: system-ui, sans-serif; font-size: .96rem; line-height: 1.5; }
.heading { color: var(--ink); font-weight: 700; }
.current .heading, .current p[lang="en"], .next p[lang="en"] { text-align: right; }
.current-main .heading { margin-block-end: .45rem; }
.state, .phase-code { display: inline-flex; align-items: center; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.state { border-radius: .55rem; padding: .3rem .55rem; font-size: .9rem; }
.state-en { font: 700 .79rem/1.25 system-ui, sans-serif; }
.state.done { color: var(--done); background: var(--done-bg); }
.state.active { color: var(--active); background: var(--active-bg); }
.state.planned { color: var(--planned); background: var(--planned-bg); }
.phase-code { font: 700 .92rem system-ui, sans-serif; color: var(--muted); }

.timeline { margin-block-start: 2.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; margin-block-end: .9rem; }
.section-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.section-head p { color: var(--muted); }
.stage-list { display: grid; gap: .45rem; }
.stage { display: grid; grid-template-columns: 5.85rem minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: .9rem; padding: .8rem 1rem; background: white; border: 1px solid var(--line); border-radius: .75rem; scroll-margin-block: 1rem; }
.stage.active { border-color: #92cde9; }
.stage-meta { display: grid; gap: .28rem; justify-items: start; }
.stage-meta .state { display: grid; gap: .15rem; }
.stage h3 { color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.stage h3 + p { margin-block-start: .25rem; color: var(--muted); }
.stage-en { border-inline-end: 1px solid var(--line); padding-inline-end: .85rem; }
.stage-en h3 { font-family: inherit; font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.shot-card { display: grid; align-content: start; gap: .75rem; padding: .9rem; background: white; border: 1px solid var(--line); border-radius: .85rem; }
.shot-frame { border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; background: var(--page); aspect-ratio: 1280 / 900; display: grid; place-items: center; }
.shot-frame.mobile { aspect-ratio: 390 / 844; max-block-size: 31rem; margin-inline: auto; inline-size: min(100%, 14.5rem); }
.shot-frame img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top center; }
.shot-meta { display: flex; align-items: center; gap: .5rem; }
.shot-card h3 { color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.shot-card p { color: var(--muted); font-size: .95rem; }
.shot-card .shot-source { margin-block-start: .35rem; font-size: .85rem; }
.shot-card[hidden] { display: none; }
.carousel { min-width: 0; }
.carousel-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-end: .6rem; }
.carousel-controls button { cursor: pointer; min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: .5rem; background: white; color: var(--ink); font: inherit; padding: .4rem .75rem; }
footer { border-block-start: 1px solid var(--line); background: white; color: var(--muted); }
.footer-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-block-size: 4.2rem; }

@media (max-width: 48rem) {
  .hero-content, .current, .gallery-grid { grid-template-columns: 1fr; }
  .hero-content { align-items: start; padding-block: 2.4rem 1.8rem; }
  .next { border-inline-start: 0; border-block-start: 1px solid #d7e7f1; }
  .body-wrap { padding-block: 1.25rem 2.25rem; }
  .timeline { margin-block-start: 1.7rem; }
  .stage { grid-template-columns: 4.9rem minmax(0, 1fr); gap: .45rem .65rem; }
  .stage-meta { grid-row: span 2; }
  .stage-en { grid-column: 2; border: 0; padding: 0; }
}
@media (max-width: 31rem) {
  .wrap { inline-size: calc(100% - 1.5rem); }
  .header-row { min-block-size: 3.75rem; }
  .brand img { inline-size: 5.5rem; }
  nav { gap: .65rem; }
  nav a { font-size: .88rem; }
  .stage { padding: .75rem .6rem; }
  .stage h3 { font-size: 1rem; }
  .stage .state { font-size: .875rem; padding-inline: .38rem; }
}
