/* Process button — sits below the project meta */
.process-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  cursor: pointer;
  transition: all 220ms cubic-bezier(.22,.61,.36,1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.process-btn:hover {
  background: var(--text);
  color: var(--bg-0);
}
.process-btn .arr {
  display: inline-block;
  transition: transform 220ms cubic-bezier(.22,.61,.36,1);
}
.process-btn:hover .arr { transform: translateX(3px); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  opacity: 0;
  transition: opacity 280ms cubic-bezier(.22,.61,.36,1);
}
.modal.is-open { display: flex; opacity: 1; }

/* Backdrop — dark gray 70% transparent, page visible behind */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 38, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.modal__inner {
  position: relative;
  background: #f5f2ec;
  width: 100%;
  max-width: 920px;
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid rgba(0,0,0,.2);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px) clamp(32px, 4vw, 56px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modalIn 340ms cubic-bezier(.22,.61,.36,1);
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: #f5f2ec;
  border: 1px solid rgba(0,0,0,.85);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms cubic-bezier(.22,.61,.36,1);
  z-index: 2;
}
.modal__close:hover {
  background: #0a0a0a;
  color: #f5f2ec;
}

.modal__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.modal__eyebrow::before { content: "—"; }

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 18px;
  color: #0a0a0a;
}
.modal__title em { font-style: italic; font-weight: 400; }

.modal__text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 28px;
  max-width: 64ch;
}
.modal__text p { margin-bottom: 12px; }
.modal__text p:last-child { margin-bottom: 0; }

.modal__steps {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px 16px;
  margin: 22px 0 28px;
  font-size: 13.5px;
}
.modal__steps dt {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #888;
  padding-top: 2px;
  letter-spacing: 0.04em;
}
.modal__steps dd {
  color: #2a2a2a;
  line-height: 1.55;
}

/* CSS columns layout — images display at their natural aspect ratio,
   each column packs items vertically by their actual height. */
.modal__images {
  columns: 2;
  column-gap: 10px;
  margin-top: 8px;
}
.modal__images--vertical { columns: 4; }
@media (max-width: 720px) {
  .modal__images { columns: 1; }
  .modal__images--vertical { columns: 2; }
}
.modal__images .keyframe {
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f5b9d3, #c9b5ec 50%, #b8ebe1);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  min-height: 80px;
}
.modal__images--vertical .keyframe { min-height: 200px; }
.modal__images .keyframe img {
  width: 100%;
  height: auto;
  display: block;
}
.modal__images .keyframe img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.modal__images .keyframe::after {
  content: attr(data-label);
  position: absolute;
  bottom: 8px; left: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #555;
}

/* Perfume extras grid */
.perfume-extras {
  margin: 0 0 clamp(48px, 6vw, 80px);
  padding-top: 12px;
}
.perfume-extras__head {
  margin-bottom: 18px;
}
.perfume-extras__num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-bottom: 8px;
}
.perfume-extras__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}
.perfume-extras__title em { font-style: italic; font-weight: 400; }
.perfume-extras__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .perfume-extras__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .perfume-extras__grid { grid-template-columns: 1fr; }
}
.perfume-extras__card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.85);
}
.perfume-extras__card iframe,
.perfume-extras__card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.perfume-extras__card .lbl {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: #f5f2ec;
  border: 1px solid rgba(0,0,0,.85);
  padding: 3px 9px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
