:root {
  --bg: #f4f4f2;
  --dark: #1b1b1d;
  --dark-2: #141416;
  --ink: #0f0f11;
  --ink-mute: #6d6d72;
  --line: rgba(15, 15, 17, 0.1);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1200px;
  --font-serif: "Noto Serif Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s var(--ease);
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor.is-hover {
  width: 60px;
  height: 60px;
  background: #fff;
}

@media (hover: none) {
  .cursor {
    display: none;
  }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.4rem;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.nav__burger {
  width: 52px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #2a2a2e;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 0;
  transition: background 0.3s var(--ease);
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 2.5px 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav__burger:hover {
  background: #3a3a40;
}

body.menu-open .nav__burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.menu-open .nav__burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  background: var(--dark-2);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}

body.menu-open .menu {
  clip-path: inset(0 0 0 0);
}

.menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.menu__links a {
  font-family: var(--font-serif);
  color: #fff;
  text-decoration: none;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}

body.menu-open .menu__links a {
  opacity: 1;
  transform: none;
}

body.menu-open .menu__links a:nth-child(1) {
  transition-delay: 0.2s;
}

body.menu-open .menu__links a:nth-child(2) {
  transition-delay: 0.3s;
}

body.menu-open .menu__links a:nth-child(3) {
  transition-delay: 0.4s;
}

.menu__links a:hover {
  color: #c9a24b;
}

.menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #141416;
  background: #f4f4f2;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    background 0.3s var(--ease);
}

body.menu-open .menu__cta {
  opacity: 1;
  transform: none;
  transition-delay: 0.5s;
}

.menu__cta:hover {
  background: #c9a24b;
  color: #141416;
}

.menu__foot {
  position: absolute;
  bottom: 2rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
/* Sticky "card stack": the hero pins while the content below slides up over it */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  /* excludes mobile browser chrome so content isn't hidden behind it */
  z-index: 0;
  background: var(--bg);
}

.hero__stage {
  position: relative;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
  transform-origin: center 40%;
  will-change: transform;
}

/* dim overlay that fades in as the next section covers the hero */
.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #0b0b0d;
  opacity: 0;
  pointer-events: none;
}

/* the stack of everything after the hero — opaque + above the hero,
   so it visually slides over the pinned hero as you scroll */
.after-hero {
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.28);
}

/* crossfading slideshow */
.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

/* retracting cover panels (the centre-out "blinds" reveal) */
.hero__cover {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
  pointer-events: none;
}

.hero__cover-col {
  position: relative;
  flex: 1 1 0;
  height: 100%;
}

.hero__cover-col::before,
.hero__cover-col::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  height: 50%;
  background: var(--bg);
  transform: scaleY(1);
  will-change: transform;
}

.hero__cover-col::before {
  top: 0;
  transform-origin: top;
  transition: transform var(--dur-t, 1s) var(--ease-in-out) var(--delay-t, 0s);
}

.hero__cover-col::after {
  bottom: 0;
  transform-origin: bottom;
  transition: transform var(--dur-b, 1s) var(--ease-in-out) var(--delay-b, 0s);
}

.hero.go .hero__cover-col::before,
.hero.go .hero__cover-col::after {
  transform: scaleY(0);
}

/* title + CTAs wrapper */
.hero__foot {
  position: absolute;
  left: 50%;
  bottom: 2vh;
  transform: translateX(-50%);
  width: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero__title {
  text-align: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 14vw, 15rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.hero__title span {
  display: block;
  transform: translateY(110%);
}

.hero.go .hero__title span {
  animation: riseUp 1.1s var(--ease) 1.9s forwards;
}

@keyframes riseUp {
  to {
    transform: translateY(0);
  }
}

/* hero CTAs */
.hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 2.35s, transform 0.9s var(--ease) 2.35s;
}

.hero.go .hero__cta {
  opacity: 1;
  transform: none;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero__btn--primary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #fff;
}

.hero__btn--primary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.hero__btn--secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.hero__btn--secondary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero__btn:active {
  transform: scale(0.97);
}

/* hero marquee strip — now the leading edge of the sliding "card" */
.marquee--hero {
  padding-block: 0.9rem;
  background: var(--bg);
}

.marquee--hero .marquee__track {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  gap: 2rem;
  color: var(--ink);
}

/* ---------- Intro ---------- */
.intro {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.intro__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.intro__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-mute);
}

.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line>span {
  display: block;
  transform: translateY(110%);
}

.intro__copy {
  max-width: 26ch;
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 0.6rem;
}

/* ---------- Gallery ---------- */
.gallery {
  padding-bottom: 7rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.gallery__col {
  display: grid;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

.gallery__col--mid {
  transform: translateY(-2.6rem);
  /* recede behind both neighbouring columns so the feature image's overflow
     tucks in behind them instead of floating on top */
  z-index: 0;
}

.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  will-change: transform;
}

.ph img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.ph:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* blended centre-piece — the couple photo melts into the page background
   while the eight grayscale tiles sit around it */
.ph--feature {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  aspect-ratio: 3 / 4;
  z-index: 2;
}

.ph--feature img {
  inset: -14% -12%;
  width: 124%;
  height: 128%;
  filter: none;
  /* keep it in colour so it reads as the focal point */
  /* long, gradual multi-stop feather — small core, gentle ramp all the way
     to transparent so there is no visible oval edge; it just dissolves */
  -webkit-mask-image: radial-gradient(ellipse 66% 70% at 50% 44%,
      #000 0%,
      rgba(0, 0, 0, 0.92) 24%,
      rgba(0, 0, 0, 0.62) 42%,
      rgba(0, 0, 0, 0.3) 58%,
      rgba(0, 0, 0, 0.1) 70%,
      transparent 80%);
  mask-image: radial-gradient(ellipse 66% 70% at 50% 44%,
      #000 0%,
      rgba(0, 0, 0, 0.92) 24%,
      rgba(0, 0, 0, 0.62) 42%,
      rgba(0, 0, 0, 0.3) 58%,
      rgba(0, 0, 0, 0.1) 70%,
      transparent 80%);
}

.ph--feature:hover img {
  filter: none;
  transform: none;
}

/* clickable gallery tiles */
[data-gallery-open] {
  cursor: pointer;
}

/* per-tile download button, top-right corner */
.ph__download {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.88;
  text-decoration: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s var(--ease);
}
.ph__download:hover {
  opacity: 1;
  background: var(--ink);
  color: #fff;
  transform: scale(1.08);
}

/* ---------- Lightbox / carousel ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 8, 9, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__track {
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  /* let our JS own horizontal drags; still allow vertical scroll gestures to pass through */
}

.lightbox__track::-webkit-scrollbar {
  display: none;
}

.lightbox__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: 5rem 5vw 6rem;
  box-sizing: border-box;
}

.lightbox__slide img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox__download:hover {
  background: var(--ink);
  color: #fff;
}

.lightbox__nav {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lightbox__arrow {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

@media (max-width: 620px) {
  .lightbox__slide {
    padding: 4.5rem 5vw 7.5rem;
    gap: 1rem;
  }

  .lightbox__slide img {
    max-height: 62vh;
  }
}

/* ---------- Tribute ---------- */
.tribute {
  padding-block: 3rem 7rem;
}

.tribute__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 3.5rem;
}

.tribute__row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: center;
}

.ph--tribute {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

.ph--tribute img {
  filter: none;
}

.tribute__quote p {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 44ch;
}

/* ---------- Landscapes: full-bleed sticky stacked cards ---------- */
.stack {
  position: relative;
  background: #0c0c0e;
}

.stack__card {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  /* the "recede" is scroll-driven from JS, but a whisper of transition
     smooths any per-frame jitter */
  transition: transform 0.08s linear, opacity 0.08s linear,
    filter 0.08s linear;
}

.stack__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: 1rem 2rem;
}

.marquee__track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  width: max-content;
  font-weight: 600;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: -0.03em;
  color: #a9a9a7;
  will-change: transform;
}

/* ---------- Well wishes ---------- */
.wishes {
  position: relative;
  padding-block: 5rem;
  overflow: hidden;
  background: var(--dark);
}

.wishes__bg {
  position: absolute;
  inset: -8% 0;
  background-image: url("assets/daddy-wide2.jpg");
  background-size: cover;
  background-position: center 15%;
  z-index: 0;
}

.wishes__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(15, 15, 17, 0.88) 0%,
      rgba(15, 15, 17, 0.45) 55%,
      rgba(15, 15, 17, 0.25) 100%);
}

.wishes__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.wishes__intro h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 12ch;
}

/* Form card */
.wellcard {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem;
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.wellcard__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  background: #f6f6f4;
  border: 1px solid #e4e4e1;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field__filebtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1.5px dashed #d8b06a;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 0.85rem !important;
  color: #a2793a !important;
  cursor: pointer;
  margin-bottom: 0 !important;
  transition: background 0.3s var(--ease);
}

.field__filebtn:hover {
  background: #fdf6ea;
}

.field__filebtn.has-file {
  border-style: solid;
  background: #fdf6ea;
}

.wellcard__btn {
  width: 100%;
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.wellcard__btn:hover {
  background: #333;
}

.wellcard__btn:active {
  transform: scale(0.98);
}

.wellcard__btn--secondary {
  display: block;
  margin-top: 0.7rem;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.wellcard__btn--secondary:hover {
  background: #f6f6f4;
  border-color: var(--ink);
}

.wellcard__done {
  margin-top: 0.9rem;
  color: #1f8f4d;
  font-size: 0.85rem;
  text-align: center;
}

.wellcard__done--error {
  color: #c22b2b;
}

/* ---------- Footer ---------- */
.footer {
  background: #000;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 1.5rem;
  overflow: hidden;
}

.footer__big {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

/* ---------- Reveal animation states ---------- */
[data-reveal],
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in,
[data-fade].is-in {
  opacity: 1;
  transform: none;
}

/* ================= Testimonies page ================= */
.tbody {
  background: var(--bg);
}

.tnav__link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.tnav__link:hover {
  background: var(--ink);
  color: #fff;
}

.tpage {
  padding-top: 9rem;
}

.tpage__head {
  text-align: center;
  padding-bottom: 3.5rem;
}

.tpage__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}

.tpage__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tpage__sub {
  margin: 1.2rem auto 0;
  max-width: 42ch;
  color: var(--ink-mute);
  font-size: 1.1rem;
  line-height: 1.6;
}

.tpage__cta {
  display: inline-block;
  margin-top: 2rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  transition: background 0.3s var(--ease);
}

.tpage__cta:hover {
  background: var(--accent, #1a5cff);
}

/* masonry-style columns */
.testimonies {
  padding-bottom: 7rem;
}

.testimonies__grid {
  columns: 3 300px;
  column-gap: 1.4rem;
}

.tcard {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.tcard.is-in {
  opacity: 1;
  transform: none;
}

.tcard__msg {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.tcard__by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.tcard__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
}

.tcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tcard__name {
  font-weight: 600;
  color: var(--ink);
}

.tcard__date {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.testimonies__empty {
  text-align: center;
  padding: 4rem 0 6rem;
  color: var(--ink-mute);
}

.testimonies__empty p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonies__empty a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

@media (max-width: 620px) {
  .testimonies__grid {
    columns: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .tribute__row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ph--tribute {
    max-width: 300px;
  }

  .wishes__inner {
    grid-template-columns: 1fr;
  }

  .wishes__intro {
    order: -1;
  }

  .wishes__bg {
    background-position: center 10%;
  }
}

@media (max-width: 560px) {
  .gallery__grid {
    gap: 0.8rem;
  }

  .gallery__col {
    gap: 0.8rem;
  }

  .gallery__col--mid {
    transform: translateY(-1.4rem);
  }

  /* lift the title/CTAs clear of mobile browser bottom bars */
  .hero__foot {
    bottom: calc(5vh + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-line>span,
  .hero__title span {
    transform: none;
  }

  .hero__cover-col::before,
  .hero__cover-col::after {
    transform: scaleY(0);
  }

  .marquee--hero {
    opacity: 1;
  }

  .hero__cta {
    opacity: 1;
    transform: none;
  }

  [data-reveal],
  [data-fade] {
    opacity: 1;
    transform: none;
  }

  /* reduced motion: show the landscapes as a simple stacked list */
  .stack__card {
    position: relative;
    height: auto;
    transform: none;
    opacity: 1;
    filter: none;
  }

  .stack__card img {
    height: auto;
  }
}