:root {
  --paper: #ecebe6;
  --ink: #171817;
  --blue: #123f68;
  --red: #a63724;
  --line: rgba(23, 24, 23, .22);
  --pad: clamp(1.2rem, 4vw, 4.6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Noto Sans Arabic", sans-serif; font-size: 16px; line-height: 1.5; }
button, a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 1.1rem var(--pad); border-bottom: 1px solid transparent; mix-blend-mode: difference; color: white; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; text-decoration: none; font-weight: 700; }
.mark { width: .7rem; height: .7rem; background: var(--red); border-radius: 50%; }
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
nav a, .language { text-decoration: none; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.language { justify-self: end; border: 0; background: none; cursor: pointer; padding: .35rem 0; }

.hero { min-height: 100svh; position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: center; gap: clamp(2rem, 7vw, 8rem); padding: 8rem var(--pad) 4rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: min(38vw, 34rem); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; left: 22%; top: 13%; pointer-events: none; }
.eyebrow, .section-number { color: var(--red); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin: 1.2rem 0 1rem; font-size: clamp(4rem, 10vw, 10.8rem); font-weight: 400; letter-spacing: -.075em; line-height: .78; }
h1 span { display: block; }
.title-indent { margin-left: clamp(1.8rem, 10vw, 10rem); color: var(--blue); white-space: nowrap; }
[dir="rtl"] .title-indent { margin-left: 0; margin-right: clamp(1.8rem, 10vw, 10rem); }
.hero-arabic { width: fit-content; color: var(--red); font-size: clamp(1.3rem, 2.2vw, 2.1rem); letter-spacing: .12em; }
.hero-note { margin-top: 2.5rem; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-art { position: relative; width: min(100%, 29rem); justify-self: end; padding: 0; border: 0; background: transparent; cursor: zoom-in; transform: rotate(1.2deg); box-shadow: 1.7rem 1.7rem 0 var(--blue); }
.hero-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.2); }
.hero-art img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.hero-art span { position: absolute; right: .8rem; bottom: .7rem; padding: .2rem .4rem; background: var(--paper); font-size: .7rem; letter-spacing: .12em; }
.presented { width: fit-content; margin: 1rem 0 0; padding: .45rem .7rem; border: 1px solid var(--line); background: rgba(236,235,230,.9); font-size: .8rem; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 1.8rem; width: 1px; height: 4rem; background: var(--line); overflow: hidden; }
.scroll-cue span { display: block; width: 100%; height: 40%; background: var(--red); animation: drift 2.4s ease-in-out infinite; }
@keyframes drift { 0% { transform: translateY(-100%); } 70%,100% { transform: translateY(250%); } }

.statement { display: grid; grid-template-columns: minmax(5rem, .35fr) 1.65fr; gap: 2rem; padding: clamp(6rem, 11vw, 11rem) var(--pad); background: var(--ink); color: var(--paper); }
.statement h2, .works h2, .artist h2 { margin-bottom: 2rem; font-size: clamp(2.8rem, 6vw, 6.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.lead { max-width: 54rem; color: #f6f5f0; font-size: clamp(1.35rem, 2.4vw, 2.4rem); line-height: 1.3; }
.statement-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); margin-top: 5rem; max-width: 65rem; color: #b8b8b1; }

.works { padding: clamp(6rem, 10vw, 10rem) var(--pad); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 4rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 1rem; }
.section-heading > p { max-width: 18rem; margin-bottom: 1.4rem; color: #575954; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.1rem, 2.4vw, 2.6rem) clamp(1rem, 2vw, 2rem); }
.work-card { grid-column: span 4; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
[dir="rtl"] .work-card { text-align: right; }
.work-card:nth-child(5n + 2), .work-card:nth-child(5n + 5) { grid-column: span 3; margin-top: 9vw; }
.work-card:nth-child(5n + 3) { grid-column: span 5; }
.work-image { overflow: hidden; background: #d8d7d1; }
.work-image img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.025); filter: saturate(1.06); }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; font-size: .78rem; letter-spacing: .08em; }
.work-meta span:last-child { color: #696a65; }

.artist { display: grid; grid-template-columns: .35fr .7fr 1.8fr; gap: clamp(1.5rem, 4vw, 5rem); align-items: start; padding: clamp(6rem, 10vw, 10rem) var(--pad); background: var(--blue); color: #fff; overflow: hidden; }
.artist h2 { max-width: 45rem; }
.artist-copy > p { max-width: 40rem; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.artist-portrait { align-self: end; margin: 0; position: relative; min-height: 31rem; }
.artist-portrait::before { content: ""; position: absolute; inset: 18% -10% -6%; border: 1px solid rgba(255,255,255,.22); border-radius: 50% 50% 0 0; }
.artist-portrait img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 31rem; object-fit: contain; object-position: center bottom; }
.text-link { display: inline-block; margin-top: 2rem; padding-bottom: .2rem; border-bottom: 1px solid currentColor; text-decoration: none; }

.biography { display: grid; grid-template-columns: minmax(16rem, .72fr) 1.28fr; gap: clamp(3rem, 9vw, 11rem); padding: clamp(6rem, 11vw, 11rem) var(--pad); background: #d8d6cf; }
.bio-heading { position: sticky; top: 7rem; align-self: start; }
.biography h2 { margin: 0 0 1.5rem; max-width: 8ch; color: var(--blue); font-size: clamp(3rem, 6vw, 6.6rem); font-weight: 400; letter-spacing: -.06em; line-height: .92; }
.bio-role { max-width: 20rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.bio-copy { max-width: 52rem; }
.bio-copy > p { margin-bottom: 1.45rem; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.7; }
.bio-copy > p:first-child { color: var(--blue); font-size: clamp(1.35rem, 2.15vw, 2.15rem); line-height: 1.4; }
.bio-copy blockquote { margin: clamp(3rem, 7vw, 6rem) 0; padding: 1.5rem 0 1.5rem clamp(1.3rem, 3vw, 3rem); border-left: 3px solid var(--red); color: var(--blue); font-size: clamp(2rem, 4.2vw, 4.5rem); letter-spacing: -.045em; line-height: 1.08; }
[dir="rtl"] .bio-copy blockquote { padding: 1.5rem clamp(1.3rem, 3vw, 3rem) 1.5rem 0; border-right: 3px solid var(--red); border-left: 0; }
.bio-signature { margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--red); font-size: .85rem !important; letter-spacing: .1em; text-transform: uppercase; }

footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding: 2rem var(--pad); background: var(--ink); color: #b8b8b1; font-size: .78rem; }
footer p { margin: 0; }
.footer-copy { display: grid; gap: .35rem; }
.gallery-logo { display: block; width: clamp(6.5rem, 10vw, 9rem); aspect-ratio: 1; margin-inline-start: auto; background: currentColor; color: #f6f5f0; -webkit-mask: url("assets/brand/whj-allon-logo-mask.png") center / contain no-repeat; mask: url("assets/brand/whj-allon-logo-mask.png") center / contain no-repeat; }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 1.2rem; border: 0; background: rgba(10,11,10,.97); color: white; }
.lightbox::backdrop { background: rgba(10,11,10,.95); }
.lightbox[open] { display: grid; grid-template-columns: 4rem 1fr 4rem; place-items: center; }
.lightbox figure { margin: 0; height: calc(100svh - 2.4rem); display: grid; grid-template-columns: minmax(0, auto) 18rem; align-items: center; gap: 2rem; }
.lightbox figure img { max-height: calc(100svh - 3rem); width: auto; box-shadow: 0 2rem 5rem rgba(0,0,0,.35); }
.lightbox figcaption { display: grid; gap: 1.5rem; max-height: 90svh; overflow-y: auto; color: #a8aaa6; }
.lightbox figcaption div { display: grid; gap: .25rem; }
.lightbox figcaption span:first-child, .lightbox figcaption strong { color: white; }
.lightbox .technique { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
.lightbox .technique > span { margin-bottom: .5rem; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.lightbox .technique p { margin: 0; color: #c6c8c3; font-size: .9rem; line-height: 1.55; }
.lightbox-close, .lightbox-nav { border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox-close { position: fixed; top: 1rem; right: 1.4rem; z-index: 2; font-size: 2.4rem; font-weight: 200; }
.lightbox-nav { font-size: 1.5rem; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; align-content: center; padding-top: 7rem; }
  .hero::before { width: 70vw; left: 8%; }
  h1 { font-size: clamp(3.8rem, 18vw, 7rem); }
  .hero-art { width: 58vw; margin-top: -1rem; }
  .statement { grid-template-columns: 1fr; }
  .statement-columns { grid-template-columns: 1fr; margin-top: 3rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .work-card, .work-card:nth-child(5n + 2), .work-card:nth-child(5n + 3), .work-card:nth-child(5n + 5) { grid-column: span 1; margin-top: 0; }
  .work-card:nth-child(even) { margin-top: 13vw; }
  .artist { grid-template-columns: 1fr 1.35fr; }
  .artist-label { display: flex; justify-content: space-between; }
  .artist-portrait { grid-column: 1; grid-row: 2; min-height: 24rem; }
  .artist-portrait img { min-height: 24rem; }
  .artist-copy { grid-column: 2; grid-row: 2; }
  .biography { grid-template-columns: 1fr; }
  .bio-heading { position: static; }
  .biography h2 { max-width: none; }
  .lightbox[open] { grid-template-columns: 3rem 1fr 3rem; padding: .8rem; }
  .lightbox figure { height: auto; grid-template-columns: 1fr; gap: 1rem; }
  .lightbox figure img { max-height: 70svh; margin: auto; }
  .lightbox figcaption { display: flex; justify-content: space-between; align-items: end; font-size: .8rem; }
}

@media (max-width: 520px) {
  .hero-art { width: 72vw; }
  .gallery { gap: 2rem .8rem; }
  .work-meta { display: grid; gap: .15rem; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox-nav { position: fixed; bottom: 1rem; z-index: 2; }
  .lightbox-nav.previous { left: 1rem; }
  .lightbox-nav.next { right: 1rem; }
  .lightbox figure { padding-bottom: 4rem; }
  .artist { grid-template-columns: 1fr; }
  .artist-portrait, .artist-copy { grid-column: 1; grid-row: auto; }
  .artist-portrait { min-height: 28rem; }
  footer { gap: 1rem; }
  .gallery-logo { width: 6.5rem; }
}

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