/* ===== Local fonts ===== */
@font-face {
  font-family: 'ThirdRail';
  src: url('Third-Rail-copy.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ===== Design tokens ===== */
:root {
  --green-dark: #49284D;
  --green: #2f7a3e;
  --green-bright: #4caf2e;
  --green-lime: #6dd13f;
  --red: #d83a2f;
  --yellow: #f2b91c;
  --pink: #f48fb1;
  --cream: #f4f1ea;
  --ink: #1a1a1a;
  --white: #ffffff;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  text-transform: capitalize;
  overflow-x: hidden;
}
/* Exempt elements that should NOT be auto-capitalized */
input, textarea, select,
input::placeholder, textarea::placeholder,
.eyebrow, .marquee-track span,
.footer-bottom p,
.unit-price span,
.loc-card li { text-transform: none; }

/* ===== Content capped at 1440px, color bands stay full-width =====
   Each section spans the full viewport (so its background color fills
   edge-to-edge), but horizontal padding grows on wide screens to keep
   the actual content centered within a 1440px column. */
.nav,
.hero,
.colors,
.mission {
  --gutter: max(40px, (100% - 1440px) / 2);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3 {
  font-family: 'Stack', Georgia, serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.green { color: var(--green-bright); }

/* ===== Announcement bar ===== */
.announce {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px;
}

/* ===== Nav ===== */
.nav {
  background: transparent;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  padding-top: 18px;
  padding-bottom: 18px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: transparent;
}
.nav-links { display: flex; gap: 26px; align-items: center; padding-bottom: 40px; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; }
.logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #49284d;
  position: relative;
  width: 180px;
  height: 180px;
  margin-top: -40px;
  align-self: flex-start;
  clip-path: url(#logoClip);
  transform-origin: top center;     /* shrink toward the top edge */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Scrolled: badge + logo shrink together (one transform scales both) */
.nav.scrolled .logo { transform: scale(0.72); }
.logo-img {
  height: 80px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}
/* Scroll-snapped logo sequence: 3 SVGs stack; the active one slides up
   into place + scales to full, the others fade/shift out. */
.logo-seq {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  z-index: 1;
}
.logo-seq__img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 80px;
  width: auto;
  /* source SVGs are plum like the badge, so render white */
  filter: brightness(0) invert(1);
  /* default = "below + small + hidden" resting state */
  transform: translate(-50%, -50%) translateY(16px) scale(0.82);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.logo-seq__img.is-active {
  transform: translate(-50%, -50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
/* the one leaving slides further UP as it fades (set by JS via .is-prev) */
.logo-seq__img.is-prev {
  transform: translate(-50%, -50%) translateY(-16px) scale(0.82);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .logo-seq__img { transition: opacity 0.3s ease; transform: translate(-50%, -50%) scale(1); }
  .logo-seq__img.is-prev { transform: translate(-50%, -50%) scale(1); }
}
.nav-icons { display: flex; gap: 16px; justify-content: flex-end; align-items: center; padding-right: 24px; padding-bottom: 40px; }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
}
/* X state when menu open */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu overlay */
/* Backdrop: dim layer that holds the floating panel and closes on tap. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(20, 8, 22, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
/* Floating rounded panel that drops down from the top. */
.mobile-menu__panel {
  position: relative;
  background: var(--green-dark);
  border-radius: 28px;
  padding: 64px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(-16px) scale(0.98);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open .mobile-menu__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s;
}
.mobile-menu__close svg { width: 24px; height: 24px; }
.mobile-menu__close:hover { transform: rotate(90deg); }
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.mobile-menu__links a {
  color: var(--white);
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.36s; }
.mobile-menu__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.42s, transform 0.4s ease 0.42s;
}
.mobile-menu.is-open .mobile-menu__wa { opacity: 1; transform: translateY(0); }
.pkns-logo {
  height: 30px;
  width: auto;
  display: block;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--green-dark); }
.btn-green { background: var(--green); color: var(--white); }

/* ===== Hero ===== */
.hero {
  background: url('herobackground.png') center/cover no-repeat var(--green-dark);
  color: var(--white);
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 100vh;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow-x: hidden;
}
/* Dark gradient overlay — left side darker for text legibility */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.0) 100%
  );
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-text h1 {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-text p {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 1;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  color: #fff;
}
.scribble { position: relative; }
.scribble::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 4px;
  height: 3px;
  background: var(--green);
  opacity: 0.9;
  z-index: -1;
  border-radius: 4px;
}
.annot {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: var(--green-lime);
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-6deg);
  vertical-align: middle;
  line-height: 1.2;
  margin: 0 6px;
}
.annot.dark { color: var(--green); }

/* Hero collage */
.hero-collage {
  position: relative;
  min-height: 660px;
}
.photo {
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.photo-leash {
  position: absolute;
  top: 0; left: 0;
  width: 400px; height: 620px;
  background: url('hero1image.png') center/cover no-repeat;
  transform: rotate(-3deg);
  z-index: 2;
}
.photo-dog {
  position: absolute;
  top: 180px; left: 40%;
  width: 380px; height: 440px;
  background: url('hero1image.png.png') center/cover no-repeat;
  transform: rotate(4deg);
  z-index: 1;
}
.small-card {
  position: absolute;
  bottom: 40px; left: 58%;
  z-index: 3;
}

/* mini card */
.card {
  width: 130px;
  border-radius: 14px;
  padding: 16px 14px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  transform: rotate(6deg);
}
.card-red { background: var(--red); }
.card-label { font-family: 'Stack', serif; font-weight: 700; font-size: 16px; display: block; }
.card-sub { font-size: 10px; opacity: 0.7; }

/* ===== Colors section ===== */
.colors {
  background: var(--cream);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 96px 40px;
}
.colors-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 0;
}
.colors-head {
  text-align: center;
  max-width: 720px;
}

/* Card cluster wrapper — centered, width-capped, lays out the cards row. */
.colors-row {
  width: 100%;
  max-width: 1160px;
  display: flex;
  justify-content: center;
}

.pill {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  padding: 5px 12px;
  border-radius: 999px;
  transform: rotate(-5deg);
  letter-spacing: 0;
  line-height: 1.1;
  vertical-align: middle;
}
.pill-red { background: var(--red); }

/* badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
}
.badge span { writing-mode: horizontal-tb; }
.badge .icon { width: 28px; height: 28px; flex-shrink: 0; }
.badge i.icon { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }

/* tag cards */
.tags {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin: 0;
}

/* Swipe hint — hidden on desktop (all 3 cards already visible). */
.tags-hint { display: none; }
.tag {
  flex: 1 1 0;
  max-width: 360px;
  min-width: 0;
  border-radius: 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.tag:hover { transform: translateY(-8px); }

.tag-head {
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
}
.tag-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.tag-media {
  position: relative;
  margin-top: auto;
  flex: 1;
  min-height: 240px;
  overflow: hidden;
}
.tag-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tag-more {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.tag-more:hover { background: #fff; transform: translateX(2px); }
.tag-more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.25);
  font-size: 15px;
}

.tag-red { background: var(--red); }
.tag-yellow { background: var(--yellow); }
.tag-green { background: var(--green-bright); }
/* yellow card needs dark text for contrast on its light background */
.tag-yellow .tag-title { color: var(--ink); }
.tag-yellow .tag-desc { color: rgba(0,0,0,0.7); }

.colors .btn,
.colors .sparkle-btn { margin-top: 20px; align-self: center; }

/* ===== Mission ===== */
.mission {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
  padding-top: 50px;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -35%;
  width: 160%;
  height: 160%;
  transform: translateY(-50%);
  background: url('pattern-background.svg') right center/contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.mission > * { position: relative; z-index: 1; }
.mission-collage { position: relative; min-height: 660px; }
.photo-mission-1 {
  position: absolute;
  top: 0; left: 0;
  width: 400px; height: 620px;
  background: url('images3.1.png') center/cover no-repeat;
  transform: rotate(-3deg);
  z-index: 1;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.photo-mission-2 {
  position: absolute;
  bottom: 0; left: 40%;
  width: 380px; height: 440px;
  background: url('images3.2.png') center/cover no-repeat;
  transform: rotate(4deg);
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.bubble {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.bubble-green { background: var(--green-lime); top: -14px; right: -20px; }
.bubble-pink { background: var(--pink); bottom: 20px; left: -40px; }

.mission-text { max-width: 560px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
}
.mission-text h2 {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
}
.yellow-hi {
  display: inline;
  background: var(--yellow);
  padding: 2px 10px 4px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mission-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 24px;
}
.link-underline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--green-bright);
  padding-bottom: 3px;
}

/* ===== Locations slider (scroll-driven, pinned) ===== */
.locations {
  background: var(--cream);
  height: 140vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden;
}
.locations-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 24px;
  flex-shrink: 0;
}
.locations-head h2 {
  font-size: clamp(48px, 6.5vw, 80px);
  margin: 14px 0 18px;
}
.locations-head p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

.slider {
  width: 100%;
  overflow: visible;
}
.slide-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 10px max(40px, (100% - 1440px) / 2);
  will-change: transform;
}

.loc-card {
  flex: 0 0 340px;
  width: 340px;
  min-height: 520px;
  border-radius: 26px;
  padding: 40px 30px;
  color: var(--white);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.loc-green  { background: var(--green-bright); }
.loc-red    { background: var(--red); }
.loc-yellow { background: var(--yellow); color: var(--ink); }
.loc-dark   { background: var(--green-dark); }

.loc-icon svg { width: 48px; height: 48px; }
.loc-card h3 {
  font-family: 'Stack', serif;
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  margin: 10px 0 12px;
}
.loc-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loc-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.loc-yellow li { border-bottom-color: rgba(0,0,0,0.12); }
.loc-card li:last-child { border-bottom: none; padding-bottom: 0; }
.loc-card li span {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.85;
}

/* ===== Unit type tabs ===== */
.units {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
}
.units-head { max-width: 640px; margin-bottom: 40px; }
.units-head h2 { font-size: clamp(34px, 5vw, 56px); margin: 14px 0 18px; }
.units-head p { font-size: 15px; line-height: 1.7; color: #444; }

.unit-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}
.unit-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: #fff;
  border: 2px solid rgba(31,77,46,0.18);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.unit-tab:hover { transform: translateY(-2px); border-color: var(--green); }
.unit-tab.is-active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

/* Coloured code circle inside each tab */
.unit-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.unit-code--a { background: var(--green-bright); }
.unit-code--b { background: var(--yellow); color: var(--green-dark); }
.unit-code--c { background: var(--red); }
.unit-code--d { background: var(--green-dark); }
.unit-tab.is-active .unit-code--d { background: #fff; color: var(--green-dark); }

.unit-panel { width: 100%; max-width: 520px; }
.unit-card {
  background: #fff;
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.unit-card[hidden] { display: none; }
.unit-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--green-dark);
  background: rgba(76, 175, 46, 0.12);
  border: 2px solid rgba(31, 77, 46, 0.18);
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.unit-cta svg { width: 18px; height: 18px; }
.unit-cta:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
}
.unit-badge .unit-code { width: 34px; height: 34px; }
.unit-badge .unit-code--d { background: #fff; color: var(--green-dark); }
.unit-size {
  font-family: 'Stack', serif;
  font-size: 22px;
  color: var(--green-dark);
}
.unit-size strong { font-size: 48px; display: block; line-height: 1; margin-bottom: 4px; }
.unit-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
}
.unit-price span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.unit-price strong {
  font-family: 'Stack', serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green-dark);
}

.units .btn,
.units .sparkle-btn { margin-top: 40px; align-self: center; }

/* fun pop on tab switch */
@keyframes unit-pop {
  0%   { transform: scale(0.96); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}
.unit-card.pop { animation: unit-pop 0.32s ease; }

/* ============================================================
   UNITS SECTION — "Ambient Bloom + Stacked Deck" decoration
   All decoration is non-interactive and sits BEHIND content.
   Does NOT touch .unit-card transforms -> .unit-card.pop is safe.
   No HTML or JS changes required.
   ============================================================ */

/* 1. Anchor + stacking context, clip bleeding decoration, and paint
      two large diagonal ambient glows as cheap background layers. */
.units {
  position: relative;
  isolation: isolate;          /* local, predictable z-index */
  overflow: hidden;            /* clip the corner sparkle watermarks */
  background:
    radial-gradient(620px 620px at -6% -10%,
        rgba(109, 209, 63, 0.16), rgba(109, 209, 63, 0) 60%),
    radial-gradient(680px 680px at 106% 110%,
        rgba(242, 185, 28, 0.14), rgba(242, 185, 28, 0) 62%),
    var(--cream);
}

/* 2. Keep ALL real content (head, tabs, panel) above decoration. */
.units > * { position: relative; z-index: 2; }

/* 3. Oversized faint plum sparkle watermark — TOP-LEFT, bleeding off. */
.units::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -140px;
  width: 440px;
  height: 440px;
  background: url('pattern-background.svg') center/contain no-repeat;
  opacity: 0.06;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

/* 4. Oversized faint sparkle watermark — BOTTOM-RIGHT, slow drift. */
.units::after {
  content: '';
  position: absolute;
  bottom: -190px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: url('pattern-background.svg') center/contain no-repeat;
  opacity: 0.05;
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 0;
  animation: units-drift 22s ease-in-out infinite alternate;
}
@keyframes units-drift {
  from { transform: rotate(18deg) translate3d(0, 0, 0); }
  to   { transform: rotate(14deg) translate3d(-22px, -18px, 0); }
}

/* ---- Stacked "deck of six" depth around the card ----
   The PANEL is the stable anchor: always visible, never carries .pop,
   so the tab-switch JS and pop animation stay untouched. */
.unit-panel { position: relative; }

/* 5. GHOST CARD #1 (plum) peeks up-left + soft coloured lifted glow. */
.unit-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: rgba(73, 40, 77, 0.10);
  border: 1px solid rgba(73, 40, 77, 0.14);
  transform: translate(-14px, -14px) scale(0.97);
  box-shadow: 0 38px 60px -22px rgba(73, 40, 77, 0.34),
              0 22px 44px -18px rgba(47, 122, 62, 0.26);
  z-index: -2;
  pointer-events: none;
}

/* 6. GHOST CARD #2 (green) peeks down-right, with a corner dot. */
.unit-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right,
        var(--green-bright) 0 5px, transparent 6px),
    rgba(47, 122, 62, 0.09);
  border: 1px solid rgba(47, 122, 62, 0.16);
  transform: translate(22px, 22px) scale(0.94);
  z-index: -3;
  pointer-events: none;
}

/* 7. Keep the real card above its ghosts, re-tint shadow to plum. */
.unit-card {
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(73, 40, 77, 0.12);
}

/* 8. Motion & responsive guards. */
@media (prefers-reduced-motion: reduce) {
  .units::after { animation: none; }
}
@media (max-width: 560px) {
  .unit-panel::before { transform: translate(-9px, -9px) scale(0.98); }
  .unit-panel::after  { transform: translate(13px, 13px) scale(0.96); }
  .units::before { width: 300px; height: 300px; top: -110px; left: -100px; }
  .units::after  { width: 320px; height: 320px; bottom: -130px; right: -110px; }
}

/* ===== Sparkle CTA button =====
   Animated sparkles + glare sweep on hover. Adapted from an Open Props
   demo to plain CSS using this site's palette. */
.sparkle-btn {
  --font-size: 22px;            /* text size driver */
  --glare: hsl(0 0% 100% / 0.8);
  --hover: 0.4;                 /* idle lift amount */
  --pos: 0;                     /* glare sweep position */
  --pad: 14px 34px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  border: 2px solid var(--color);
  border-radius: 999px;
  text-decoration: none;
  color: transparent;
  align-self: flex-start;       /* align with surrounding content */
  transition: background 0.2s, border-color 0.2s;
}
/* Dark-text variant on light (cream) backgrounds */
.sparkle-dark  { --color: var(--green-bright); --shadow: var(--green-dark); }
.sparkle-dark:hover  { background: rgba(76, 175, 46, 0.10); }
/* Light-text variant on the dark green hero */
.sparkle-light { --color: var(--cream); --shadow: #0c2716; }
.sparkle-light:hover { background: rgba(255, 255, 255, 0.08); }

.sparkle-btn:hover { --hover: 1; --pos: 1; }
.sparkle-btn:active { --hover: 0; }

/* Base text layer — flat 2D */
.sparkle-btn span {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: var(--font-size);
  color: var(--color);
}
/* Top text layer — the moving glare sweep, clipped to the text */
.sparkle-btn span:last-of-type {
  position: absolute;
  inset: var(--pad);
  z-index: 2;
  color: transparent;
  text-shadow: none;
  background:
    linear-gradient(108deg,
      transparent 0 55%,
      var(--glare) 55% 60%,
      transparent 60% 70%,
      var(--glare) 70% 85%,
      transparent 85%
    ) calc(var(--pos) * -200%) 0% / 200% 100%,
    var(--color);
  -webkit-background-clip: text;
          background-clip: text;
  transition: background-position 0s;
}
.sparkle-btn:hover span:last-of-type {
  transition: background-position calc(var(--hover) * 1.5s) calc(var(--hover) * 0.25s);
}
.sparkle-btn:active span:last-of-type { --hover: 0; --pos: 1; }

/* Sparkles */
.sparkle-btn .spk {
  position: absolute;
  z-index: 3;
  width: calc(var(--font-size) * 0.5);
  aspect-ratio: 1;
  top: calc(var(--y, 50) * 1%);
  left: calc(var(--x, 0) * 1%);
  transform: translate(-50%, -50%) scale(0);
  --delay-step: 0.15s;
}
.sparkle-btn .spk path { fill: var(--color); }
.sparkle-btn:hover .spk {
  animation: sparkle 0.75s calc(var(--delay-step) * var(--d)) both;
}
@keyframes sparkle {
  50% { transform: translate(-50%, -50%) scale(var(--s, 1)); }
}
.sparkle-btn .spk:nth-of-type(1) { --x: -6;  --y: -25; --s: 1.1;  --d: 1; }
.sparkle-btn .spk:nth-of-type(2) { --x: 8;   --y: 125; --s: 1.25; --d: 2; }
.sparkle-btn .spk:nth-of-type(3) { --x: 50;  --y: -35; --s: 1.1;  --d: 3; }
.sparkle-btn .spk:nth-of-type(4) { --x: 92;  --y: 120; --s: 0.9;  --d: 2; }
.sparkle-btn .spk:nth-of-type(5) { --x: 106; --y: -20; --s: 0.8;  --d: 4; }

/* ===== Marquee ===== */
.marquee {
  background: #49284D;
  color: var(--white);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: scroll 18s linear infinite;
}
.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.marquee-track .dot { opacity: 0.7; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Fullscreen slide gallery (pinned) ===== */
.gallery {
  position: relative;
  height: 100vh;   /* fallback for browsers without svh */
  height: 100svh;  /* small viewport height: stable, never jumps on address-bar show/hide */
  overflow: hidden;
  background: var(--green-dark);
}
.gallery-stage {
  position: absolute;
  inset: 0;
}
.g-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
  /* Initial offset is set by GSAP (yPercent) in JS — no CSS transform here
     to avoid stacking with GSAP's transform. */
}

/* placeholder "image" backgrounds via gradients in the site palette */
.g-slide[data-bg="green"] { background: linear-gradient(160deg, #1f4d2e, #2f7a3e); color: #fff; }
.g-slide[data-bg="lime"]  { background: linear-gradient(160deg, #4caf2e, #6dd13f); color: #0c2716; }
.g-slide[data-bg="dark"]  { background: linear-gradient(160deg, #0c2716, #1f4d2e); color: #fff; }
.g-slide[data-bg="cream"] { background: linear-gradient(160deg, #f4f1ea, #e6e1d6); color: #1f4d2e; }

.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.g-inner {
  position: relative;
  z-index: 1;
  padding: 0 6vw;
  text-align: center;
}
.g-explore-btn { margin-top: 28px; }

.g-symbol {
  display: block;
  width: clamp(36px, 4vw, 64px);
  height: auto;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1);
}
.g-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(28px, 5vw, 72px);
  margin: 0;
  max-width: 1100px;
  padding: 0.15em 0;
}

.wavy-text .wave-char {
  display: inline-block;
}
.wavy-text .wave-space {
  display: inline-block;
  width: 0.3em;
}
.g-heading .g-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
.g-heading .g-word > span {
  display: inline-block;
  will-change: transform;
  padding-top: 0.1em;
}

/* progress bar */
.gallery-progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 4;
}
.gallery-progress span {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.4s, width 0.4s;
}
.gallery-progress span.is-active { background: #fff; width: 80px; }

/* ===== Bento gallery Flip section ===== */
.bento-wrap {
  position: relative;
  width: 100%;
  height: 100vh;   /* fallback for browsers without svh */
  height: 100svh;  /* small viewport height: stable on address-bar show/hide */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

/* Bento grid — yellow tile (col2, row2-3) is exactly 100vw × 100vh.
   Other tiles fill the remaining space around it. */
.bento-gallery {
  display: grid;
  gap: 4px;
  /* col: side tiles = 33vw each, center = 34vw → total ~100vw */
  grid-template-columns: 33vw 34vw 33vw;
  /* row: top & bottom = 25vh each, middle two = 25vh each → 4 × 25vh = 100vh */
  grid-template-rows: 25vh 25vh 25vh 25vh;
  justify-content: center;
  align-content: center;
  transform-origin: 50% 50%;
  will-change: transform;
}

.bento-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.bento-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* Grid areas — same bento layout */
.bento-gallery .bento-item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.bento-gallery .bento-item:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.bento-gallery .bento-item:nth-child(3) { grid-area: 2 / 2 / 4 / 3; }
.bento-gallery .bento-item:nth-child(4) { grid-area: 1 / 3 / 3 / 4; }
.bento-gallery .bento-item:nth-child(5) { grid-area: 3 / 1 / 4 / 2; }
.bento-gallery .bento-item:nth-child(6) { grid-area: 3 / 3 / 5 / 4; }
.bento-gallery .bento-item:nth-child(7) { grid-area: 4 / 1 / 5 / 2; }
.bento-gallery .bento-item:nth-child(8) { grid-area: 4 / 2 / 5 / 3; }

/* Content section below the bento */
.bento-content {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  --gutter: max(40px, (100% - 1440px) / 2);
  padding: 80px var(--gutter);
  max-width: 100%;
}
.bento-content h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 14px 0 28px;
  max-width: 700px;
}
.bento-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  max-width: 640px;
  margin-bottom: 18px;
}

/* ===== Contact section ===== */
.contact-section {
  background: var(--green-dark);
  color: var(--white);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  --gutter: max(40px, (100% - 1440px) / 2);
  padding: 80px var(--gutter);
}

.contact-left .eyebrow { color: var(--green-lime); }
.contact-left h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.contact-left p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 440px;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.75;
}
.contact-detail-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }

/* Form */
.contact-right { display: flex; flex-direction: column; }
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form h3 {
  font-family: 'Stack', serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  opacity: 0.7;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid rgba(31,77,46,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.form-submit svg { width: 18px; height: 18px; }
.form-submit:hover { background: var(--green); transform: translateY(-2px); }

@media (max-width: 820px) {
  .contact-section { grid-template-columns: 1fr; padding: 60px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}

/* ===== Layout popup / modal ===== */
.layout-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
.layout-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.layout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 39, 22, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.layout-modal.is-open .layout-modal__backdrop { opacity: 1; }

.layout-modal__box {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);

  /* start tiny + invisible for the zoom-in entrance */
  transform: scale(0.4);
  opacity: 0;
}
/* Zooming entrance — ease-in */
.layout-modal.is-open .layout-modal__box {
  animation: zoomIn 0.4s ease-in forwards;
}
@keyframes zoomIn {
  from { transform: scale(0.4); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}

.layout-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-dark);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.layout-modal__close:hover { background: #e6e1d6; transform: rotate(90deg); }
.layout-modal__close svg { width: 20px; height: 20px; }

.layout-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.layout-modal__badge .unit-code { width: 34px; height: 34px; }
.layout-modal__badge .unit-code--d { background: #fff; color: var(--green-dark); }
.layout-modal__plan {
  background: var(--cream);
  border-radius: 18px;
  padding: 24px;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.layout-modal__plan svg { width: 100%; height: auto; max-height: 260px; }
.layout-modal__meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

/* ===== Slide-up sheet (card "Read More") ===== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 39, 22, 0.5);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.sheet.is-open .sheet__backdrop { opacity: 1; }

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80%;                /* leave a ~20% gap at the top */
  background: var(--cream);
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);

  /* start fully below the viewport for the slide-up entrance */
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
/* Promote to a GPU compositor layer ONLY while animating, so the slide is
   composited (not repainted) per frame, but no idle layer lingers when the
   sheet is closed or sitting open. */
.sheet.is-animating .sheet__panel { will-change: transform; }

.sheet__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s;
}
.sheet__close:hover { background: rgba(255, 255, 255, 1); transform: rotate(90deg); }
.sheet__close svg { width: 20px; height: 20px; }

.sheet__inner {
  flex: 1;
  min-height: 0;                    /* allow the flex child to actually scroll */
  overflow-y: auto;
  overscroll-behavior: contain;     /* keep scroll inside the panel */
  -webkit-overflow-scrolling: touch;
  padding: clamp(48px, 7vh, 88px) clamp(24px, 4.5vw, 80px) 80px;
  width: 100%;
}

/* Two columns: text/cards on the left, image on the right. */
.sheet__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1440px;
  margin-inline: auto;
}
.sheet__main { min-width: 0; }
.sheet__media {
  position: sticky;
  top: clamp(48px, 7vh, 88px);     /* align pin with the inner top padding */
  align-self: start;
  height: min(610px, calc(80vh - 168px));   /* fit within the scrollport so sticky works */
  border-radius: 24px;
  overflow: hidden;
  background: #e7e2d6;
}
.sheet__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sheet__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.sheet__title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.sheet__lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: #555;
  max-width: 640px;
  margin: 0 0 48px;
}

.sheet__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.sheet__feature {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
}
.sheet__feature i {
  font-size: 28px;
  color: var(--green);
  display: inline-block;
  margin-bottom: 14px;
}
.sheet__feature h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.sheet__feature p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.sheet__note {
  font-size: 13px;
  color: #999;
  font-style: italic;
  margin: 0 0 28px;
}
.sheet__cta {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.sheet__cta:hover { background: var(--green-dark); transform: translateY(-2px); }

/* Tablet & down: single column, image becomes a banner on top */
@media (max-width: 900px) {
  .sheet__layout { grid-template-columns: 1fr; }
  .sheet__media {
    position: static;
    order: -1;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 300px;
    margin-bottom: 8px;
  }
  .sheet__inner {
    padding-top: clamp(28px, 4vh, 48px);
    padding-left: clamp(24px, 4vw, 40px);
    padding-right: clamp(24px, 4vw, 40px);
  }
  .sheet__lead { margin-bottom: 28px; }
}
/* Phones: text leads, tighter spacing, taller panel, bigger touch target */
@media (max-width: 640px) {
  .sheet__panel { border-radius: 24px 24px 0 0; height: 92%; }
  .sheet__inner { padding: 64px 20px 48px; }
  .sheet__close { width: 48px; height: 48px; top: 14px; right: 14px; }
  .sheet__media { order: 0; margin-top: 4px; max-height: 220px; }
  .sheet__grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .sheet__feature { padding: 20px 18px; border-radius: 16px; }
}
/* Ultra-wide: let the centered layout use more of the canvas */
@media (min-width: 1920px) {
  .sheet__layout { max-width: 1600px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet__panel { transition: transform 0.01s linear; }
  .sheet__backdrop { transition: opacity 0.01s linear; }
  .mobile-menu__panel { transition: opacity 0.2s ease; transform: none; }
}

/* ===== Footer ===== */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.75);
  --gutter: max(40px, (100% - 1440px) / 2);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.footer-top {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  padding: 60px var(--gutter) 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-content: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer-logo { height: 70px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.footer-social svg { width: 18px; height: 18px; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 {
  font-family: 'Stack', serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 13px; line-height: 1.5; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-lime); }
.footer-pkns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-pkns img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-pkns span { font-size: 12px; opacity: 0.5; letter-spacing: 0.06em; }

.footer-bottom {
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; opacity: 0.4; }

@media (max-width: 820px) {
  .footer { min-height: 0; height: auto; overflow: visible; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 50px 24px 40px; align-content: start; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; padding: 20px 24px; }
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  /* Nav — logo left, icons right; hidden links must not hold a grid column */
  .nav {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 8px 16px;
  }
  .nav-links { display: none; }
  .logo {
    grid-column: 1;
    width: 80px;
    height: 80px;
    margin-top: 0;
    align-self: center;
    /* shrink toward its own centre so the scaled badge stays vertically
       aligned with the PKNS logo + hamburger on the right */
    transform-origin: center center;
  }
  .nav.scrolled .logo { transform: scale(0.82); }
  .logo-seq { width: 42px; height: 42px; }
  .logo-seq__img { height: 42px; }
  .nav-icons {
    grid-column: 2;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding: 0;
  }
  .nav-icons .whatsapp-btn { display: none; }
  .pkns-logo { height: 24px; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero, .mission { grid-template-columns: 1fr; }
  .hero {
    padding: 120px 24px 60px;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .hero-text { order: 1; }
  .hero-text h1 { font-size: clamp(40px, 12vw, 64px); }
  .hero-text .annot { font-size: 10px; }
  .hero-text p { font-size: 14px; max-width: 100%; }
  .hero-collage {
    order: 2;
    min-height: 320px;
    margin-top: 32px;
    position: relative;
    width: 100%;
  }
  .photo-leash {
    width: 52vw; height: 65vw;
    top: 0; left: 2vw;
  }
  .photo-dog {
    width: 48vw; height: 52vw;
    top: 18vw; left: 38%;
  }

  /* Mission */
  .hero-collage, .mission-collage { min-height: 300px; }
  .mission-collage { min-height: 78vw; margin-top: 24px; }
  .photo-mission-1 {
    width: 52vw; height: 68vw;
    top: 0; left: 2vw;
  }
  .photo-mission-2 {
    width: 48vw; height: 52vw;
    bottom: 0; left: 40%;
  }

  /* Colors */
  .colors { padding: 64px 0; gap: 36px; overflow: hidden; }
  .colors-head { text-align: center; padding: 0 24px; }
  .badges { gap: 10px 20px; padding: 0 24px; }
  .badge { width: max-content; }
  .colors-row { width: 100%; overflow: hidden; flex-direction: column; align-items: stretch; }
  .tags {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 16px 20px 16px 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding: 20px;
    box-sizing: border-box;
  }
  .tags::-webkit-scrollbar { display: none; }
  .tag {
    flex: 0 0 auto;
    width: 72%;
    max-width: 280px;
    scroll-snap-align: start;
  }
  .tag:hover { transform: none; }
  .tag-title { font-size: 28px; }
  .tag-media { min-height: 220px; }

  /* Left/right navigator buttons under the card carousel on mobile */
  .tags-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 24px 0;
  }
  .tags-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--green-dark);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
  }
  .tags-nav:active { transform: scale(0.92); }
  .tags-nav:disabled { opacity: 0.3; cursor: default; }

  /* Locations */
  .loc-card { flex-basis: 280px; width: 280px; padding: 28px 24px; }

  /* CTA buttons */
  .sparkle-btn { --font-size: 14px; --pad: 10px 18px; gap: 6px; }
}

/* ===== Loan Calculator ===== */
.loan-calc-section {
  background: url('herobackground.png') center/cover no-repeat var(--green-dark);
  padding: 100px 24px;
  display: flex;
  justify-content: center;
}
.loan-calc-inner {
  width: 100%;
  max-width: 600px;
}
.calculator {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.calculator h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-family: Georgia, serif;
  margin-bottom: 28px;
  color: var(--green-dark);
}
.calculator .field {
  margin-bottom: 18px;
}
.calculator label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
  font-family: 'DM Sans', sans-serif;
}
.calculator input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.calculator input:focus {
  outline: none;
  border-color: var(--green);
}
.calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s;
}
.calc-btn:hover {
  background: var(--green);
  transform: translateY(-2px);
}
.calc-results {
  display: none;
  margin-top: 28px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-family: 'DM Sans', sans-serif;
}
.result-item span {
  font-size: 14px;
  color: #666;
}
.result-item strong {
  font-size: 16px;
  color: var(--green-dark);
}

/* ============================================================
   FLOATING 3D ICON DOCK (left, fixed) — speed-dial CTA
   ============================================================ */
.dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;   /* toggle at bottom, items expand upward */
  align-items: center;
  gap: 14px;
  perspective: 700px;               /* gives children real 3D depth */
}

/* The main floating button (always visible) */
.dock__toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(145deg, #5e3463, var(--green-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 22px rgba(73, 40, 77, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: dock-bob 4s ease-in-out infinite;
}
.dock__toggle:hover {
  box-shadow:
    0 16px 30px rgba(73, 40, 77, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}
@keyframes dock-bob {
  0%, 100% { transform: translateZ(0) translateY(0); }
  50%      { transform: translateZ(0) translateY(-7px); }
}

/* toggle icon swap (grid <-> x) */
.dock__toggle-icon { position: relative; width: 22px; height: 22px; font-size: 22px; }
.dock__toggle-icon .bi {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.dock__i-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.dock.is-open .dock__i-open  { opacity: 0; transform: rotate(90deg) scale(0.5); }
.dock.is-open .dock__i-close { opacity: 1; transform: rotate(0) scale(1); }
/* pause the bob so the open-state flip is visible */
.dock.is-open .dock__toggle  { animation: none; transform: rotateY(180deg); }

/* The expanding item list */
.dock__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
  transform-style: preserve-3d;
}
.dock__item {
  opacity: 0;
  transform: translateY(20px) translateZ(-60px) scale(0.6);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
/* staggered reveal when open (closest item first) */
.dock.is-open .dock__item {
  opacity: 1;
  transform: translateY(0) translateZ(0) scale(1);
  pointer-events: auto;
  transition-delay: calc(var(--i) * 0.05s);
}

.dock__btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  color: var(--green-dark);
  background: #fff;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -2px 5px rgba(73, 40, 77, 0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, color 0.2s;
}
.dock__btn:hover {
  transform: translateZ(20px) translateX(-4px) scale(1.12) rotate(4deg);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  color: var(--green);
}
.dock__btn--wa { color: #25D366; }
.dock__btn--wa:hover { color: #128C4B; }

/* tooltip label that slides out to the LEFT on hover (dock is bottom-right) */
.dock__btn::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--green-dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dock__btn:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .dock__toggle { animation: none; }
}
@media (max-width: 640px) {
  .dock { right: 14px; gap: 12px; }
  .dock__toggle { width: 50px; height: 50px; }
  .dock__btn { width: 44px; height: 44px; font-size: 18px; }
}
