/* === Section dividers ================================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 72px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  font-family: "Poiret One", serif;
  font-size: 13px;
  letter-spacing: 0.55em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: ""; width: 36px; height: 1px;
  background: var(--gold-soft);
  display: inline-block;
}
.section-title {
  font-family: "Poiret One", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* === Before / After gallery ========================================== */
.gallery {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ba-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.ba-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* "after" dissolves in on hover; both images get a gentle ken-burns drift */
.ba-stage .before,
.ba-stage .after {
  transform: scale(1.001);
  transition: transform 7s ease-out;
}
.ba-stage .after {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.9s ease, transform 7s ease-out;
}
.ba-stage:hover .after { opacity: 1; }
.ba-stage:hover .before,
.ba-stage:hover .after {
  transform: scale(1.08) translate(-1.4%, -2%);
}

@media (prefers-reduced-motion: reduce) {
  .ba-stage .before,
  .ba-stage .after { transition: opacity 0.3s ease; }
  .ba-stage:hover .before,
  .ba-stage:hover .after { transform: none; }
}

/* Tap-to-reveal (mobile, where there is no hover) */
.ba-toggle {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: none;                 /* shown only on touch / small screens */
  align-items: center;
  gap: 8px;
  background: rgba(14,10,5,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-soft, rgba(244,196,48,0.35));
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ba-toggle::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--gold, #f4c430);
  transition: background 0.3s ease;
}
.ba-stage.revealed .after { opacity: 1; }
.ba-stage.revealed .before,
.ba-stage.revealed .after {
  transform: scale(1.08) translate(-1.4%, -2%);
}
.ba-stage.revealed .ba-toggle::before { background: var(--cream); }

@media (hover: none), (max-width: 640px) {
  .ba-toggle { display: inline-flex; }
}

.ba-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(14,10,5,0.7);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 4;
}
.ba-tag.after-tag { left: auto; right: 14px; }

.ba-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px 8px;
}
.ba-caption .action {
  font-family: "Poiret One", serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.ba-caption .title {
  font-size: 18px;
  color: var(--cream);
  font-weight: 400;
}

/* fake "before" filters for synthesized pairs */
.faked-before {
  filter:
    grayscale(0.6)
    sepia(0.55)
    contrast(0.78)
    brightness(0.85)
    blur(0.3px);
}
.faked-before-2 {
  filter:
    sepia(0.3)
    contrast(0.7)
    saturate(0.4)
    brightness(0.78);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === Actions grid ==================================================== */
.actions {
  position: relative;
}
/* === Action editorial list ========================================== */
.act-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 8px;
  padding: 0 4px;
}
.act-label:not(:first-of-type) { margin-top: 56px; }
.act-label span {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.act-label.pro span { color: var(--yellow); }
.act-label em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.act-list {
  max-width: 820px;
  margin: 0 auto;
}
.act-row {
  display: grid;
  grid-template-columns: 44px 1fr 60px;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.act-list .act-row:last-child { border-bottom: 1px solid var(--line); }
.act-row:hover { padding-left: 12px; }

.act-idx {
  font-family: "Poiret One", serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}
.act-text h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 3px;
  line-height: 1.2;
}
.act-text p {
  font-size: 14px;
  color: var(--cream-dim);
  margin: 0;
  line-height: 1.4;
  text-wrap: pretty;
}
.act-thumb {
  width: 60px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  justify-self: end;
}
.act-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.55) brightness(0.92);
  transition: filter 0.3s ease;
}
.act-row:hover .act-thumb img { filter: saturate(1) brightness(1); }

@media (max-width: 600px) {
  .act-row { grid-template-columns: 30px 1fr 52px; gap: 16px; }
  .act-thumb { width: 52px; height: 64px; }
}

/* === How it works ==================================================== */
.how {
  position: relative;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}
.how-step {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}
.how-step .phone {
  position: relative;
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  padding: 8px;
  background: #111;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 0 1.5px rgba(201,162,74,0.2);
}
.how-step .phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.how-step .phone-screen img {
  width: 100%; height: 100%; object-fit: cover;
}
.how-step .stepnum {
  font-family: "Poiret One", serif;
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--gold);
}
.how-step h3 {
  font-family: "Poiret One", serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  color: var(--cream);
}
.how-step p {
  color: var(--cream-dim);
  margin: 0;
  font-size: 15px;
  max-width: 280px;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
}
