/* Effluent Ecosystems design tokens */
:root {
  --ee-pink: #ed266a;
  --ee-pink-hover: #d11d5c;
  --ee-pink-press: #b8184f;
  --ee-purple: #4c2939;
  --ee-purple-dark: #3a1f2c;
  --ee-purple-mid: #7b4f5f;
  --ee-pink-light: #ecb7d4;
  --ee-pink-lightest: #f7e5ec;
  --ee-grey: #6d6e71;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Wall theme: off-white by default */
  --wall: #f6f5f2;
  --ink: #4c2939;
  --body: #6d6e71;
  --cap: #7b4f5f;

  --gutter: clamp(20px, 5vw, 40px);
  --stack-gap: clamp(40px, 6vw, 88px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #3a1f2c;
    --ink: #ffffff;
    --body: #ecb7d4;
    --cap: #ecb7d4;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: var(--ee-pink); text-decoration: none; }
a:hover { color: var(--ee-pink-hover); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(237, 38, 106, .28);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wall);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Headings */
.title {
  margin: 17px 0 -15px;
  font-size: 42px;
  line-height: .86;
  letter-spacing: -.045em;
  font-weight: 700;
  color: var(--ee-pink);
  text-wrap: balance;
  max-width: 100%;
}

.section-heading {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

.section-heading--ruled {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  margin-bottom: calc(24px - var(--stack-gap));
}

/* 1. Exhibition */
.exhibition { padding: 32px 0 clamp(48px, 6vw, 80px); }

.exhibition__inner {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.boards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(max(min(14vw, 236px), min(66vw, 860px - 60vw)), 1fr);
  gap: clamp(16px, 2vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 28px;
  margin: 0 -4px;
}

.board {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
}

.board__frame {
  aspect-ratio: 3150 / 4650;
  overflow: hidden;
  background: #e4e2de;
  cursor: zoom-in;
  box-shadow: 0 1px 1px rgba(76, 41, 57, .06), 0 18px 30px -18px rgba(76, 41, 57, .35);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.board__frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 1px rgba(76, 41, 57, .06), 0 28px 40px -20px rgba(76, 41, 57, .45);
}

.board__frame:focus-visible {
  box-shadow: 0 0 0 3px rgba(237, 38, 106, .28), 0 18px 30px -18px rgba(76, 41, 57, .35);
}

.board__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.board__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--cap);
  font-variant-numeric: tabular-nums;
}

.board__rule {
  width: 16px;
  height: 1px;
  background: var(--cap);
}

/* 2. About */
.about {
  padding: 0 0 clamp(80px, 10vw, 160px);
  scroll-margin-top: 24px;
}

.about__row {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
}

.about__heading { flex: 1 1 min(100%, 220px); }

.about__text {
  flex: 3 1 min(100%, 520px);
  min-width: 0;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-wrap: pretty;
}

.about__text p { margin: 0; }

.lead {
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 589px;
}

.body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
}

/* 3. Footer */
.footer {
  margin-top: auto;
  background: var(--ee-purple);
  color: #fff;
  padding: clamp(48px, 6vw, 88px) 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
}

.footer__email {
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
  align-self: flex-start;
}

.footer__email:hover { color: var(--ee-pink-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 48px;
  font-size: 13px;
  letter-spacing: .02em;
  border-top: 1px solid rgba(236, 183, 212, .35);
  padding-top: 20px;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}

.footer__social a {
  color: #fff;
  display: flex;
  gap: 10px;
}

.footer__social a:hover { color: var(--ee-pink-light); }

.footer__label { color: var(--ee-pink-light); }

/* Icon buttons (design system IconButton, primary) */
.icon-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ee-pink);
  color: #fff;
  cursor: pointer;
  transition: background-color 150ms var(--ease), transform 120ms var(--ease);
}

.icon-btn:hover { background: var(--ee-pink-hover); }
.icon-btn:active { background: var(--ee-pink-press); transform: scale(.98); }
.icon-btn--lg { width: 48px; height: 48px; }

/* Full-screen viewer */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #1e1a1c;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}

.viewer[hidden] { display: none; }

.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px 14px 28px;
  color: #fff;
}

.viewer__count {
  font-size: 13px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.viewer__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer__zoom {
  min-width: 52px;
  text-align: center;
  font-size: 13px;
  color: var(--ee-pink-light);
  font-variant-numeric: tabular-nums;
}

.viewer__divider {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: rgba(236, 183, 212, .3);
}

.viewer__stage {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 80px 16px;
}

.viewer__stage.is-zoomed { cursor: grab; }
.viewer__stage.is-zoomed.is-dragging { cursor: grabbing; }

.viewer__img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.viewer__nav:active { transform: translateY(-50%) scale(.98); }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }

.viewer__hint {
  margin: 0;
  padding: 0 24px 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ee-pink-light);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board__frame, .icon-btn { transition: none; }
}
