/* =====================================================================
   Chant House — site-wide stylesheet
   Typeface: Cormorant Garamond — Italian Renaissance serif,
             elegant tail terminals, high contrast strokes.
   ===================================================================== */

:root {
  --cream: #ede3d2;
  --cream-soft: #e5d9c3;
  --cream-dim: #c9bfac;
  --cream-border: rgba(237, 227, 210, 0.7);
  --cream-border-soft: rgba(237, 227, 210, 0.22);
  --ink: #1a130c;
  --ink-2: #221913;
  --ink-3: #2c2218;

  --gutter-x: clamp(20px, 4vw, 56px);
  --gutter-y: clamp(20px, 3vw, 36px);

  --font: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --font-ui: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;

  --radius-pill: 999px;
  --radius-tile: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Site nav ---------- */
.site-nav {
  position: absolute;
  top: var(--gutter-y);
  left: var(--gutter-x);
  right: var(--gutter-x);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.monogram {
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.monogram-img {
  display: block;
  height: 34px;
  width: auto;
  pointer-events: none;
}

.nav-links {
  display: flex; align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-links ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(20px, 2.6vw, 36px);
}
.nav-links a {
  color: var(--cream); text-decoration: none;
  font-family: var(--font);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: opacity 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { opacity: 0.7; }
.nav-links a.is-active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--cream);
}

.menu-disc {
  width: 34px; height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--cream-border);
  background: transparent; color: var(--cream);
  font-family: var(--font);
  font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.menu-disc:hover { background: var(--cream); color: var(--ink); }

/* ---------- Hero (subpages, looping video) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero--short { height: 78vh; min-height: 540px; }

.hero__bg, .hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero__shade {
  position: absolute; left: 0; right: 0;
  pointer-events: none; z-index: 1;
}
.hero__shade--top {
  top: 0; height: 28%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.36), rgba(0,0,0,0));
}
.hero__shade--bottom {
  bottom: 0; height: 32%;
  background: linear-gradient(to top, rgba(0,0,0,0.36), rgba(0,0,0,0));
}
.hero__vignette {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  background: radial-gradient(120% 80% at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 100%);
}

/* Inner-page hero title */
.hero__title {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter-x);
  font-family: var(--font);
  font-weight: 500;
  color: var(--cream); line-height: 0.92;
  letter-spacing: -0.018em;
  font-size: clamp(64px, 12vw, 184px);
  pointer-events: none;
  margin: 0;
}
.hero__eyebrow {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--cream);
  opacity: 0.85; margin-bottom: 18px;
}

.hero__tagline {
  position: absolute;
  right: calc(var(--gutter-x) - 6px);
  top: 50%; z-index: 3; margin: 0;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--cream);
  opacity: 0.92;
}

.hero__bottom {
  position: absolute;
  bottom: var(--gutter-y);
  left: var(--gutter-x); right: var(--gutter-x);
  z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.hero__index {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px; letter-spacing: 0.28em;
  color: var(--cream); opacity: 0.85;
  text-transform: uppercase;
}

/* ---------- HORIZONTAL home (lock vertical scroll, scroll-side only) ---------- */
body.home-static {
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background: var(--ink);
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ink);
}
.bg-stage video,
.bg-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bg-stage .hero__shade,
.bg-stage .hero__vignette {
  z-index: 1;
}

/* The horizontal rail */
.hero-rail {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* hide scrollbars (Chrome/Edge/Safari/Firefox/IE) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-rail::-webkit-scrollbar { display: none; }

.hero-strip {
  display: flex;
  flex-direction: row;
  width: 400vw;
  height: 100vh;
  will-change: transform;
}

.panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  padding: 0 var(--gutter-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* entrance animation default state */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.panel.is-active,
.panel.is-in-view {
  opacity: 1;
  transform: translateX(0);
}
.panel.is-active.panel--hero { transition-delay: 0.1s; }

/* Progress + hint shown fixed on the home page */
.hero-progress--fixed {
  position: fixed;
  bottom: var(--gutter-y);
  left: var(--gutter-x);
  z-index: 11;
  display: flex;
  gap: 10px;
  pointer-events: none;
}
.hero-hint--fixed {
  position: fixed;
  bottom: var(--gutter-y);
  right: var(--gutter-x);
  z-index: 11;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px; letter-spacing: 0.36em;
  color: var(--cream); opacity: 0.55;
  text-transform: uppercase;
  pointer-events: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-hint--fixed::before {
  content: ""; width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}

.site-nav--fixed {
  position: fixed;
  top: var(--gutter-y);
  left: var(--gutter-x);
  right: var(--gutter-x);
  z-index: 12;
}

/* mode flag — when in 'intro', dim the panels slightly so the video reads */
body.home-static.is-intro .panel:not(.panel--hero) { opacity: 0; transform: translateX(40px); }
body.home-static.is-intro .panel--hero { opacity: 1; transform: translateX(0); }
.panel__eyebrow {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--cream);
  opacity: 0.7;
  margin: 0 0 28px;
}
.panel__title {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 0.9;
  color: var(--cream);
  margin: 0 0 32px;
  max-width: 14ch;
}
.panel--hero .panel__title {
  font-size: clamp(96px, 19vw, 296px);
  line-height: 0.86;
  letter-spacing: -0.022em;
  max-width: none;
}
.panel--hero .panel__title .word { display: block; }
.panel--hero .panel__title .word--2 { margin-left: 6vw; }
.panel--hero .panel__sub {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px; letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--cream); opacity: 0.85;
  margin: 12px 0 0 2vw;
}
.panel:not(.panel--hero) .panel__title {
  font-size: clamp(56px, 9vw, 132px);
}
.panel__lede {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--cream-soft);
  max-width: 46ch;
  margin: 0 0 40px;
}
.panel__cta {
  display: inline-flex;
}

/* progress dot used inside .hero-progress--fixed */
.dot {
  width: 28px; height: 1px;
  background: var(--cream);
  opacity: 0.25;
  transition: opacity 0.4s var(--ease);
}
.dot.is-active { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: var(--cream); text-decoration: none;
  font-family: var(--font);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}
.btn--solid:hover {
  background: transparent; color: var(--cream); border-color: var(--cream-border);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 11vw, 160px) var(--gutter-x);
  position: relative;
}
.section--tight { padding: clamp(56px, 7vw, 96px) var(--gutter-x); }

.section__label {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--cream-dim);
  margin: 0 0 24px;
}
.section__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1; letter-spacing: -0.018em;
  color: var(--cream); margin: 0 0 32px;
}
.section__lede {
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55; color: var(--cream-soft);
  margin: 0 0 40px;
}

.divider {
  height: 1px; width: 100%;
  background: var(--cream-border-soft);
}

/* ---------- Manifesto strip ---------- */
.manifesto {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(72px, 11vw, 160px) var(--gutter-x);
}
.manifesto__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05; letter-spacing: -0.018em;
  margin: 0; color: var(--cream);
}
.manifesto__body {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7; color: var(--cream-soft);
}
.manifesto__body p + p { margin-top: 1.1em; }

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

/* Small headline used inside columns / process steps / FAQ */
.card__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 14px;
}

/* ---------- Project tile grid ---------- */
.collection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.collection--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .collection, .collection--three { grid-template-columns: 1fr; }
}

/* Tile: anchor, full-card link, landscape image, hover expand */
.tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--ink-2);
  border: 1px solid var(--cream-border-soft);
  border-radius: var(--radius-tile);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--cream-border);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.45);
}

.tile__media {
  aspect-ratio: 3 / 2;
  width: 100%;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.tile:hover .tile__media img {
  transform: scale(1.06);
  filter: brightness(1.04);
}

.tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5) 100%);
  opacity: 0.6;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.tile:hover .tile__overlay { opacity: 0.85; }

.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 26px 24px;
  z-index: 2;
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px;
}
.tile__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.014em;
  line-height: 1.05;
  margin: 0;
  color: var(--cream);
}
.tile__suburb {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.78;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease);
}
.tile:hover .tile__suburb { opacity: 1; }

.tile__cta {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(26, 19, 12, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--cream-border-soft);
  color: var(--cream);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.tile:hover .tile__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 56px);
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.quote {
  border-top: 1px solid var(--cream-border-soft);
  padding-top: 32px;
}
.quote__mark {
  font-family: var(--font);
  font-weight: 500;
  font-size: 56px; line-height: 0.5;
  color: var(--cream); opacity: 0.55;
  margin-bottom: 18px;
}
.quote__body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45; letter-spacing: -0.01em;
  color: var(--cream); margin: 0 0 24px;
}
.quote__cite {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream-dim);
  font-style: normal;
}

/* ---------- Two-column feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.feature__media {
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
  border: 1px solid var(--cream-border-soft);
  position: relative; overflow: hidden;
  border-radius: var(--radius-tile);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

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

/* ---------- Forms ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  max-width: 720px;
}
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row--full { grid-column: 1 / -1; }
.form__label {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream-dim);
}
.form__input,
.form__textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--cream-border-soft);
  color: var(--cream);
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__input:focus,
.form__textarea:focus { border-bottom-color: var(--cream); }
.form__input::placeholder,
.form__textarea::placeholder { color: var(--cream-dim); opacity: 0.7; }

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

/* ---------- Contact panel ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-panel dl {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 16px 28px; margin: 0;
}
.contact-panel dt {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream-dim);
}
.contact-panel dd {
  margin: 0; font-size: 16px; color: var(--cream); line-height: 1.5;
}
@media (max-width: 900px) { .contact-panel { grid-template-columns: 1fr; } }

/* ---------- Journal entries ---------- */
.journal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none; padding: 0; margin: 0;
}
.journal-item {
  display: grid;
  grid-template-columns: 80px 2fr 3fr 1fr;
  gap: clamp(16px, 2.5vw, 40px);
  padding: clamp(28px, 3vw, 44px) 0;
  border-top: 1px solid var(--cream-border-soft);
  align-items: baseline;
  text-decoration: none; color: inherit;
  transition: opacity 0.2s var(--ease);
}
.journal-item:hover { opacity: 0.75; }
.journal-item:last-child { border-bottom: 1px solid var(--cream-border-soft); }
.journal-item__num,
.journal-item__date,
.journal-item__cat {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream-dim);
}
.journal-item__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.014em; line-height: 1.1;
  color: var(--cream); margin: 0;
}
@media (max-width: 800px) {
  .journal-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--cream-border-soft);
  padding: clamp(48px, 6vw, 88px) var(--gutter-x) clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  background: var(--ink);
  position: relative;
  z-index: 5;
}
.site-footer h4 {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream-dim);
  margin: 0 0 18px;
}
.site-footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer a {
  color: var(--cream); text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s var(--ease);
}
.site-footer a:hover { opacity: 0.7; }
.site-footer__brand p {
  font-size: 14px; line-height: 1.6;
  color: var(--cream-soft);
  margin: 0 0 20px; max-width: 36ch;
}
.site-footer__monogram-img {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 18px;
}
.site-footer__bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--cream-border-soft);
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream-dim);
  gap: 16px; flex-wrap: wrap;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 34px; height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--cream-border-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.socials a:hover { background: var(--cream); color: var(--ink); }
.socials svg { width: 14px; height: 14px; }

@media (max-width: 800px) { .site-footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__tagline { display: none; }
}
@media (max-width: 768px) {
  .panel--hero .panel__title {
    font-size: clamp(72px, 22vw, 144px);
  }
  .panel--hero .panel__title .word--2 { margin-left: 0; }
  .nav-links ul { display: none; }
  .scrubber { height: 100vh; }
  .panel.is-active ~ .panel { display: none; }
  /* Show only the hero panel on mobile (no scrub) */
  .panel { opacity: 0; }
  .panel--hero { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .hero__index { display: none; }
  .hero__bottom { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .scrubber { height: 100vh; }
  .panel { transition: none; }
  .tile, .tile__media img, .tile__overlay { transition: none !important; }
}
