@font-face { font-family: Cairo; src: url('./fonts/cairo-variable.woff2') format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: Alexandria; src: url('./fonts/alexandria-variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* A contained addition: the existing seven featured projects keep their layout. */
.event-feature { scroll-margin-top: 7rem; }
.projects.projects-direct-entry > .project { content-visibility: visible; }
.event-feature-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-size: .82rem; color: #595853; }
.event-feature-cover { position: relative; display: block; overflow: hidden; background: #c8b7a7; }
.event-feature-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.event-feature-cover-action { position: absolute; inset-inline-end: 1.5rem; bottom: 1.5rem; display: inline-flex; align-items: center; gap: 1rem; background: var(--bone); color: var(--ink); padding: 1rem 1.25rem; font-weight: 500; }
.event-feature-cover:hover .event-feature-cover-action { background: var(--brand-blue); color: white; }
.event-feature-info { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0; }
.event-feature-info h3 { margin: 0; font-family: Outfit, sans-serif; font-size: clamp(2.4rem, 4.7vw, 5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; text-align: start; }
.event-feature-scope { margin: .9rem 0 0; font-size: .9rem; color: #5e5c58; }
.event-feature-story p { max-width: 50ch; margin: 0 0 1rem; color: #53524e; line-height: 1.65; font-size: 1.06rem; }
.event-feature-story .text-link { font-size: 1rem; }
.event-feature-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.event-feature-photos a { display: block; overflow: hidden; }
.event-feature-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; display: block; transition: filter 200ms; }
.event-feature-photos a:hover img { filter: brightness(.85); }
.event-feature a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 4px; }
html[lang=ar] .event-feature-info h3 { text-align: right; }

.event-project-page { background: var(--ink); color: var(--bone); }
.event-project-page :is(a, button):focus-visible { outline: 2px solid #8eafff; outline-offset: 5px; }
.event-container { width: min(100% - 2 * var(--page-pad), 1440px); margin-inline: auto; }
.event-project-page svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.event-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem var(--page-pad); border-bottom: 1px solid var(--line); }
.event-brand { width: 8rem; flex-shrink: 0; }
.event-brand .brand-logo-crop { position: relative; display: block; width: 100%; aspect-ratio: 3.616 / 1; overflow: hidden; }
.event-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); font-size: .95rem; }
.event-header nav a, .event-bottom a, .event-collaboration a { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; }
.event-header a:hover, .event-bottom a:hover, .event-collaboration a:hover { color: #a6bfff; }
.event-intro { display: grid; grid-template-columns: 1.55fr 1fr; gap: 3rem; align-items: end; padding-block: clamp(3rem, 6vw, 6rem) 2.5rem; }
.event-kicker { margin: 0 0 1.2rem; color: #a6a69e; font-size: .8rem; letter-spacing: .06em; }
.event-kicker > span { margin-inline: .5rem; color: #646860; }
.event-intro h1 { margin: 0; font-family: Outfit, sans-serif; font-size: clamp(3.2rem, 7.3vw, 7.7rem); font-weight: 600; letter-spacing: -.065em; line-height: .95; text-align: start; }
.event-intro h1 span { color: #769fff; }
.event-headline { margin: 1.4rem 0 0; color: #c2c1b9; font-size: clamp(1rem, 1.6vw, 1.4rem); line-height: 1.6; }
.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; margin: 0; }
.event-facts div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }
.event-facts dt { color: #aaa99f; font-size: .75rem; margin-bottom: .35rem; }
.event-facts dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.event-hero { margin-block: 0; }
.event-hero > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.event-hero figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; color: #aaa99f; font-size: .75rem; border-bottom: 1px solid var(--line); }
.event-story { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 8vw, 9rem); padding-block: clamp(3rem, 7vw, 7rem) 3rem; }
.event-project-page h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 4rem); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.event-story-copy p { margin: 0 0 1.15rem; color: #b9b8b1; line-height: 1.75; font-size: clamp(1rem, 1.25vw, 1.16rem); }
.event-story-copy p:first-child { color: var(--bone); font-size: clamp(1.15rem, 1.65vw, 1.55rem); line-height: 1.6; }
.event-scope { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-scope > div { padding: 1.5rem 0; }
.event-scope > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 1.5rem; }
.event-scope span { font-size: .75rem; color: #88aaff; }
.event-scope h3 { font-size: clamp(1rem, 1.8vw, 1.65rem); font-weight: 500; margin: 1rem 0 0; }
.event-video-section { padding-block: clamp(3rem, 7vw, 7rem); }
.event-section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.event-section-heading > p { max-width: 40ch; justify-self: end; margin: 0; line-height: 1.65; color: #aaa99f; font-size: 1rem; }
.event-video-link { position: relative; display: grid; aspect-ratio: 16 / 9; overflow: hidden; background: #171717; }
.event-video-link > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.event-video-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #080808bf, #08080838 60%, #08080838); pointer-events: none; }
.event-video-action { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: white; text-shadow: 0 1px 12px #0008; }
.event-play { display: grid; place-items: center; width: clamp(3.8rem, 7vw, 6rem); aspect-ratio: 1; background: var(--brand-blue); border: 1px solid #97b4ff; border-radius: 50%; transition: transform 200ms; }
.event-play svg { fill: white; stroke: none; width: 26px; height: 26px; }
.event-video-link:hover .event-play { transform: scale(1.06); }
.event-video-action strong { font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 500; }
.event-video-action small { font-size: .75rem; }
.event-video-corner { position: absolute; z-index: 1; bottom: 1.5rem; inset-inline: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: white; font-size: .8rem; letter-spacing: .04em; }
.event-video-corner > span { display: flex; align-items: center; gap: 1rem; }
.event-gallery-section { background: var(--bone); color: var(--ink); padding-block: clamp(3rem, 7vw, 7rem); scroll-margin-top: 1rem; }
.event-gallery-section .event-kicker, .event-gallery-section .event-section-heading > p { color: #5e5c58; }
.event-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
.event-gallery figure { min-width: 0; margin: 0; }
.event-gallery a { position: relative; display: block; background: #ddd6cb; }
.event-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.event-photo-enlarge { position: absolute; bottom: .8rem; inset-inline-end: .8rem; display: grid; place-items: center; width: 36px; height: 36px; background: #080808b8; color: white; transition: background 200ms; }
.event-gallery a:hover .event-photo-enlarge { background: var(--brand-blue); }
.event-gallery figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; font-size: .85rem; color: #53524e; }
.event-gallery figcaption > span:last-child { font-variant-numeric: tabular-nums; color: #77756c; }
.event-collaboration { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 3rem; }
.event-collaboration p { margin: 0 0 1rem; color: #aaa99f; font-size: .85rem; }
.event-collaboration img { display: block; width: 160px; height: auto; }
.event-collaboration a { border-bottom: 1px solid var(--line); }
.event-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.event-footer { padding-block: 1rem 2rem; color: #aaa99f; font-size: .8rem; }
.event-lightbox { inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: #080808f7; color: var(--bone); border: 0; }
.event-lightbox[open] { display: flex; flex-direction: column; }
.event-lightbox::backdrop { background: #080808; }
.event-lightbox-toolbar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: .5rem; }
.event-lightbox-counter { margin: 0; font-size: .85rem; color: #c5c5bc; }
.event-lightbox button { display: grid; place-items: center; background: #232524; border: 1px solid #555850; border-radius: 50%; color: white; padding: 0; width: 48px; height: 48px; cursor: pointer; flex-shrink: 0; }
.event-lightbox button:hover { background: var(--brand-blue); border-color: #a6bfff; }
.event-lightbox-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 1rem; align-items: center; padding-block: 1rem; }
.event-lightbox-stage figure { display: flex; flex-direction: column; gap: 1rem; height: 100%; min-height: 0; margin: 0; }
.event-lightbox-stage img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: contain; touch-action: pan-y pinch-zoom; }
.event-lightbox-stage figcaption { flex-shrink: 0; min-height: 1.5rem; text-align: center; font-size: .95rem; }
.event-lightbox-error { flex-shrink: 0; text-align: center; color: #ffc9c3; }
.event-lightbox-error[hidden] { display: none; }
.event-lightbox-error a { text-decoration: underline; }
html[lang=ar] .event-project-page { font-family: Cairo, sans-serif; font-synthesis: none; }
html[lang=ar] .event-project-page :is(h2, h3) { font-family: Alexandria, Cairo, sans-serif; letter-spacing: 0; line-height: 1.55; }
html[lang=ar] .event-intro h1 { text-align: right; }
html[lang=ar] .event-facts dd[lang=en] { text-align: right; }
html[lang=ar] .event-kicker { letter-spacing: 0; }
html[lang=ar] .event-project-page a > svg, html[lang=ar] .event-lightbox-stage button svg { transform: scaleX(-1); }
@media (max-width: 900px) {
  .event-intro { grid-template-columns: 1fr; gap: 2rem; }
  .event-facts { grid-template-columns: 1fr 1fr 1.3fr; }
  .event-facts div:last-child { grid-column: auto; border-top: 0; padding-top: 0; }
  .event-story { grid-template-columns: 1fr; gap: 2rem; }
  .event-story-copy { max-width: 65ch; }
  .event-feature-info { gap: 2rem; }
}
@media (max-width: 700px) {
  .event-feature-info { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 1.4rem; }
  .event-feature-cover-action { bottom: .75rem; inset-inline-end: .75rem; padding: .65rem .85rem; font-size: .8rem; gap: .7rem; }
  .event-feature-top { font-size: .75rem; }
  .event-feature-photos { gap: .5rem; }
  .event-feature-scope { font-size: .8rem; }
  .event-feature-story p { font-size: 1rem; }
  .event-brand { width: 6.2rem; }
  .event-header { padding-block: 1rem; }
  .event-header nav { font-size: .8rem; gap: 1rem; }
  .event-header .event-contact { display: none; }
  .event-intro { padding-block: 2.5rem 1.5rem; }
  .event-intro h1 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .event-headline { font-size: 1rem; margin-top: 1rem; }
  .event-facts { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .event-facts div:last-child { grid-column: 1 / -1; }
  .event-facts dd { font-size: .95rem; }
  .event-hero figcaption { font-size: .65rem; }
  .event-story { padding-bottom: 2rem; }
  .event-project-page h2 { font-size: 2rem; }
  .event-scope { grid-template-columns: 1fr; }
  .event-scope > div { display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem 0; }
  .event-scope > div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .event-scope h3 { margin: 0; font-size: 1.1rem; }
  .event-section-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
  .event-section-heading > p { justify-self: start; font-size: .95rem; }
  .event-video-link { aspect-ratio: 4 / 3; }
  .event-video-action { gap: .6rem; }
  .event-video-corner { bottom: .9rem; inset-inline: .9rem; font-size: .65rem; }
  .event-video-corner svg { width: 16px; height: 16px; }
  .event-gallery { grid-template-columns: 1fr; gap: 1.75rem; }
  .event-collaboration { flex-wrap: wrap; padding-block: 2.5rem; gap: 1rem; }
  .event-collaboration img { width: 140px; }
  .event-lightbox { padding-inline: .75rem; }
  .event-lightbox-stage { grid-template-columns: 1fr 1fr; gap: 1rem; align-content: center; }
  .event-lightbox-stage figure { grid-row: 1; grid-column: 1 / -1; height: min(65dvh, 520px); }
  .event-lightbox-stage button { grid-row: 2; justify-self: center; }
  .event-lightbox-stage button:first-child { grid-column: 1; }
  .event-lightbox-stage button:last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .event-project-page *, .event-feature * { transition: none !important; scroll-behavior: auto !important; } }
