/* 1. COLORS & VARIABLES */
:root {
  --bg:             #172a24;
  --bg-deep:        rgba(17, 18, 31, 0.92);
  --bg-cocoa:       #1d3532;
  --bg-mist:        #2f3b3b;
  --fade: 60px;

  --surface:        #080737;

  --nescafe:        #69b3b8;
  --nescafe-light:  #99d6d9;

  --text:           #f8f0e7;
  --text-soft:      #e3d6c9;
  --text-muted:     #c3b3a4;

  --line:           rgba(153, 207, 217, 0.22);
  --line-strong:    rgba(164, 163, 218, 0.45);

  --font-display:   "Cormorant Garamond", Georgia, serif;
  --font-body:      "DM Sans", Arial, sans-serif;

  --max:            1240px;
  --radius:         14px;
  --header-height:  78px;
}

/* 2. BASE / RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  line-height: 1.7;
}

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

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

button,
input,
textarea {
  font: inherit;
}

p {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  margin: -1px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--nescafe-light);
  color: var(--bg-deep);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* 3. LAYOUT HELPERS */
.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 880px;
}

.section {
  padding: 40px 0;
}

.section--cocoa {
  background: linear-gradient(to bottom,
    var(--bg) 0,
    var(--bg-cocoa) var(--fade),
    var(--bg-cocoa) calc(100% - var(--fade)),
    var(--bg) 100%);
}

.section--mist {
  background: linear-gradient(to bottom,
    var(--bg) 0,
    var(--bg-mist) var(--fade),
    var(--bg-mist) calc(100% - var(--fade)),
    var(--bg) 100%);
}

.split-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* 4. TYPOGRAPHY */

.eyebrow {
  margin: 0 0 18px;
  color: var(--nescafe-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--text);
  font: 500 clamp(1.7rem, 3vw, 2.4rem) / 1.08 var(--font-display);
  letter-spacing: -.02em;
}

h2 em,
h1 em {
  font-style: italic;
  font-weight: 400;
}

h3 {
  margin: 0;
  color: var(--text);
  font: 500 30px / 1.1 var(--font-display);
}

.lead {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--text);
  font: 400 clamp(20px, 2.1vw, 28px) / 1.4 var(--font-display);
}

.prose {
  color: var(--text-soft);
  font-size: 16px;
}

.intro-text {
  max-width: 700px;
  margin-top: 25px;
}

/* 5. BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 10px 12px 10px 26px;
  background: linear-gradient(135deg, var(--nescafe-light), var(--nescafe));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #2a1a10;
  cursor: pointer;
  font: 700 20px / 1.1 var(--font-display);
  letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.button__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(16, 21, 42, 0.16);
  border-radius: 50%;
  font: 600 17px / 1 var(--font-body);
  transition: transform .2s, background .2s;
}

.button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.button:hover .button__arrow {
  background: rgba(16, 36, 42, 0.3);
  transform: translate(2px, -2px);
}

.button--outline {
  background: rgba(105, 179, 184, .1);
  border-color: var(--nescafe);
  box-shadow: none;
  color: var(--nescafe-light);
}

.button--outline .button__arrow {
  background: rgba(153, 214, 217, .18);
}

.button--outline:hover {
  background: var(--nescafe);
  color: #2a1a10;
  filter: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
}

.button--small {
  margin-top: 0;
  padding: 7px 9px 7px 20px;
  font-size: 18px;
}

.button--small .button__arrow {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

/* 6. HEADER, MENU & LANGUAGE SWITCH */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.logo__img {
  width: auto;
  height: 52px;
  border-radius: 6px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 46px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--text-soft);
  font: 600 24px / 1 var(--font-display);
  letter-spacing: .03em;
  transition: color .2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--nescafe);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--nescafe-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 8px;
  background: rgba(255, 255, 255, .06);
  border: 3px solid var(--line-strong);
  border-radius: 999px;
}

.lang-switch[hidden] {
  display: none;
}

.lang-switch button {
  min-width: 42px;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-soft);
  cursor: pointer;
  font: 600 13px / 1 var(--font-body);
  letter-spacing: .08em;
  transition: background .2s, color .2s;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--nescafe);
  color: #2a1a10;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 7. DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(calc(100% - 48px), var(--max));
  margin: 5px auto;
  color: var(--nescafe);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
}

.divider::before {
  background: linear-gradient(90deg, transparent, var(--nescafe) 85%);
}

.divider::after {
  background: linear-gradient(270deg, transparent, var(--nescafe) 85%);
}

.divider__ornament {
  flex: none;
  width: 108px;
  height: 27px;
  fill: currentColor;
}

.divider__star {
  fill: var(--nescafe-light);
}

.divider__core {
  fill: var(--bg-deep);
}

.section > .divider {
  margin-top: 40px;
}

.divider--tight {
  margin: 14px auto;
}

/* 8. IMAGE FRAMES */
.image-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--bg-mist);
  border: 1px solid var(--line);
  color: var(--text-muted);
  text-align: center;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 9. HOME PAGE */
.hero {
  padding-top: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  margin: 0 0 30px;
  color: var(--text);
  font: 500 clamp(2.6rem, 7.2vw, 6rem) / 1 var(--font-display);
  letter-spacing: -.05em;
  white-space: nowrap;
}

.hero-text {
  max-width: 620px;
  color: var(--text-soft);
}

.portrait--large {
  min-height: 650px;
}

.portrait--medium {
  min-height: 510px;
}

.portrait-feature {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.quote-block {
  max-width: 620px;
}

.quote-mark {
  display: block;
  height: 36px;
  color: var(--nescafe);
  font: 60px / 1 var(--font-display);
}

blockquote {
  margin: 20px 0;
  color: var(--text);
  font: 500 clamp(1.3rem, 2.3vw, 1.9rem) / 1.2 var(--font-display);
  letter-spacing: -.01em;
}

.quote-long {
  font-size: clamp(.9rem, 1.9vw, 1.5rem);
}

.quote-block > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin-inline: auto;
}

.gallery-preview .gallery-item:nth-child(2) {
  margin-top: 50px;
}
.center-button {
  margin-top: 0px;
  margin: 15px;
  text-align: center;
}

/* 10. INNER PAGE HEADERS (Gallery, Works, Contact) */
.page-hero {
  padding-top: 65px;
  padding-bottom: 60px;
}

.page-hero h1 {
  margin: 0 0 26px;
  color: var(--text);
  font: 500 clamp(2.2rem, 5vw, 4rem) / 1.02 var(--font-display);
  letter-spacing: -.035em;
}

.page-hint {
  display: inline-block;
  margin: 6px 0 0;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
}

/* 11. GALLERY + IMAGE VIEWER (LIGHTBOX) */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 16px;
  align-items: start;
}

.gallery-item {
  margin: 0;
}

.gallery-item__button {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.gallery-image {
  display: flex;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.gallery-grid .gallery-item:nth-child(odd) .gallery-image {
  aspect-ratio: 3 / 4;
}

.gallery-item__button:hover .gallery-image {
  transform: translateY(-3px);
  border-color: var(--nescafe);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
}

.gallery-item figcaption {
  padding-top: 11px;
  color: var(--text);
  font: 500 19px / 1.1 var(--font-display);
}

.gallery-item figcaption small {
  display: block;
  padding-top: 4px;
  color: var(--text-muted);
  font: 400 11px / 1.4 var(--font-body);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(9, 12, 20, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 1100px);
  margin: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.lightbox__caption[hidden] {
  display: none;
}

.lightbox__caption {
  margin-top: 16px;
  color: var(--text);
  font: 500 24px / 1.2 var(--font-display);
  text-align: center;
}

.lightbox__caption small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font: 400 13px / 1.4 var(--font-body);
}

.lightbox__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  font: 400 26px / 1 var(--font-body);
  transition: background .2s;
}

.lightbox__btn:hover {
  background: var(--nescafe);
  color: #2a1a10;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

html.lightbox-open {
  overflow: hidden;
}

/* 12. WORKS PAGE */

.embed-frame,
.video-frame {
  overflow: hidden;
  border-radius: var(--radius);
}

.embed-frame {
  margin-top: 45px;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 45px 24px;
}

.media-card h3 {
  margin: 15px 0 5px;
}

.media-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 18px;
  margin-top: 40px;
}

.audio-card {
  display: block;
  color: inherit;
}

.audio-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.audio-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-card .audio-card__cover::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  background: var(--nescafe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%232a1a10'/%3E%3C/svg%3E") center / 20px no-repeat;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}

.audio-card[href] {
  cursor: pointer;
}

.audio-card[href]:hover .audio-card__cover {
  transform: translateY(-3px);
  border-color: var(--nescafe);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
}

.audio-card__title {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: var(--text);
  font: 500 19px / 1.15 var(--font-display);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.audio-card__sub {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.audio-card__title:empty,
.audio-card__sub:empty {
  display: none;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 50px auto 0;
}

.book-cover {
  aspect-ratio: 2 / 3;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
}

.book-card h3 {
  font-size: 28px;
}

.book-card__meta {
  margin: 6px 0 10px;
  color: var(--nescafe-light);
  font-size: 12px;
  letter-spacing: .06em;
}

.book-card__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.book-grid + .button {
  display: flex;
  width: fit-content;
  margin: 50px auto 0;
}

.cta-section {
  background: linear-gradient(to bottom,
    var(--bg) 0,
    var(--bg-cocoa) var(--fade),
    var(--bg-cocoa) calc(100% - var(--fade)),
    var(--bg-deep) 100%);
  text-align: center;
}

.cta-section .button {
  margin-top: 35px;
}

/* 13. CONTACT PAGE (form) */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.contact-grid h2 + .prose {
  margin-top: 22px;
}

.contact-note {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.contact-note span {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px;
  background: linear-gradient(160deg, #26333e, #1f2133);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  padding: 13px 18px 6px;
  background: rgba(9, 10, 20, 0.38);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field:focus-within {
  background: rgba(9, 20, 20, 0.5);
  border-color: var(--nescafe);
  box-shadow: 0 0 0 3px rgba(105, 179, 184, .25);
}

.field label {
  display: block;
  color: var(--nescafe-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 16px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  margin: 0;
  color: var(--nescafe-light);
  font-size: 15px;
}

.form-status[hidden] {
  display: none;
}

.form-status--error {
  color: #f2b8a8;
}

.contact-form .button {
  align-self: flex-start;
  margin-top: 8px;
}

/* 14. SOCIAL BUTTONS (home page + contact page) */
.social-section h2 {
  margin-bottom: 40px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--surface-high), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  color: var(--text);
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

.social-card__icon {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: rgba(153, 214, 217, .16);
  border-radius: 50%;
  color: var(--nescafe-light);
  transition: background .2s, color .2s;
}

.social-card__name {
  flex: 1;
  font: 600 21px / 1 var(--font-display);
  letter-spacing: .02em;
}

.social-card__arrow {
  color: var(--nescafe-light);
  font-size: 17px;
  transition: transform .2s, color .2s;
}

.social-card:hover {
  background: linear-gradient(135deg, var(--nescafe-light), var(--nescafe));
  box-shadow: 0 14px 28px rgba(0, 0, 0, .4);
  color: #2a1a10;
  transform: translateY(-3px);
}

.social-card:hover .social-card__icon {
  background: rgba(42, 26, 16, .16);
  color: #2a1a10;
}

.social-card:hover .social-card__arrow {
  color: #2a1a10;
  transform: translate(2px, -2px);
}

/* 15. FOOTER */
.site-footer {
  padding: 46px 0 28px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font: 600 28px / 1 var(--font-display);
  letter-spacing: -.01em;
}

.footer-brand img {
  width: auto;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 38px;
}

.footer-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--text-soft);
  font: 500 17px / 1.2 var(--font-body);
  letter-spacing: .02em;
  transition: color .2s, border-color .2s;
}

.footer-nav a:hover {
  border-color: var(--nescafe);
  color: var(--nescafe-light);
}

.site-footer .divider {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 16. 404 PAGE */
.not-found {
  padding-block: 130px;
  text-align: center;
}

.not-found .lead {
  margin-inline: auto;
}

/* Exhibitions & talks */
.sub-title {
  margin: 70px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.exh-label {
  display: inline-block;
  margin: 28px 0 0;
  padding: 3px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--nescafe-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.exh-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.exh-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.exh-item__date {
  display: block;
  margin-bottom: 8px;
  color: var(--nescafe-light);
  font-size: 13px;
  letter-spacing: .08em;
}

.exh-item h4 {
  margin: 0 0 8px;
  color: var(--text);
  font: 500 clamp(21px, 2.4vw, 27px) / 1.15 var(--font-display);
}

.exh-item__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.exh-item__link {
  margin-top: 16px;
}

.button[hidden] {
  display: none;
}

.exh-poster {
  position: relative;
  width: clamp(104px, 15vw, 170px);
  aspect-ratio: 2 / 3;
  margin-bottom: 26px;
  background: var(--bg-mist);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
  cursor: zoom-in;
}

.exh-poster::after {
  content: attr(data-hint);
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
}

.lightbox .lightbox__img {
  cursor: zoom-out;
}

.exh-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.exh-posters {
  display: flex;
  gap: 14px;
}

.exh-posters .exh-poster {
  width: clamp(96px, 13vw, 150px);
}

.source-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 11px;
  border: 1px solid var(--nescafe);
  border-radius: 999px;
  color: var(--nescafe-light);
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.source-pill:hover {
  background: var(--nescafe);
  color: #2a1a10;
}

/* Scroll indicator */
.scroll-cue {
  position: fixed;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  overflow: hidden;
  background: rgba(17, 18, 31, .72);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  color: var(--text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .2s, opacity .3s;
}

.scroll-cue[hidden],
html.lightbox-open .scroll-cue {
  display: none;
}

.scroll-cue:hover {
  border-color: var(--nescafe-light);
}

.scroll-cue__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(105, 179, 184, .55), rgba(153, 214, 217, .25));
  transform: scaleY(var(--p, 0));
  transform-origin: bottom;
}

.scroll-cue__arrow,
.scroll-cue__label {
  position: relative;
}

.scroll-cue__arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--nescafe-light);
  animation: cue-down 1.9s ease-in-out infinite;
}

.scroll-cue__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s;
}

.scroll-cue.is-end .scroll-cue__arrow {
  animation-name: cue-up;
}

.scroll-cue.is-end .scroll-cue__arrow svg {
  transform: rotate(180deg);
}

.scroll-cue__label {
  font: 600 11px / 1 var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
}

@keyframes cue-down {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(4px); }
}

@keyframes cue-up {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 801px) {
  .scroll-cue {
    top: 50%;
    right: 22px;
    flex-direction: column;
    width: 52px;
    height: 128px;
    padding: 12px 0;
    transform: translateY(-50%);
  }

  .scroll-cue__label {
    writing-mode: vertical-rl;
  }
}

@media (max-width: 800px) {
  .scroll-cue {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    height: 46px;
    padding: 0 20px 0 16px;
    transform: translateX(-50%);
  }

  .scroll-cue__fill {
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    background: linear-gradient(to right, rgba(105, 179, 184, .55), rgba(153, 214, 217, .25));
  }

  .site-footer {
    padding-bottom: 84px;
  }
}

/* 17. Tablet (max 1100px) */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-nav {
    gap: 32px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 18. Mobile (max 800px) */
@media (max-width: 800px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .divider {
    width: min(calc(100% - 32px), var(--max));
  }

  .section {
    padding: 50px 0;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .logo__img {
    height: 44px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(0, 0, 0, .35);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 26px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-grid,
  .split-section,
  .portrait-feature,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: min(15vw, 3.9rem);
  }

  .portrait--large {
    min-height: 460px;
  }

  .portrait--medium {
    min-height: 400px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
  }

  .page-hero {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }

  .gallery-preview {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .gallery-preview .gallery-item:nth-child(2) {
    margin-top: 20px;
  }

  .gallery-preview .gallery-item figcaption {
    font-size: 15px;
  }

  .gallery-preview .gallery-item figcaption small {
    display: none;
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .audio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 340px;
  }

  .embed-frame iframe {
    height: 420px;
  }

  .contact-form {
    padding: 22px 18px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .lightbox {
    flex-wrap: wrap;
    align-content: center;
    gap: 14px 24px;
  }

  .lightbox__figure {
    order: 1;
    flex-basis: 100%;
  }

  .lightbox__prev {
    order: 2;
  }

  .lightbox__next {
    order: 3;
  }
}

/* 19. Small phones (max 520px) */
@media (max-width: 520px) {
  .exh-item {
    gap: 16px;
  }

  .exh-item--talk {
    grid-template-columns: 1fr;
  }

  .exh-item--talk .exh-posters {
    order: 2;
  }

  .exh-item--talk .exh-posters .exh-poster {
    flex: 1;
    width: auto;
  }

  .exh-poster {
    width: 104px;
  }

  .gallery-preview .gallery-item figcaption {
    font-size: 14px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .contact-note {
    flex-direction: column;
    gap: 5px;
  }

  .footer-nav {
    gap: 8px 26px;
  }

  .lang-switch button {
    min-width: 38px;
    padding: 7px 10px;
  }

  .button {
    font-size: 19px;
  }
}

/* 20. ACCESSIBILITY */
:focus-visible {
  outline: 2px solid var(--nescafe-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
