/* ── HOME 2 (dark editorial landing, page-home-2.php) ───────────
   Only loaded on that template. Display type is Italiana in caps;
   italics fall back to Cormorant (Italiana has no italic). */

body.page-template-page-home-2 {
  background: var(--ink);
  color: var(--white);
}

.h2 {
  --h2-line: rgba(252, 249, 243, 0.85);
  --h2-dim: rgba(252, 249, 243, 0.6);
  overflow-x: clip;
}

/* The Home 2 sections are dark wherever they appear (the main homepage is ivory). */
.h2-section {
  --h2-line: rgba(252, 249, 243, 0.85);
  --h2-dim: rgba(252, 249, 243, 0.6);
  background: var(--ink);
  color: var(--white);
  overflow-x: clip;
}

/* ── Dark nav, hidden over the hero, revealed once past it ───── */
body.page-template-page-home-2 #site-nav {
  position: fixed;
  left: 0;
  right: 0;
  transform: translateY(-100%);
}

body.page-template-page-home-2.h2-past-hero #site-nav,
body.page-template-page-home-2.h2-past-hero #site-nav.nav-hidden {
  transform: none;
}

/* ── Shared bits ─────────────────────────────────────────────── */
.h2-label {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.195em;
  text-transform: uppercase;
  color: var(--h2-line);
  margin: 0;
}

.h2-btn {
  display: inline-block;
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 12px;
  letter-spacing: 0.165em;
  color: var(--white);
  border: 1px solid rgba(252, 249, 243, 0.7);
  padding: 13px 30px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.h2-btn:hover {
  background: var(--white);
  color: var(--ink);
}

/* Was a filled button; now matches the outline style (text in a thin frame). */
.h2-btn--solid {
  background: none;
}

/* ── HERO ────────────────────────────────────────────────────── */
.h2-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.h2-hero-imgs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.h2-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.h2-hero-img--second {
  filter: grayscale(1);
}

.h2-hero-imgs::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 13, 0.25) 0%, rgba(15, 15, 13, 0.45) 55%, rgba(15, 15, 13, 0.7) 100%);
}

.h2-hero-text {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 1040px;
}

.h2-hero-title {
  font-family: var(--f-italiana);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 22px auto 36px;
  text-wrap: balance;
}

.h2-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Two equal, smaller buttons (matches Home 1) */
.h2-hero-btns .h2-btn {
  width: 176px;
  padding: 11px 0;
  font-size: 12px;
  text-align: center;
}

.h2-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.225em;
  color: var(--h2-dim);
  z-index: 1;
}

/* ── NIGHTS ──────────────────────────────────────────────────── */
.h2-nights {
  position: relative;
  padding-bottom: 12vh;
}

.h2-nights-label {
  color: var(--green-lt);
  margin-bottom: 26px;
}

.h2-nights-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* title sits high, photos rise up under it */
  padding-top: 15vh;
  text-align: center;
  z-index: 2;
  pointer-events: none;
    /* Photos fade out just below the top edge (under the ribbon/nav), then pass behind the title */
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 4%, rgba(15, 15, 13, 0) 20%);
}

.h2-nights-title {
  font-family: var(--f-italiana);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--white);
  text-align: center;
  max-width: 11em;
  margin: 0 auto;
  padding: 0 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.h2-nights-title em {
  font-family: var(--f-cg);
  font-style: italic;
  font-weight: 400;
}

.h2-wall {
  position: relative;
  z-index: 1;
  margin-top: -45vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 28px);
  padding: 0 clamp(12px, 3vw, 40px);
}

.h2-wall-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 28px);
}

.h2-wall-col:nth-child(2) {
  margin-top: 18vh;
}

.h2-wall-col:nth-child(3) {
  margin-top: 6vh;
}

.h2-wall img {
  width: 100%;
  display: block;
}

/* ── STORIES ─────────────────────────────────────────────────── */
.h2-stories {
  position: relative;
  padding: 2vh 0 4vh;
  overflow: hidden;
}

.h2-marquee {
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
}

.h2-marquee-track {
  display: inline-flex;
  animation: h2-marquee 60s linear infinite;
}

.h2-marquee--reverse .h2-marquee-track {
  animation-direction: reverse;
}

.h2-marquee span {
  font-family: var(--f-italiana);
  text-transform: uppercase;
  font-size: clamp(64px, 10vw, 150px);
  letter-spacing: 0.02em;
  color: var(--oxblood);
  opacity: 0.85;
  padding-right: 0.5em;
}

@keyframes h2-marquee {
  to { transform: translateX(-50%); }
}

.h2-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
  max-width: 1240px;
  margin: -3.2vw auto;
  padding: 0 24px;
}

.h2-card {
  display: block;
  background: var(--ink);
  border: 1px solid var(--h2-line);
  padding: 20px 20px 26px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.35s ease, box-shadow 0.45s ease;
}

/* Hover: the card lifts and grows a touch, and its frame brightens */
@media (hover: hover) {
  .h2-card:hover,
  .h2-card:focus-visible {
    transform: translateY(-8px) scale(1.025);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
    z-index: 2;
  }
}

.h2-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1c1c1a;
}

.h2-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.h2-card-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 18px;
  color: var(--h2-dim);
}

/* Card for a gallery that isn't ready: not a link, with a note over the photo */
.h2-card--soon { cursor: default; }
.h2-card--soon .h2-card-img img { filter: saturate(0.85); }
.h2-card-wip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 16px 18px;
  text-align: center;
  font-family: var(--f-sans);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.195em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 10, 8, 0.78), rgba(10, 10, 8, 0));
}

/* Three words fade in over the photo on hover */
.h2-card-words {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: pre-line;
  text-align: center;
  font-family: var(--f-italiana);
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(15, 15, 13, 0.62);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.h2-card:hover .h2-card-words,
.h2-card:focus-visible .h2-card-words {
  opacity: 1;
}

.h2-card:hover .h2-card-img img {
  transform: scale(1.04);
}

.h2-card-names {
  font-family: var(--f-italiana);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.2;
  /* Two lines of room, so the smaller text lines up across every card */
  min-height: 2.4em;
  margin: 20px 0 10px;
}

.h2-card-meta {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--h2-dim);
  margin: 0;
}

/* ── SCRAPBOOK ───────────────────────────────────────────────── */
.h2-scrap {
  position: relative;
  height: 110vw; /* sized off the width (like the photos) so an arrangement looks the same on any window */
}

.h2-scrap-img {
  position: absolute;
  display: block;
  height: auto;
  will-change: transform;
}

.h2-scrap-text {
  position: sticky; /* stays centred while the photos drift past */
  top: 0;
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  z-index: 2;
  pointer-events: none;
  padding: 0 24px;
}

.h2-typed {
  font-family: var(--f-italiana);
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 44px); /* half the original size */
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0;
  min-height: 1.05em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.h2-typed--small {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 15px;
  letter-spacing: 0.225em;
  text-shadow: none;
}

/* "Your" in the About typer: Jost italic caps in the signature green */
.h2-typed-text.is-em,
.h2-typed-prefix.is-em {
  font-style: italic;
  color: var(--green-lt);
}

.h2-typed-prefix {
  white-space: pre;
}

.h2-caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 0.08em;
  background: currentColor;
  vertical-align: -0.05em;
  animation: h2-blink 1s steps(1) infinite;
}

@keyframes h2-blink {
  50% { opacity: 0; }
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.h2-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--section-pad) 40px;
}

.h2-about-name {
  font-family: var(--f-italiana);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 18px;
}

.h2-about-line {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--h2-line);
  margin: 26px 0 30px;
}

.h2-about-img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  justify-self: end;
  display: block;
}

/* ── CLOSING CTA ─────────────────────────────────────────────── */
.h2-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6vw;
  align-items: end;
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--section-pad) 40px calc(var(--section-pad) + 20px);
  border-top: 1px solid rgba(252, 249, 243, 0.12);
}

.h2-cta-title {
  font-family: var(--f-italiana);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0;
}

.h2-cta-side p {
  font-family: var(--f-cg);
  font-size: 20px;
  line-height: 1.6;
  color: var(--h2-line);
  margin: 0 0 24px;
}

/* ── Phones / tablets ────────────────────────────────────────── */
@media (max-width: 860px) {
  .h2-cards {
    grid-template-columns: repeat(2, 1fr);
    margin: -6vw auto;
  }

  .h2-about,
  .h2-cta {
    grid-template-columns: 1fr;
    padding-left: 22px;
    padding-right: 22px;
  }

  .h2-about-img {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .h2-hero-imgs {
    grid-template-columns: 1fr;
  }

  .h2-hero-img--second {
    display: none;
  }

  .h2-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .h2-wall-col:nth-child(3) {
    display: none;
  }

  /* Story cards: one swipeable row, overlapping the marquee lines only slightly.
     The frame goes 50% see-through so the scrolling text shows behind it. */
  .h2-cards {
    display: flex;
    gap: 14px;
    max-width: none;
    margin: -14px 0;
    padding: 0 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .h2-cards::-webkit-scrollbar {
    display: none;
  }

  .h2-card {
    flex: 0 0 76vw;
    scroll-snap-align: start;
    background: rgba(15, 15, 13, 0.5);
    padding: 14px 14px 20px;
  }

  .h2-card-names {
    min-height: 0;
  }

  .h2-card-words {
    opacity: 1;
    background: none;
    font-size: 0;
  }

  /* Scrapbook on phones: masonry of photos at their own aspect ratios, two
     full-width (Kayla & Daniel, B&W veil). Text stays sticky mid-screen while
     photos float past; columns drift at opposite speeds (--m-speed, home2.js). */
  .h2-scrap {
    height: 462vw;
  }

  .h2-scrap-img {
    --m-speed: 0;
  }

  .h2-scrap-text .h2-typed,
  .h2-scrap-text .h2-label {
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  }

  .h2-scrap-img:nth-of-type(1) { left: 52vw !important; top: 46vw !important; width: 40vw !important; --m-speed: 0.035; }

  .h2-scrap-img:nth-of-type(2) { left: 4vw !important; top: 212vw !important; width: 52vw !important; --m-speed: -0.035; }

  .h2-scrap-img:nth-of-type(3) { left: 0vw !important; top: 135vw !important; width: 100vw !important; --m-speed: 0; }

  .h2-scrap-img:nth-of-type(4) { left: 4vw !important; top: 0vw !important; width: 44vw !important; --m-speed: -0.035; }

  .h2-scrap-img:nth-of-type(5) { left: 0vw !important; top: 318vw !important; width: 100vw !important; --m-speed: 0; }

  .h2-scrap-img:nth-of-type(6) { left: 60vw !important; top: 220vw !important; width: 36vw !important; --m-speed: 0.035; }

  .h2-scrap-img:nth-of-type(7) { left: 26vw !important; top: 382vw !important; width: 48vw !important; --m-speed: 0; }

  .h2-scrap-img:nth-of-type(8) { left: 6vw !important; top: 252vw !important; width: 42vw !important; --m-speed: -0.035; }

  .h2-scrap-img:nth-of-type(9) { left: 8vw !important; top: 74vw !important; width: 38vw !important; --m-speed: -0.035; }

  .h2-scrap-img:nth-of-type(10) { left: 52vw !important; top: 10vw !important; width: 44vw !important; --m-speed: 0.035; }

  .h2-scrap-img:nth-of-type(11) { left: 52vw !important; top: 272vw !important; width: 44vw !important; --m-speed: 0.035; }
}
