/* ==========================================================================
   Old Hill Masjid - "Being gathered" component
   --------------------------------------------------------------------------
   One honest treatment for anything on the site that is not finished yet.
   Uses the site's own tokens (navy / gold / teal, DM Sans + Amiri). No new
   fonts, no new icon set, no external assets: the geometry is an inline SVG
   data URI so the component is a single file drop.

   Two variants:
     .ohm-soon        overlay that sits INSIDE an existing card or tile
     .ohm-soon-band   full-width band that replaces a whole page section

   Deliberately no countdown. There is no confirmed date for any of these, and
   a timer counting down to nothing is worse than saying nothing.
   ========================================================================== */

:root {
  --soon-ground: #0B1F3A;
  --soon-ground-2: #12305A;
  --soon-gold: #C9A84C;
  --soon-teal: #0D9B8A;
  --soon-ease: cubic-bezier(.32, .72, 0, 1);
}

/* Eight-point khatam lattice, drawn once, tiled by the browser. */
.ohm-soon,
.ohm-soon-band {
  --soon-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='1'%3E%3Cpath d='M36 6 46 26 66 36 46 46 36 66 26 46 6 36 26 26Z'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   1. Card overlay
   -------------------------------------------------------------------------- */

.ohm-soon {
  position: absolute;
  inset: 0;
  /* Above the card's own full-bleed <a> (z-index 3 in gallery.css) so the CTA
     inside is reachable, but transparent to the pointer everywhere else, so
     the card as a whole still opens the collection. */
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1.75rem;
  text-align: center;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(13, 155, 138, .16) 0%, transparent 62%),
    linear-gradient(160deg, var(--soon-ground) 0%, var(--soon-ground-2) 100%);
  overflow: hidden;
}

/* The lattice. Sits under the content, never over it. */
.ohm-soon::before,
.ohm-soon-band::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--soon-pattern);
  background-size: 72px 72px;
  opacity: .07;
  pointer-events: none;
}

/* Inner hairline, so the panel reads as a machined plate and not a flat fill. */
.ohm-soon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 168, 76, .22);
  border-radius: calc(1rem - 2px);
  pointer-events: none;
}

.ohm-soon > * { position: relative; z-index: 1; }

/* Eyebrow pill */
.ohm-soon__tag,
.ohm-soon-band__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .85rem;
  border: 1px solid rgba(201, 168, 76, .45);
  border-radius: 999px;
  background: rgba(201, 168, 76, .09);
  color: var(--soon-gold);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
}

/* The small pulsing dot: the only motion, and it stops for reduced-motion. */
.ohm-soon__dot,
.ohm-soon-band__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--soon-teal);
  box-shadow: 0 0 0 0 rgba(13, 155, 138, .55);
  animation: ohm-soon-pulse 2.8s var(--soon-ease) infinite;
}

@keyframes ohm-soon-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(13, 155, 138, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(13, 155, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 155, 138, 0); }
}

.ohm-soon__title {
  margin: 0;
  font-family: var(--font-heading, 'Amiri', serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
}

.ohm-soon__text {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}

/* Skeleton bars: three strips standing in for the photographs that will land
   here. They tell the visitor the shape of what is coming, which a bare
   "coming soon" label does not. */
.ohm-soon__skeleton {
  display: flex;
  gap: .55rem;
  width: min(210px, 70%);
  margin-top: .2rem;
}

.ohm-soon__skeleton i {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, .05) 30%,
    rgba(255, 255, 255, .14) 50%,
    rgba(255, 255, 255, .05) 70%
  );
  background-size: 220% 100%;
  animation: ohm-soon-shimmer 2.4s var(--soon-ease) infinite;
}

.ohm-soon__skeleton i:nth-child(2) { animation-delay: .18s; height: 44px; }
.ohm-soon__skeleton i:nth-child(3) { animation-delay: .36s; }

@keyframes ohm-soon-shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -60% 0; }
}

/* Quiet action. Only rendered where there is something real to click. */
.ohm-soon__cta,
.ohm-soon-band__cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .5rem .5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .6s var(--soon-ease), border-color .6s var(--soon-ease), transform .6s var(--soon-ease);
}

.ohm-soon__cta:hover,
.ohm-soon-band__cta:hover {
  background: rgba(201, 168, 76, .16);
  border-color: rgba(201, 168, 76, .5);
}

.ohm-soon__cta:active,
.ohm-soon-band__cta:active { transform: scale(.98); }

/* Re-enable the pointer on the one thing inside the overlay that is clickable. */
.ohm-soon__cta { pointer-events: auto; }

/* Trailing icon nested in its own disc, flush with the pill's inner edge. */
.ohm-soon__cta span,
.ohm-soon-band__cta span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  transition: transform .6s var(--soon-ease);
}

.ohm-soon__cta:hover span,
.ohm-soon-band__cta:hover span { transform: translateX(3px); }

.ohm-soon__cta svg,
.ohm-soon-band__cta svg { width: 13px; height: 13px; }

/* Compact form, for small tiles where the full stack will not fit. */
.ohm-soon--compact { gap: .6rem; padding: 1rem; }
.ohm-soon--compact .ohm-soon__skeleton,
.ohm-soon--compact .ohm-soon__text,
.ohm-soon--compact .ohm-soon__cta { display: none; }
.ohm-soon--compact .ohm-soon__title { font-size: 1rem; }
.ohm-soon--compact::after { inset: 6px; }

/* --------------------------------------------------------------------------
   2. Section band
   -------------------------------------------------------------------------- */

.ohm-soon-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
  text-align: center;
  border: 1px solid rgba(11, 31, 58, .12);
  border-radius: 1.5rem;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(13, 155, 138, .07) 0%, transparent 60%),
    #F4F7FB;
}

.ohm-soon-band::before { opacity: .05; }

.ohm-soon-band__tag {
  border-color: rgba(154, 123, 32, .4);
  background: rgba(201, 168, 76, .12);
  color: #7A6018;
}

.ohm-soon-band__title {
  position: relative;
  margin: 0;
  font-family: var(--font-heading, 'Amiri', serif);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 400;
  color: var(--soon-ground);
  line-height: 1.2;
}

.ohm-soon-band__text {
  position: relative;
  margin: 0;
  max-width: 52ch;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: #4A5568;
}

.ohm-soon-band__cta {
  position: relative;
  border-color: rgba(11, 31, 58, .16);
  background: var(--soon-ground);
  color: #fff;
}

.ohm-soon-band__cta:hover {
  background: #12305A;
  border-color: rgba(201, 168, 76, .5);
}

/* Dark ground. The gallery pages sit on navy, where the light band above
   reads as a hole punched in the page. */
.ohm-soon-band--dark {
  border-color: rgba(201, 168, 76, .18);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(13, 155, 138, .14) 0%, transparent 62%),
    linear-gradient(160deg, var(--soon-ground) 0%, var(--soon-ground-2) 100%);
}

.ohm-soon-band--dark::before { opacity: .07; }

.ohm-soon-band--dark .ohm-soon-band__tag {
  border-color: rgba(201, 168, 76, .45);
  background: rgba(201, 168, 76, .09);
  color: var(--soon-gold);
}

.ohm-soon-band--dark .ohm-soon-band__title { color: #fff; }
.ohm-soon-band--dark .ohm-soon-band__text { color: rgba(255, 255, 255, .72); }

.ohm-soon-band--dark .ohm-soon-band__cta {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
}

.ohm-soon-band--dark .ohm-soon-band__cta:hover {
  background: rgba(201, 168, 76, .16);
  border-color: rgba(201, 168, 76, .5);
}

/* --------------------------------------------------------------------------
   3. Entry + accessibility
   -------------------------------------------------------------------------- */

/* Heavy fade-up on entry, matching the site's existing .reveal rhythm. */
.ohm-soon-band.reveal { opacity: 0; transform: translateY(28px); }
.ohm-soon-band.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--soon-ease), transform .8s var(--soon-ease);
}

@media (prefers-reduced-motion: reduce) {
  .ohm-soon__skeleton i,
  .ohm-soon__dot,
  .ohm-soon-band__dot { animation: none; }
  .ohm-soon__cta,
  .ohm-soon-band__cta,
  .ohm-soon-band.reveal { transition: none; }
  .ohm-soon-band.reveal { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .ohm-soon { padding: 1.1rem; gap: .7rem; }
  .ohm-soon__skeleton { display: none; }
  .ohm-soon-band { border-radius: 1rem; padding: 2.5rem 1rem; }
}
