/* ============================================================
   Gather House — Tampines neighbourhood venue
   Foam ground, walnut brand, amber accent. Fraunces + Figtree.
   Photography-led; hairlines and whitespace, not cards.
   ============================================================ */

:root {
  --walnut: #3a2a1c;
  --plaster: #ebe4d8;
  --foam: #f7f3ec;
  --charcoal: #1a1714;
  --amber: #c4853a;
  --amber-deep: #9a6528;
  --ink-soft: #5c5248;
  --line: rgba(26, 23, 20, 0.14);
  --line-strong: rgba(26, 23, 20, 0.32);
  --wash: rgba(196, 133, 58, 0.08);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.25, 0.6, 0.2, 1);
  --pad: clamp(18px, 4vw, 48px);
  --max: 1120px;
  --section-y: clamp(64px, 11vh, 120px);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--foam);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-size: clamp(1.02rem, 1.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lb-open { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }

::selection { background: var(--amber); color: var(--foam); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--charcoal); color: var(--foam);
  font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: var(--pad); top: var(--pad); }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* ---------- type ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display {
  font-family: var(--f-display);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
}

.muted { color: var(--ink-soft); }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-settled,
.site-header.is-solid {
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__in {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 420;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--walnut);
  line-height: 1;
}
.wordmark span {
  display: block;
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.hero-on .site-header:not(.is-settled) .wordmark { color: var(--foam); }
.hero-on .site-header:not(.is-settled) .wordmark span { color: rgba(247, 243, 236, 0.72); }
.hero-on .site-header:not(.is-settled) .nav a { color: rgba(247, 243, 236, 0.88); }
.hero-on .site-header:not(.is-settled) .nav a[aria-current="page"],
.hero-on .site-header:not(.is-settled) .nav a:hover { color: var(--foam); }
.hero-on .site-header:not(.is-settled) .burger { color: var(--foam); }

.nav {
  display: none;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
}
.nav a[aria-current="page"] {
  color: var(--amber-deep);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--charcoal);
  cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--foam);
  padding: 1.5rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
}
.drawer nav {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.drawer a {
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 380;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.drawer a[aria-current="page"] { color: var(--amber-deep); }

@media (min-width: 860px) {
  .nav { display: flex; }
  .burger { display: none; }
  .drawer { display: none !important; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-solid {
  background: var(--walnut);
  color: var(--foam);
}
.btn-solid:hover { background: var(--amber); color: var(--foam); }
.btn-line {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line-strong);
}
.btn-line:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
}
.btn-line.on-dark {
  color: var(--foam);
  border-color: rgba(247, 243, 236, 0.55);
}
.btn-line.on-dark:hover {
  background: rgba(247, 243, 236, 0.1);
  border-color: var(--foam);
  color: var(--foam);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--foam);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
}
.hero__media video,
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.28) 0%, rgba(26, 23, 20, 0.15) 35%, rgba(26, 23, 20, 0.72) 100%);
  pointer-events: none;
}
.hero__copy {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 clamp(2.5rem, 8vh, 5rem);
}
.hero__brand {
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 11vw, 7.2rem);
  font-weight: 360;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--foam);
  margin-bottom: 0.85rem;
}
.hero__line {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 360;
  line-height: 1.25;
  max-width: 22ch;
  margin-bottom: 1.5rem;
  color: rgba(247, 243, 236, 0.92);
}
.hero .cta-row .btn-solid {
  background: var(--amber);
  color: var(--foam);
}
.hero .cta-row .btn-solid:hover {
  background: var(--foam);
  color: var(--walnut);
}

/* ---------- sections ---------- */

.section {
  padding: var(--section-y) 0;
}
.section--plaster { background: var(--plaster); }
.section--walnut {
  background: var(--walnut);
  color: var(--foam);
}
.section--walnut .muted,
.section--walnut .eyebrow { color: rgba(247, 243, 236, 0.68); }
.section--walnut .btn-line {
  color: var(--foam);
  border-color: rgba(247, 243, 236, 0.45);
}

.sec-head {
  display: grid;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
@media (min-width: 720px) {
  .sec-head {
    grid-template-columns: 1fr minmax(12rem, 0.55fr);
    align-items: end;
  }
}
.sec-head h2 {
  font-family: var(--f-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 16ch;
}

.page-hero {
  padding: calc(var(--header-h) + clamp(2.5rem, 6vh, 4rem)) 0 clamp(2rem, 5vh, 3rem);
}
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 360;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--walnut);
  max-width: 14ch;
  margin: 0.4rem 0 1rem;
}

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 820px) {
  .split { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .split--flip > :first-child { order: 2; }
}

.prose p + p { margin-top: 1rem; }
.prose { max-width: 38rem; color: var(--ink-soft); }

.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- hire packages ---------- */

.packages {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.package {
  display: grid;
  gap: 0.75rem 2rem;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .package {
    grid-template-columns: minmax(9rem, 0.35fr) 1fr auto;
    align-items: baseline;
  }
}
.package__name {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--walnut);
}
.package__price {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 380;
  color: var(--amber-deep);
  white-space: nowrap;
}
.package__price small {
  display: block;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.package p { color: var(--ink-soft); max-width: 36rem; }

.amenities {
  display: grid;
  gap: 0.65rem 2rem;
  list-style: none;
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .amenities { grid-template-columns: 1fr 1fr; }
}
.amenities li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.amenities li::before {
  content: "";
  display: inline-block;
  width: 0.45rem; height: 0.45rem;
  margin-right: 0.7rem;
  background: var(--amber);
  vertical-align: 0.15rem;
}

.media-pair {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .media-pair { grid-template-columns: 1.15fr 0.85fr; }
}
.media-pair img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- events ---------- */

.events {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.event {
  display: grid;
  gap: 0.5rem 2rem;
  padding: clamp(1.35rem, 3vw, 1.85rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .event {
    grid-template-columns: 7.5rem 1fr auto;
    align-items: start;
  }
}
.event__when {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  line-height: 1.45;
}
.event__title {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--walnut);
  margin-bottom: 0.35rem;
}
.event__meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.event__note { color: var(--ink-soft); max-width: 36rem; }
.event__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}
.gallery__item {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: var(--plaster);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-stagger].is-staggered .gallery__item {
  opacity: 1;
  transform: none;
}
[data-stagger].is-staggered .gallery__item:nth-child(1) { transition-delay: 0.02s; }
[data-stagger].is-staggered .gallery__item:nth-child(2) { transition-delay: 0.07s; }
[data-stagger].is-staggered .gallery__item:nth-child(3) { transition-delay: 0.12s; }
[data-stagger].is-staggered .gallery__item:nth-child(4) { transition-delay: 0.17s; }
[data-stagger].is-staggered .gallery__item:nth-child(5) { transition-delay: 0.22s; }
[data-stagger].is-staggered .gallery__item:nth-child(6) { transition-delay: 0.27s; }
[data-stagger].is-staggered .gallery__item:nth-child(7) { transition-delay: 0.32s; }
[data-stagger].is-staggered .gallery__item:nth-child(8) { transition-delay: 0.37s; }
[data-stagger].is-staggered .gallery__item:nth-child(9) { transition-delay: 0.42s; }
[data-stagger].is-staggered .gallery__item:nth-child(10) { transition-delay: 0.47s; }
[data-stagger].is-staggered .gallery__item:nth-child(11) { transition-delay: 0.52s; }

.gallery__item img,
.gallery__item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img,
.gallery__item:hover video { transform: scale(1.04); }
.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
@media (min-width: 720px) {
  .gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: auto;
  }
}
.gallery__badge {
  position: absolute;
  left: 0.7rem; bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foam);
  background: rgba(26, 23, 20, 0.55);
  padding: 0.35rem 0.55rem;
  pointer-events: none;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(26, 23, 20, 0.9);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox__stage {
  max-width: min(92vw, 1080px);
  max-height: 78vh;
}
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.lightbox__caption {
  margin-top: 0.85rem;
  color: rgba(247, 243, 236, 0.75);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--foam);
  font-size: 1.5rem;
  width: 48px; height: 48px;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close { top: 0.75rem; right: 0.75rem; font-size: 1.75rem; }
.lightbox__prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- form ---------- */

.form-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 860px) {
  .form-layout {
    grid-template-columns: minmax(14rem, 0.42fr) 1fr;
  }
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: #fffdf9;
  color: var(--charcoal);
  font: inherit;
  padding: 0.85rem 0.95rem;
  border-radius: 0;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--wash);
}
.field__err {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #9a3a22;
}
.field.is-bad input,
.field.is-bad textarea { border-color: #9a3a22; }
.field.is-bad .field__err { display: block; }

.form-success {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  background: var(--plaster);
  border-left: 3px solid var(--amber);
  color: var(--ink-soft);
}
.form-success strong { color: var(--walnut); }
.form-success a { color: var(--amber-deep); }

.contact-aside p + p { margin-top: 0.85rem; }
.contact-aside a { color: var(--amber-deep); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- teaser strips ---------- */

.teaser-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.teaser {
  display: grid;
  gap: 0.4rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
@media (min-width: 640px) {
  .teaser {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}
.teaser h3 {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: var(--walnut);
}
.teaser p { color: var(--ink-soft); max-width: 34rem; }
.teaser__go {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  white-space: nowrap;
}
.teaser:hover h3 { color: var(--amber-deep); }

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vh, 4rem) 0 2rem;
  background: var(--plaster);
}
.footer__grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
}
.footer__brand {
  font-family: var(--f-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--walnut);
  text-decoration: none;
}
.footer__grid p,
.footer__grid a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { color: var(--amber-deep); }
.footer__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 0.55rem;
}
.footer__base {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- reveals ---------- */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js-anim .reveal.d1 { transition-delay: 0.08s; }
.js-anim .reveal.d2 { transition-delay: 0.16s; }
.js-anim .reveal.d3 { transition-delay: 0.24s; }
.js-anim .hero-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-anim .hero-fade.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal,
  .js-anim .hero-fade,
  .gallery__item,
  .gallery__item img,
  .gallery__item video,
  .btn {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
