/* ROSE site v1 — locked design system: #101010 / #f7f7f7, hairlines, no cards */

:root {
  --ink: #101010;
  --paper: #f7f7f7;
  --hairline: rgba(16, 16, 16, 0.18);
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --text: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; width: 100%; max-width: 100%; height: auto; }
img { -webkit-user-drag: none; user-select: none; }

a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 48px;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  letter-spacing: 0.04em;
}
header.on-dark { color: var(--paper); }
header .wordmark { font-size: 15px; text-transform: uppercase; }
header nav a {
  margin-left: 36px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
header nav a:hover { opacity: 1; border-bottom: 1px solid currentColor; }

/* ---------- homepage hero ---------- */
.hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- position statement ---------- */
.statement {
  padding: 140px 48px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.statement p {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- series index ---------- */
.series-head {
  padding: 90px 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--hairline);
  margin: 0 0 0;
}
.series-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.series-head .count { font-size: 13px; opacity: 0.65; }

/* big bold series banner title */
.series-head.big { border-bottom: none; padding-bottom: 28px; flex-direction: column; gap: 14px; align-items: flex-start; }
.series-head.big h2 {
  font-size: clamp(54px, 10vw, 150px);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

/* full-picture banner row: title + details overlaid on the image, left side */
.banner-row {
  position: relative;
  display: block;
  height: 86vh;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.banner-row img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 50%; /* keep painting visible on the right */
  transition: transform 1.4s ease;
}
.banner-row:hover img { transform: scale(1.015); }
.banner-row .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 6vw;
  max-width: 44%;
  pointer-events: none;
}
.banner-row .overlay h3 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 18px;
}
.banner-row .overlay .caption { font-size: 13px; }
@media (max-width: 760px) {
  /* Mobile: title stays ON the image (Khawla, 16 Jul 2026).
     Covers are centered compositions — shift the visible window left
     (object-position 32%) so the painting sits slightly RIGHT of center,
     leaving the left side for the title. */
  .banner-row { height: 54vh; position: relative; }
  .banner-row img { height: 100%; object-fit: cover; object-position: 32% 50%; }
  .banner-row::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(16,16,16,.45) 0%, rgba(16,16,16,.15) 40%, rgba(16,16,16,0) 65%);
    z-index: 1;
  }
  .banner-row .overlay {
    max-width: 62%;
    padding-left: 22px;
    justify-content: center;
    color: var(--paper);
    z-index: 2;
  }
  .banner-row .overlay h3 { font-size: clamp(26px, 8vw, 34px); margin-bottom: 10px; }
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
  min-height: 60vh;
}
.work-row .img-wrap { overflow: hidden; height: 100%; }
.work-row .img-wrap img {
  height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.work-row a:hover .img-wrap img { transform: scale(1.015); }
.work-row .meta { padding: 64px; }
.work-row .meta h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  margin-bottom: 14px;
}
.caption {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.65;
  text-transform: uppercase;
}
.work-row.pending .img-wrap {
  background: #e9e9e7;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
}
.work-row.pending .img-wrap span {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4;
}

.series-note {
  padding: 90px 48px 130px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* ---------- work page ---------- */
.work-banner {
  height: 92vh;
  overflow: hidden;
  position: relative;
}
.work-banner img { width: 100%; height: 100%; object-fit: cover; }
.work-banner.pending {
  background: #e9e9e7;
  display: flex; align-items: center; justify-content: center;
}
.work-banner.pending span {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4;
}

.work-title {
  padding: 84px 48px 72px;   /* breathing room before the hairline */
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.work-title .caption { margin-top: 6px; }
.work-title h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.work-frontal {
  max-width: 1080px;
  margin: 110px auto;
  padding: 0 48px;
}
.work-frontal img { cursor: zoom-in; }

.work-desc {
  max-width: 680px;
  margin: 0 auto 110px;
  padding: 0 48px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
}

.work-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto 110px;
  padding: 0 48px;
}
.work-extras figure img {
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  object-fit: cover;   /* uniform, neatly aligned tiles; lightbox shows full image */
}
.work-extras figcaption {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 14px;
}
.work-extras .slot-pending {
  background: #e9e9e7;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4;
}

/* mobile: Instagram-style swipe carousel */
@media (max-width: 760px) {
  .work-extras {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 0 24px;
    scrollbar-width: none;
  }
  .work-extras::-webkit-scrollbar { display: none; }
  .work-extras figure {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
}

/* ---------- series footer nav ---------- */
.series-nav {
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.series-nav a {
  padding: 44px 24px;
  text-align: center;
  border-right: 1px solid var(--hairline);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.series-nav a:last-child { border-right: none; }
.series-nav a:hover { background: rgba(16,16,16,0.04); }
.series-nav a.current { opacity: 0.35; pointer-events: none; }

footer {
  padding: 56px 48px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.footer-icons { display: flex; gap: 20px; align-items: center; }
.footer-icons svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
  transition: opacity .3s ease;
}
.footer-icons a:hover svg { opacity: 1; }

/* ---------- about landing: full-banner, white text on B&W photo ---------- */
.about-banner {
  position: relative;
  display: block;
  height: 100vh;
  overflow: hidden;
}
.about-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 40% 30%;
  filter: grayscale(1);
  transition: transform 1.6s ease;
}
.about-banner:hover img { transform: scale(1.015); }
.about-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,16,16,.55) 0%, rgba(16,16,16,.25) 45%, rgba(16,16,16,0) 70%),
              linear-gradient(0deg, rgba(16,16,16,.35) 0%, rgba(16,16,16,0) 30%);
}
.about-banner .intro {
  position: absolute;
  z-index: 2;
  left: 6vw; bottom: 12vh;
  color: var(--paper);
}
.about-banner .intro h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.about-banner .intro .caption { margin-bottom: 40px; opacity: .9; }
.about-banner .enter {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--paper);
  padding-bottom: 4px;
}
@media (max-width: 760px) {
  .about-banner { height: 88vh; }
  .about-banner .intro { left: 24px; right: 24px; bottom: 8vh; }
  .about-banner .intro h1 { font-size: clamp(34px, 11vw, 48px); }
  .series-head.big h2 { font-size: clamp(30px, 10.5vw, 54px); line-height: 1; }
  .series-head { padding: 60px 24px 36px; }
  .work-title h1 { font-size: clamp(24px, 7.5vw, 34px); }
  .statement { padding: 70px 24px; }
  .statement p { font-size: clamp(18px, 5vw, 22px); }
  .work-desc { padding: 0 24px; }
  .work-desc h3 { font-size: 22px !important; }
}

/* ---------- museum wall-text (About bio) ---------- */
.wall-text {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  max-width: 1140px;
  margin: 110px auto;
  padding: 0 48px;
  align-items: start;
}
.wall-name h2 {
  /* Editorial Didone register (Vogue/Bazar) — Bodoni Moda, loaded on about.html only */
  font-family: var(--display);
  font-weight: 400;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 24px;
}
.wall-body { columns: 2; column-gap: 56px; }
.wall-body p {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.78;
  margin-bottom: 1.25em;
  break-inside: avoid;
}
@media (max-width: 1020px) {
  .wall-body { columns: 1; }
  .wall-body p { font-size: 17px; }
}
@media (max-width: 760px) {
  .wall-text { grid-template-columns: 1fr; gap: 36px; margin: 72px auto; padding: 0 24px; }
  .wall-name h2 { font-size: 46px; }
}

/* ---------- about: photo beside exhibitions/talks ---------- */
.about-side {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  max-width: 1140px;
  margin: 0 auto 110px;
  padding: 0 48px;
  align-items: start;
}
.about-side-img { margin: 0; }  /* two stacked photos fill the column; sticky removed */
.about-side-img img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .about-side { grid-template-columns: 1fr; gap: 36px; padding: 0 24px; }
  .about-side-img { position: static; }
  .about-side-img img { max-width: 82%; }
}

/* ---------- media items (YouTube 16:9 thumbs, whole card clickable) ---------- */
a.press-item { text-decoration: none; color: inherit; }
.press-item.media img {
  width: 128px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}
a.press-item.media:hover .caption { opacity: 1; }
@media (max-width: 760px) {
  .press-item.media img { width: 104px; height: 59px; }
}

/* ---------- site search ---------- */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 26px;
  color: inherit;
  vertical-align: middle;
  opacity: 0.8;
}
.search-btn:hover { opacity: 1; }
.search-btn svg { width: 17px; height: 17px; display: block; }
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 16, 0.96);
  z-index: 1200;
  display: none;
  overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-close {
  position: fixed;
  top: 26px;
  right: 34px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 34px;
  font-weight: 200;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}
.search-close:hover { opacity: 1; }
.search-box {
  max-width: 640px;
  margin: 18vh auto 0;
  padding: 0 32px 80px;
}
.search-box input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(247, 247, 247, 0.35);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  padding: 10px 2px 14px;
  outline: none;
}
.search-box input::placeholder { color: rgba(247, 247, 247, 0.35); }
.search-results { margin-top: 34px; }
.search-results a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 2px;
  border-bottom: 1px solid rgba(247, 247, 247, 0.12);
  color: var(--paper);
  text-decoration: none;
}
.search-results a span { font-family: var(--serif); font-size: 18px; }
.search-results a em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  white-space: nowrap;
}
.search-results a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.search-empty {
  color: rgba(247, 247, 247, 0.5);
  font-family: var(--serif);
  font-size: 16px;
  padding-top: 8px;
}
@media (max-width: 760px) {
  .search-btn { margin-left: 16px; }
  .search-box { margin-top: 12vh; padding: 0 24px 60px; }
  .search-box input { font-size: 20px; }
  .search-close { top: 18px; right: 22px; }
}

/* ---------- archive items (earlier work): full uncropped image beside text ---------- */
.archive-list {
  max-width: 880px;
  margin: 0 auto 110px;
  padding: 0 48px;
}
.archive-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--hairline, rgba(16,16,16,0.14));
}
.archive-item:last-child { border-bottom: 1px solid var(--hairline, rgba(16,16,16,0.14)); }
.archive-item figure { margin: 0; }
.archive-item img {
  width: 100%;
  height: auto;          /* full painting, never cropped */
  display: block;
  cursor: zoom-in;
}
.archive-text h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 8px;
}
.archive-text .caption { margin-bottom: 20px; }
.archive-text p:not(.caption) {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
}
@media (max-width: 760px) {
  .archive-list { padding: 0 24px; }
  .archive-item { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .archive-item img { max-width: 78%; }
}

/* ---------- press items with thumbnails ---------- */
.press-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 34px;
}
.press-item img {
  width: 96px; height: 96px;
  object-fit: cover;
  flex: 0 0 96px;
}
.press-item .press-text { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .press-item img { width: 72px; height: 72px; flex-basis: 72px; }
  .press-item { gap: 16px; }
}

/* ---------- about landing ---------- */
.about-landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.about-landing .intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 64px 64px;
}
.about-landing h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8.5vw, 128px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.about-landing .intro .caption { margin-bottom: 56px; }
.about-landing .enter {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}
.about-landing:hover .enter { opacity: 0.6; }
.about-landing .portrait {
  height: 100vh;
  overflow: hidden;
}
.about-landing .portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 1.4s ease;
}
.about-landing:hover .portrait img { transform: scale(1.02); }
.about-landing .portrait .slot-pending {
  height: 100%;
  aspect-ratio: unset;
}

/* about info page — second portrait */
.about-portrait-2 {
  max-width: 680px;
  margin: 80px auto 0;
  padding: 0 48px;
}
.about-portrait-2 img { filter: grayscale(1); }
.about-portrait-2 .slot-pending { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .about-landing { grid-template-columns: 1fr; }
  .about-landing .portrait { height: 58vh; order: -1; }
  .about-landing .intro { padding: 48px 24px 72px; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(16,16,16,0.96);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lb-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--paper);
  font-size: 44px; line-height: 1;
  font-family: var(--serif);
  padding: 18px 20px;
  cursor: pointer;
  opacity: .7;
  z-index: 2;
}
.lb-btn:hover { opacity: 1; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-count {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--paper);
  font-size: 12px; letter-spacing: .12em;
  opacity: .7;
}
@media (max-width: 760px) {
  .lb-btn { font-size: 34px; padding: 14px 12px; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  header { padding: 20px 24px; flex-wrap: nowrap; }
  header nav a { margin-left: 18px; font-size: 11px; }
  header .wordmark { font-size: 12px; white-space: nowrap; }
  .work-row { grid-template-columns: 1fr; min-height: unset; }
  .work-row .meta { padding: 40px 24px 56px; }
  .statement { padding: 90px 24px; }
  .work-extras { grid-template-columns: 1fr; gap: 32px; padding: 0 24px; }
  .series-nav { grid-template-columns: repeat(2, 1fr); }
  .series-nav a:nth-child(2) { border-right: none; }
  .work-frontal, .work-desc { padding: 0 24px; }
}
