/* ================================================================
   THE JERK SHAC — sen.css
   Page-specific styles for sen.html
   ================================================================ */

@font-face {
  font-family: 'Rettabelle Demo';
  src: url('../assets/fonts/Rettabelle-Demo.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.sen-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--marble);
}
.sen-hero-bg {
  position: absolute;
  inset: 0;
}
.sen-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.03);
}
.sen-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 14, 0.24) 0%, rgba(10, 16, 14, 0.38) 28%, rgba(10, 16, 14, 0.82) 100%),
    linear-gradient(110deg, rgba(14, 24, 22, 0.82) 0%, rgba(14, 24, 22, 0.32) 55%, rgba(14, 24, 22, 0.72) 100%);
}
.sen-hero-body {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 3rem;
  max-width: 860px;
  text-align: center;
}
.sen-hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 0.4rem;
  position: relative;
}
.sen-hero-firstline {
  position: relative;
  display: inline-block;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  white-space: nowrap;
}
.sen-hero-calligraphy {
  position: absolute;
  left: calc(100% - 0.62em);
  top: 1.06em;
  font-family: 'Rettabelle Demo', var(--font-serif);
  font-style: normal;
  font-size: 0.42em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-light);
  white-space: nowrap;
  transform: rotate(-10deg);
  transform-origin: left center;
  animation: sen-calligraphy-write 1.35s cubic-bezier(0.34, 0.06, 0.18, 1) 0.28s both;
}

@keyframes sen-calligraphy-write {
  from {
    clip-path: inset(-18% 100% -24% 0);
    opacity: 0.72;
  }
  to {
    clip-path: inset(-18% -8% -24% 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sen-hero-calligraphy {
    animation: none !important;
    clip-path: none;
    opacity: 1;
  }
}
.sen-hero-subline {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.56em;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-light);
}
.sen-hero-sub {
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--w-90);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.85;
}
.sen-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.sen-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 0;
  background: var(--teal);
  align-items: stretch;
}
.sen-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(2.7rem, 4vw, 3.6rem) clamp(2.4rem, 4.6vw, 3.6rem);
}
.sen-story-copy .label {
  margin-bottom: 1.1rem;
}
.sen-story-copy .section-title {
  margin-bottom: 0.95rem;
}
.sen-story-copy p {
  max-width: 580px;
  color: var(--w-65);
  font-size: 0.98rem;
  line-height: 1.92;
  margin-top: 1.35rem;
}
.sen-story-credit {
  max-width: 600px;
  color: var(--w-90);
}
.sen-story-credit a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(242, 211, 122, 0.48);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.sen-story-credit a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}
.sen-story-photo {
  overflow: hidden;
  border-left: 4px solid var(--gold);
  min-height: 100%;
}
.sen-story-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 70% 0%;
  transform: scale(1.54);
  transition: transform 1s var(--ease);
}
.sen-story-photo:hover img {
  transform: scale(1.58);
}

.sen-highlights {
  padding: clamp(5rem, 9vw, 8rem) var(--pad);
  background: var(--cream-d);
}
.sen-highlights-head {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 620px;
}
.sen-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.sen-card {
  background: rgba(253, 246, 227, 0.86);
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-bottom: 4px solid var(--gold);
  padding: 2rem;
  box-shadow: 0 18px 46px rgba(20, 20, 20, 0.06);
}
.sen-card-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sen-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 0.9rem;
}
.sen-card p {
  color: var(--ink-60);
  font-size: 0.96rem;
  line-height: 1.85;
}

.sen-gallery {
  padding: clamp(5rem, 9vw, 8rem) var(--pad);
  background: var(--teal);
}
.sen-gallery-head {
  text-align: center;
  margin: 0 auto 2.5rem;
}
.sen-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.sen-gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.sen-gallery-button {
  min-width: 15rem;
  justify-content: center;
}
.sen-gallery-item {
  overflow: hidden;
  background: var(--marble);
  min-height: 300px;
}
.sen-gallery-item--wide {
  grid-column: 1 / -1;
  min-height: 580px;
}
.sen-poster-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.sen-poster-trigger:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: -5px;
}
.sen-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  transition: transform 0.9s var(--ease), filter 0.35s ease;
}
.sen-gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.event-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.event-gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.event-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 10, 0.46);
  backdrop-filter: blur(8px) saturate(0.9);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
}
.event-gallery-panel {
  width: min(1120px, 100%);
  max-height: min(86vh, 900px);
  position: relative;
  z-index: 1;
  overflow: auto;
  background: rgba(18, 34, 30, 0.4);
  border: 1px solid rgba(201,164,53,0.34);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 38px 120px rgba(0,0,0,0.55);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  padding: clamp(1.25rem, 3vw, 2.2rem);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s ease;
}
.event-gallery-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%, rgba(255,255,255,0.03));
  pointer-events: none;
}
.event-gallery-panel > * {
  position: relative;
  z-index: 1;
}
.event-gallery-modal.is-open .event-gallery-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.event-gallery-close,
.event-viewer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(201,164,53,0.35);
  background: rgba(8,23,18,0.82);
  color: var(--gold-light);
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.event-gallery-close:hover,
.event-viewer-close:hover {
  background: var(--gold);
  color: var(--teal);
  transform: translateY(-1px);
}
.event-gallery-head {
  max-width: 700px;
  margin: 0 auto 1.4rem;
  padding-right: 3rem;
  text-align: center;
}
.event-gallery-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
}
.event-gallery-head p:not(.label) {
  color: rgba(253,246,227,0.75);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
  margin-top: 0.7rem;
}
.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.event-gallery-tile {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(201,164,53,0.16);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: event-tile-pop 0.24s var(--ease) forwards;
  animation-delay: var(--tile-delay, 0ms);
}
.event-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.86) saturate(0.95);
  transition: transform 0.36s var(--ease), filter 0.25s ease;
}
.event-gallery-tile:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.1);
}
.event-gallery-note {
  color: rgba(253,246,227,0.58);
  font-size: 0.82rem;
  line-height: 1.65;
  margin-top: 1rem;
}
.event-gallery-viewer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(18, 34, 30, 0.4);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.event-gallery-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.event-gallery-modal.is-viewing-only .event-gallery-panel {
  display: none;
}
.event-gallery-modal.is-viewing-only .event-gallery-viewer {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
}
.event-gallery-viewer img {
  max-width: min(94vw, 1180px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 34px 120px rgba(0,0,0,0.55);
  animation: event-image-open 0.2s var(--ease) both;
}
body.gallery-modal-open {
  overflow: hidden;
}
@keyframes event-tile-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes event-image-open {
  from {
    opacity: 0;
    transform: scale(0.975);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sen-connect {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(5rem, 9vw, 8rem) var(--pad);
  align-items: center;
  background: var(--cream-d);
}
.sen-connect-copy p {
  max-width: 560px;
  color: var(--ink-60);
  font-size: 1rem;
  line-height: 1.9;
  margin-top: 1.2rem;
}
.sen-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.sen-info-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
.sen-info-list span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.sen-info-list strong {
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--ink);
}
.sen-connect-card {
  background:
    linear-gradient(160deg, rgba(20, 42, 38, 0.96) 0%, rgba(29, 57, 51, 0.94) 52%, rgba(39, 73, 66, 0.92) 100%),
    var(--teal);
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem);
  border-left: 4px solid var(--gold);
  box-shadow: 0 28px 70px rgba(14, 28, 24, 0.18);
  position: relative;
  overflow: hidden;
}
.sen-connect-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/patterns/jamaican-pattern-large.webp');
  background-size: 100% auto;
  background-repeat: repeat;
  opacity: 0.045;
  filter: blur(1.2px);
  pointer-events: none;
}
.sen-connect-card > * {
  position: relative;
  z-index: 1;
}
.sen-connect-eyebrow {
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.sen-connect-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
}
.sen-connect-card p {
  color: var(--w-65);
  font-size: 1rem;
  line-height: 1.85;
  margin-top: 1rem;
}
.sen-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

@media (max-width: 960px) {
  .sen-story,
  .sen-connect {
    grid-template-columns: 1fr;
  }
  .sen-story-photo {
    min-height: 420px;
    border-left: none;
    border-top: 4px solid var(--gold);
  }
  .sen-cards {
    grid-template-columns: 1fr;
  }
  .sen-gallery-item--wide {
    min-height: 420px;
  }
  .event-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sen-hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.7rem;
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
  }
  .sen-hero-actions .btn-hero {
    flex: 0 0 calc(50% - 0.35rem);
    width: calc(50% - 0.35rem);
    min-height: 2.9rem;
    padding: 0.78rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }
  .sen-highlights-head,
  .sen-card,
  .sen-connect-copy,
  .sen-connect-card {
    text-align: center;
  }
  .sen-card-tag {
    margin-inline: auto;
  }
  .sen-card p,
  .sen-connect-copy p,
  .sen-connect-card p {
    margin-inline: auto;
  }
  .sen-hero-calligraphy {
    left: calc(100% - 0.62em);
    top: 1.02em;
    font-size: 0.33em;
    transform: rotate(-10deg);
  }
  .sen-gallery-item--wide {
    min-height: 300px;
  }
  .sen-gallery-button {
    min-width: min(100%, 17rem);
  }
  .event-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sen-info-list {
    align-items: center;
  }
  .sen-info-list li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    justify-items: center;
    text-align: center;
  }
  .sen-connect-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
  }
  .sen-connect-actions .social-btn {
    justify-content: center;
    width: 100%;
    padding: 0.62rem 0.7rem;
    font-size: 0.6rem;
    letter-spacing: 0.13em;
  }
}
