/* ============================================================
   Orly Aharoni — curator & museologist
   Palette and type follow the original site's "Petrol" theme.
   ============================================================ */

:root {
  --paper:      #FFFCF5;
  --paper-2:    #F9F3E7;
  --card:       #F3EEE3;
  --line:       #DED8CB;
  --line-soft:  #EAE4D7;

  --ink:        #2B4150;
  --ink-soft:   rgba(43, 65, 80, .66);
  --ink-faint:  rgba(43, 65, 80, .42);

  --petrol:      #325F7B;
  --petrol-deep: #124E73;
  --petrol-dark: #27506A;
  --petrol-mid:  #51738C;
  --cream:       #F6F0E4;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-hard: -5px 5px 0 var(--line);
  --shadow-soft: 0 18px 40px -24px rgba(18, 60, 88, .45);
  --wrap: 1140px;
  --pad: clamp(18px, 4vw, 36px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Heebo", "Rubik", "Arial Hebrew", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, .955rem + .19vw, 1.09rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.22;
  color: var(--petrol-deep);
  letter-spacing: -.005em;
}
h1 { font-size: clamp(1.85rem, 1.25rem + 2.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.75vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.38rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--petrol); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(56px, 8vw, 110px); }

.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { margin-bottom: .35em; }
.section__sub {
  color: var(--ink-soft);
  font-size: 1.06em;
  max-width: 44ch;
  margin-inline: auto;
}

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--petrol); color: var(--cream);
  padding: 10px 18px; border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 200;
}
.skip:focus { inset-inline-start: 12px; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 252, 245, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand { text-decoration: none; display: grid; line-height: 1.15; flex: 0 0 auto; }
.brand__name { font-weight: 500; font-size: 1.06rem; color: var(--petrol-deep); }
.brand__role { font-size: .78rem; color: var(--ink-faint); letter-spacing: .02em; }

.nav {
  display: flex; gap: clamp(10px, 1.6vw, 24px);
  margin-inline-start: auto;
  font-size: .93rem;
  overflow: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  padding: 6px 2px; border-bottom: 1.5px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover, .nav a:focus-visible { color: var(--petrol-deep); border-color: var(--petrol); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 400; font-size: .95rem;
  padding: .62em 1.35em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s, color .16s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(18, 60, 88, .5); }
.btn--solid { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.btn--solid:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); }
.btn--ghost { background: transparent; border-color: var(--petrol); color: var(--petrol); }
.btn--ghost:hover { background: var(--petrol); color: #fff; }
.btn--light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--sm { font-size: .87rem; padding: .5em 1.05em; flex: 0 0 auto; }

.label {
  display: inline-block;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--petrol); font-weight: 500; margin-bottom: .9em;
}

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }

.hero__card {
  margin: 0 0 clamp(36px, 6vw, 72px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.hero__card img { width: 100%; height: auto; }

.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.hero__portrait {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hard);
}
.hero__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero__tagline {
  font-size: clamp(1.4rem, .95rem + 1.85vw, 2.35rem);
  font-weight: 400;
  line-height: 1.34;
}

/* ------------------------------------------------------------ creed band */
.creed {
  background: var(--petrol);
  color: #fff;
  padding-block: clamp(52px, 7vw, 96px);
}
.creed__inner { text-align: center; }
.creed__quote {
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(1.3rem, .95rem + 1.5vw, 2.05rem);
  font-weight: 300;
  line-height: 1.45;
  color: #fff;
  border: 0;
}
.creed__quote span { display: block; }
.creed__belief {
  margin: clamp(22px, 3vw, 34px) auto 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, .82);
  font-size: 1.02em;
}

/* ------------------------------------------------------------ exhibitions */
.exhibitions { background: var(--paper); }

.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
  align-items: stretch;
}

.ex {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ex:hover { transform: translateY(-3px); box-shadow: -7px 9px 0 var(--line); }

.ex__cover {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--petrol-mid); overflow: hidden;
}
.ex__cover img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.ex__cover:hover img { transform: scale(1.045); }

.ex__body {
  padding: clamp(18px, 2.4vw, 26px);
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.ex__title { font-size: 1.24rem; font-weight: 500; }
.ex__text { color: var(--ink-soft); font-size: .97rem; line-height: 1.62; margin-bottom: auto; }
.ex__text p { margin-bottom: .35em; white-space: pre-line; }
.ex__text p:last-child { margin-bottom: 0; }

.ex__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ex__thumb {
  width: 62px; height: 62px; padding: 0; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; background: none;
  transition: border-color .18s, transform .18s;
}
.ex__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ex__thumb:hover { border-color: var(--petrol); transform: translateY(-2px); }

.ex .btn { align-self: flex-start; }

.credit {
  margin-top: clamp(24px, 3vw, 40px);
  text-align: center;
  color: var(--ink-faint);
  font-size: .86rem;
}

/* ------------------------------------------------------------ story */
.story {
  background: var(--petrol);
  color: #fff;
}
.story h2, .story h3 { color: #fff; }
.story .label { color: rgba(255, 255, 255, .72); }

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.story__media { display: grid; gap: 12px; }

.video {
  position: relative; display: block; width: 100%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-lg); overflow: hidden;
  background: #14344a;
  aspect-ratio: 16 / 9;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .5s; }
.video:hover img { opacity: .78; transform: scale(1.03); }
.video__play {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 252, 245, .93); color: var(--petrol-deep);
  box-shadow: 0 8px 26px -10px rgba(0, 0, 0, .6);
  transition: transform .2s ease;
}
.video__play svg { margin-inline-start: 4px; }
.video:hover .video__play { transform: scale(1.08); }
.video__dur {
  position: absolute; inset-block-end: 10px; inset-inline-end: 12px;
  background: rgba(0, 0, 0, .68); color: #fff;
  font-size: .78rem; padding: 2px 8px; border-radius: 6px;
  direction: ltr;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__caption { color: rgba(255, 255, 255, .74); font-size: .86rem; margin: 0; }
.story__kicker { font-size: 1.2rem; font-weight: 400; }

.story__text p { color: rgba(255, 255, 255, .88); }
.story__text h2 { margin-bottom: .6em; }

.pull {
  margin: 1.6em 0 0;
  padding-inline-start: 18px;
  border-inline-start: 3px solid rgba(255, 255, 255, .45);
  display: grid; gap: 14px; justify-items: start;
}
.pull strong, .pull p { color: #fff; font-weight: 400; font-size: 1.08em; }
.pull .btn { cursor: default; }

/* ------------------------------------------------------------ card grids */
.grid-3, .grid-4, .stats {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stats  { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.feature, .value, .stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 2.6vw, 30px);
  text-align: center;
}
.feature h3, .value h3, .stat h3 { margin-bottom: .5em; }
.feature p, .value p, .stat p { color: var(--ink-soft); font-size: .96rem; }

.services { background: var(--paper-2); }

/* ------------------------------------------------------------ press */
.press { background: var(--paper); }
.press__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hard);
  padding: clamp(26px, 4vw, 52px);
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}
.press__card h2 { margin-bottom: .7em; }
.press__body {
  color: var(--ink-soft);
  max-width: 62ch; margin-inline: auto;
  margin-bottom: 1.6em;
}
.press__body p { margin-bottom: .5em; }
.stats { margin-top: clamp(28px, 4vw, 52px); }
.stat__num {
  display: block;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  font-weight: 500; line-height: 1;
  color: var(--petrol);
  margin-bottom: .28em;
  direction: ltr;
}

/* ------------------------------------------------------------ community */
.community { background: var(--paper-2); }
.community__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  margin-bottom: clamp(30px, 4vw, 56px);
}
.community__intro p { color: var(--ink-soft); font-size: 1.05em; margin-top: .8em; }
.community__figure {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-hard);
}
.community__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.banner {
  margin: clamp(28px, 4vw, 52px) 0 0;
  background: var(--petrol);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 44px);
  text-align: center;
  font-size: clamp(1.08rem, .95rem + .6vw, 1.42rem);
  font-weight: 300;
  line-height: 1.5;
}

/* ------------------------------------------------------------ values */
.values { background: var(--paper); }

.chips {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
  margin: clamp(30px, 4vw, 52px) 0 0; padding: 0;
}
.chip {
  border: 1px solid var(--petrol);
  color: var(--petrol-deep);
  background: var(--cream);
  border-radius: 999px;
  padding: .6em 1.4em;
  font-size: .98rem;
  position: relative;
}
.chip + .chip::before {
  content: "";
  position: absolute; inset-inline-start: 100%; top: 50%;
  width: 12px; height: 1px; background: var(--line);
}

.closing {
  margin-top: clamp(38px, 5vw, 68px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hard);
  padding: clamp(24px, 3.4vw, 44px);
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}
.closing__art {
  margin: 0; width: min(320px, 70%);
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
}
.closing__art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.closing__text {
  max-width: 56ch;
  font-size: 1.06em;
  color: var(--ink);
}
.closing__text strong { color: var(--petrol-deep); font-weight: 500; }

/* ------------------------------------------------------------ footer */
.footer {
  background: var(--petrol-dark);
  color: rgba(255, 255, 255, .85);
  padding-block: 34px;
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.footer .brand__name { color: #fff; display: block; font-size: 1.1rem; }
.footer .brand__role { color: rgba(255, 255, 255, .6); }
.footer__tel {
  color: #fff; text-decoration: none; direction: ltr;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px; padding: .5em 1.2em; font-size: .95rem;
}
.footer__tel:hover { background: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(16, 34, 46, .93);
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 100%; max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 70px -30px #000;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .12);
  color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-end: 14px; }
.lightbox__nav--next { inset-inline-start: 14px; }
.lightbox__nav[hidden] { display: none; }

/* ------------------------------------------------------------ reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .story__grid, .community__top { grid-template-columns: 1fr; }
  .community__figure img { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 118px; }
  /* chips wrap on narrow screens, so the connecting lines would dangle */
  .chip + .chip::before { display: none; }
  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding-block: 8px;
  }
  .nav {
    grid-column: 1 / -1;
    margin-inline-start: 0;
    gap: 16px;
    padding-bottom: 4px;
    font-size: .88rem;
    -webkit-overflow-scrolling: touch;
  }
  .hero__intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__portrait { width: min(240px, 62%); }
  .ex-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .btn--sm { display: none; }
}

/* ------------------------------------------------------------ section header with art */
.section__head--art {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  text-align: start;
}
.section__art {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hard);
}
.section__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.section__head--art .section__sub { margin-inline: 0; }

@media (max-width: 720px) {
  .section__head--art { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .section__art { width: min(320px, 80%); }
  .section__head--art .section__sub { margin-inline: auto; }
}
