/* Darte rebuild — Homepage v2 + collection gradient.
   Panel geometry comes from the Figma file (Darte › Homepage • Desktop Preview, sections 91:32, 1:4042, 2:27):
   each image group sits in a 1120 × 844 frame; positions below are those frame values as percentages. */

/* ---------- Collection pages: soft vertical gradient (Figma "Collection Page" body) ---------- */
.collection-page,
.collection-page--sealife,
.collection-page--safari,
.collection-page--texture {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 45%, #f6f6f6 100%);
}

/* ---------- Homepage v2 body ---------- */
.v2-body {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 40%, #f5f5f5 100%);
  padding: clamp(40px, 7.5vw, 144px) 0 clamp(24px, 4vw, 72px);
  overflow-x: clip;
}

.v2s {
  display: grid;
  grid-template-columns: minmax(0, 800fr) minmax(0, 1120fr);
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
}
.v2s + .v2s { margin-top: clamp(64px, 15vw, 288px); }
.v2s--flip { grid-template-columns: minmax(0, 1120fr) minmax(0, 800fr); }

.v2s__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(24px, 5vw, 96px);
}
.v2s__copy .feature__text { max-width: 440px; }

.v2s__media {
  position: relative;
  aspect-ratio: 1120 / 844;
}

.v2p {
  position: absolute;
  overflow: hidden;
  background: #ece8e2;
  translate: 0 var(--py, 0px);            /* scroll parallax (set by js/home-v2.js) */
  will-change: transform, translate;
}
.v2p img,
.v2p video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

/* Safari — main centre portrait, square right, landscape left on top */
.v2s--safari .v2p--main  { left: 28.28%; top: 0;      width: 48.11%; height: 85.52%; z-index: 1; }
.v2s--safari .v2p--right { left: 70%;    top: 42.77%; width: 25.98%; height: 34.48%; z-index: 2; }
.v2s--safari .v2p--left  { left: 0;      top: 18.5%;  width: 36.21%; height: 43.93%; z-index: 3; }

/* Sea Life — tall right sits under the main portrait; landscape left on top */
.v2s--sealife .v2p--right { left: 70.03%; top: 46.69%; width: 29.97%; height: 53.28%; z-index: 1; }
.v2s--sealife .v2p--main  { left: 28.28%; top: 0;      width: 48.11%; height: 85.52%; z-index: 2; }
.v2s--sealife .v2p--left  { left: 0;      top: 18.5%;  width: 36.21%; height: 43.93%; z-index: 3; }

/* Texture — full-height main, portrait left, square-ish right dropping below the frame */
.v2s--texture .v2p--main  { left: 26.16%; top: 0;      width: 56.25%; height: 100%;   z-index: 1; }
.v2s--texture .v2p--left  { left: 4.2%;   top: 27.96%; width: 26.61%; height: 44.08%; z-index: 2; }
.v2s--texture .v2p--right { left: 69.11%; top: 61%;    width: 26.61%; height: 36.26%; z-index: 3; }

/* ---------- Scroll reveal ---------- */
.v2p {
  opacity: 0;
  transition:
    opacity 0.9s ease var(--d, 0s),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    clip-path 1.25s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s);
}
.v2p img, .v2p video {
  transform: scale(1.14);
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.v2p--main  { clip-path: inset(100% 0 0 0); --d: 0s; }
.v2p--left  { transform: translate3d(-56px, 24px, 0); --d: 0.22s; }
.v2p--right { transform: translate3d(56px, 32px, 0);  --d: 0.4s; }

.v2s.is-in .v2p { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.v2s.is-in .v2p img, .v2s.is-in .v2p video { transform: scale(1); }

.v2s__copy > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.v2s.is-in .v2s__copy > * { opacity: 1; transform: none; }
.v2s.is-in .v2s__copy > :nth-child(1) { transition-delay: 0.15s; }
.v2s.is-in .v2s__copy > :nth-child(2) { transition-delay: 0.27s; }
.v2s.is-in .v2s__copy > :nth-child(3) { transition-delay: 0.39s; }
.v2s.is-in .v2s__copy > :nth-child(4) { transition-delay: 0.51s; }

/* ---------- Load animation (hero, v2 only) ---------- */
@keyframes v2-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes v2-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes v2-fade { from { opacity: 0; } to { opacity: 1; } }

.view-v2.v2-play .hero--v2 .hero-swiper__slide.is-active .hero__image { animation: v2-settle 2.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.view-v2.v2-play .hero--v2 .hero__overlay { animation: v2-fade 1.4s ease both; }
.view-v2.v2-play .hero--v2 .hero__eyebrow       { animation: v2-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.view-v2.v2-play .hero--v2 .hero__title         { animation: v2-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }
.view-v2.v2-play .hero--v2 .hero__text          { animation: v2-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both; }
.view-v2.v2-play .hero--v2 .hero__cta           { animation: v2-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both; }
.view-v2.v2-play .hero--v2 .hero-swiper__pagination { animation: v2-fade 1s ease 1.1s both; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1023px) {
  .v2s, .v2s--flip { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .v2s__media { order: 1; margin: 0 16px; }
  .v2s__copy  { order: 2; padding: 0 16px; }
  .v2s__media { margin-bottom: 28px; }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .v2p, .v2p img, .v2p video, .v2s__copy > * { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; translate: none !important; }
  .view-v2 .hero--v2 * { animation: none !important; }
}

/* ---------- Review switcher (preview only, not part of the site) ---------- */
.version-switch {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: #444;
  backdrop-filter: blur(6px);
}
.version-switch span { margin-right: 4px; }
.version-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1a1a1a;
  font-weight: 500;
}
.version-switch a[aria-current="page"] { background: #37888e; color: #fff; }

@media (max-width: 600px) { .version-switch { left: auto; right: 12px; bottom: 12px; font-size: 12px; } .version-switch span { display: none; } }

/* ---------- Contact: stack image above form at laptop widths and below ---------- */
@media (max-width: 1279px) {
  .contact { flex-direction: column; padding: 0 0 24px; }
  .contact__media { width: 100%; display: flex; justify-content: center; padding: 48px 24px 16px; }
  .contact__media img { width: 100%; max-width: 560px; }
  .contact__panel { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 32px 72px; gap: 48px; }
}
/* Wide screens: side by side, with one equal space at the left edge, between the columns and at the right edge */
@media (min-width: 1280px) {
  .contact { --cs: clamp(56px, 5vw, 112px); padding-left: var(--cs); padding-right: var(--cs); gap: var(--cs); }
  .contact__media { width: auto; flex: 1.15 1 0; min-width: 0; }
  .contact__panel { flex: 1 1 0; padding: 0; }
}

/* ---------- v2 section type: larger label + paragraph to sit with the 64px heading ---------- */
.v2s__copy .feature__eyebrow { font-size: clamp(15px, 1.25vw, 18px); letter-spacing: 0.12em; margin-bottom: 18px; }
.v2s__copy .feature__title   { margin-bottom: 24px; }
.v2s__copy .feature__text    { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; max-width: 500px; margin-bottom: 36px; }
.v2s__copy .feature__cta     { font-size: 17px; padding: 20px 32px; }

/* ---------- Contact form fields on tablet/phone: one consistent inner padding ---------- */
@media (max-width: 1023px) {
  .contact__fields { gap: 16px; }
  .contact__row { gap: 16px; }
  .contact__form input { height: 56px; padding: 0 20px; line-height: 56px; }
  .contact__form textarea { min-height: 140px; padding: 16px 20px; line-height: 24px; }
}
/* Tablets: Name and Email share a row again */
@media (min-width: 600px) and (max-width: 1023px) {
  .contact__row { flex-direction: row; }
  .contact__row > input { flex: 1 1 0; min-width: 0; }
}
