/* ==========================================================================
   Resinique Studio — Design Tokens
   Palette drawn from the logo: layered teal/aqua/navy waves, antique gold
   linework and script, on a soft ivory ground.
   ========================================================================== */
:root {
  /* Colour */
  --ivory: #fbfaf5;
  --sand: #f3efe6;
  --ink: #1c2a2a;
  --ink-soft: #4d5c5c;
  --teal-deep: #0e6b76;
  --teal: #2fa3b3;
  --aqua: #86d0ce;
  --aqua-pale: #d4ede9;
  --navy: #15476b;
  --gold: #a9803f;
  --gold-light: #d7b876;
  --white: #ffffff;
  --line: rgba(28, 42, 42, 0.12);

  /* Type */
  --font-script: 'Pinyon Script', cursive;
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --step-4: clamp(3rem, 2.2rem + 4vw, 5rem);

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.9em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--teal-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.6em 1em;
}
.btn-ghost:hover { color: var(--teal-deep); }

.btn-block { width: 100%; }

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--teal-deep);
  white-space: nowrap;
}
.nav-brand img { height: 42px; width: 42px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.2rem);
}
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--teal-deep); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }

/* ==========================================================================
   Loading screen
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  position: relative;
  width: min(50vw, 230px);
  height: min(50vw, 230px);
}
.loader-mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loader-mark circle.loader-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-dasharray: 653;
  stroke-dashoffset: 653;
  animation: draw-ring 1.7s var(--ease) forwards;
}
.loader-logo-img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  height: 78%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.86);
  animation: logo-in 1.1s var(--ease) 0.45s forwards;
  filter: drop-shadow(0 6px 18px rgba(21, 71, 107, 0.18));
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes logo-in { to { opacity: 1; transform: scale(1); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 12vh, 7rem);
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
}
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-waves svg { width: 100%; height: 100%; }
.hero-waves .wave-a { fill: var(--aqua-pale); opacity: 0.85; }
.hero-waves .wave-b { fill: var(--aqua); opacity: 0.55; }
.hero-waves .wave-c { fill: var(--teal); opacity: 0.18; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-script);
  font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
  color: var(--teal-deep);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-brand .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: char-in 0.8s var(--ease) forwards;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--navy);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-up 1s var(--ease) forwards;
  animation-delay: 1.95s;
}

.hero-copy {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}
.hero-copy .reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-up 1s var(--ease) forwards;
}
.hero-copy .reveal-line + .reveal-line { margin-top: 0.6em; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-up 1s var(--ease) forwards;
  animation-delay: 2.85s;
}

@keyframes char-in { to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Wave section divider
   ========================================================================== */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(3.5rem, 8vh, 6rem); }
.section-alt { background: var(--sand); }

.section-head {
  max-width: 620px;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-head h2 {
  font-size: var(--step-3);
  line-height: 1.15;
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

/* Category showcase */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--white);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.category-card:hover img { transform: scale(1.06); }
.category-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21, 71, 107, 0.72) 0%, rgba(21, 71, 107, 0) 55%);
}
.category-card-label {
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 1.1rem;
  z-index: 1;
  color: var(--white);
}
.category-card-label span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.category-card-label h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-top: 0.15rem;
}

/* Product grid & cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(21, 71, 107, 0.35);
}
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sand);
}
.product-card-media img, .product-card-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card-media img,
.product-card:hover .product-card-media video { transform: scale(1.05); }
.product-card-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--white);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--gold-light);
}
.product-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.product-card-category {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.product-card-body h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}
.product-card-body h3 a:hover { color: var(--teal-deep); }
.product-card-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
}
.product-card-price strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}
.product-card-price .btn {
  padding: 0.55em 1.1em;
  font-size: 0.82rem;
}
.product-card.out-of-stock .product-card-media::after {
  content: 'Sold out';
  position: absolute; inset: 0;
  background: rgba(28, 42, 42, 0.55);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.grid-empty, .grid-loading, .grid-error {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}
.filter-chip {
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: all 0.3s;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal-deep); }
.filter-chip.active {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step {
  text-align: center;
  padding: 2rem 1.4rem;
}
.step-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* About / story split */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-text .section-kicker { margin-top: 0; }
.story-text p { color: var(--ink-soft); margin-top: 1rem; }
.story-text p + p { margin-top: 1rem; }

/* Instagram strip */
.insta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.insta-strip a {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.insta-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.insta-strip a:hover img { transform: scale(1.08); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--aqua-pale);
  padding-block: clamp(3rem, 7vh, 4.5rem) 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  display: block;
}
.footer-grid p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   Product page
   ========================================================================== */
.page-header {
  padding-block: 2.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}
.page-header h1 { font-size: var(--step-3); }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.breadcrumb a:hover { color: var(--teal-deep); }

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.product-gallery-main {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: 0.8rem;
}
.product-gallery-main img, .product-gallery-main video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.product-gallery-thumbs { display: flex; gap: 0.7rem; }
.product-gallery-thumbs button {
  width: 68px; height: 68px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0; background: var(--ink);
  position: relative;
}
.product-gallery-thumbs button.active { border-color: var(--teal-deep); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}

.product-info-category { color: var(--teal); font-size: 0.8rem; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.product-info h1 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.product-info-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 1.4rem; }
.product-info-desc { color: var(--ink-soft); margin-bottom: 1.6rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 38px; height: 38px; background: var(--white); border: none; }
.qty-stepper input { width: 42px; text-align: center; border: none; font: inherit; background: transparent; }
.product-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; align-items: flex-start; }
.product-actions .btn { width: 100%; max-width: 340px; }
.product-meta-note { font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.2rem; }

.product-options { margin-bottom: 1.4rem; }
.product-options-label { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.6rem; display: block; }
.option-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.option-pill {
  padding: 0.55em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.87rem;
  color: var(--ink-soft);
  transition: all 0.25s;
}
.option-pill:hover { border-color: var(--teal); }
.option-pill.active {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
}
.quote-note {
  font-size: 0.85rem;
  color: var(--gold);
  background: #f4e9d3;
  padding: 0.7em 1em;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  max-width: 340px;
}

/* ==========================================================================
   Contact / forms
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.contact-list svg { width: 22px; height: 22px; stroke: var(--teal-deep); flex-shrink: 0; margin-top: 0.15rem; }
.contact-list h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-list a, .contact-list span { color: var(--ink-soft); font-size: 0.94rem; }
.contact-list a:hover { color: var(--teal-deep); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--white);
  padding: 0.8em 1.4em;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .story, .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem var(--gutter) 1.6rem;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
  }
  .insta-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Terms & Conditions popup (gates WhatsApp order/quote buttons)
   ========================================================================== */
.terms-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(21, 71, 107, 0.45);
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.terms-modal-overlay.is-open { opacity: 1; visibility: visible; }

.terms-modal-card {
  background: var(--ivory);
  border-radius: var(--radius);
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(21, 71, 107, 0.45);
}

.terms-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.terms-modal-head h2 { font-size: 1.3rem; }
.terms-modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.terms-modal-close svg { width: 15px; height: 15px; }

.terms-modal-body {
  padding: 1.2rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}
.terms-modal-body h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-deep);
  margin-top: 1.3rem;
  margin-bottom: 0.5rem;
}
.terms-modal-body h4:first-child { margin-top: 0; }
.terms-modal-body ul {
  padding-left: 1.2rem;
  list-style: disc;
}
.terms-modal-body li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.terms-modal-foot {
  padding: 1.2rem 1.6rem 1.5rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.terms-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 1rem;
  cursor: pointer;
}
.terms-agree-row input {
  margin-top: 0.2rem;
  width: 17px; height: 17px;
  accent-color: var(--teal-deep);
  flex-shrink: 0;
}
#termsContinueBtn.is-disabled,
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 600px) {
  .terms-modal-card { max-height: 92vh; }
}

/* ==========================================================================
   Gift Sets — budget tiles on the homepage
   ========================================================================== */
.gift-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.gift-tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2.4rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.gift-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(21, 71, 107, 0.35);
  border-color: var(--teal);
}
.gift-tier-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
}
.gift-tier-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.gift-tier-card-custom {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.gift-tier-card-custom .gift-tier-price,
.gift-tier-card-custom .gift-tier-label {
  color: var(--white);
}
.gift-tier-card-custom:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* ==========================================================================
   Custom Gift Set builder page
   ========================================================================== */
.builder-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.builder-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.pick-list { display: flex; flex-direction: column; }
.pick-row {
  display: grid;
  grid-template-columns: auto 56px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.pick-row input[type="checkbox"] {
  width: 19px; height: 19px;
  accent-color: var(--teal-deep);
}
.pick-row img, .pick-row video { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.pick-row-name { font-size: 0.95rem; }
.pick-row-cat { font-size: 0.72rem; color: var(--teal); display: block; margin-bottom: 0.15rem; }
.pick-row-price { font-family: var(--font-display); color: var(--navy); white-space: nowrap; }

.selection-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: sticky;
  top: 100px;
}
.selection-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.selection-list { margin-bottom: 1rem; max-height: 260px; overflow-y: auto; }
.selection-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.selection-list li button {
  background: none; border: none; color: #b23b3b; font-size: 0.78rem; padding: 0;
}
.selection-empty { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; }

@media (max-width: 900px) {
  .builder-layout { grid-template-columns: 1fr; }
  .selection-card { position: static; }
}

/* ==========================================================================
   Hero "next" arrow — scrolls to Why Resinique Studio
   ========================================================================== */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: clamp(2rem, 5vh, 3.2rem);
  color: var(--teal-deep);
  opacity: 0;
  animation: reveal-up 1s var(--ease) forwards;
  animation-delay: 3.1s;
}
.hero-scroll-cue span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.hero-scroll-cue svg {
  width: 26px; height: 26px;
  animation: cue-bounce 1.8s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Why Resinique Studio
   ========================================================================== */
.why-intro {
  max-width: 680px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.why-intro .section-head h2 { font-size: var(--step-3); }
.why-intro p.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 0.8rem;
}
.why-intro p.body {
  color: var(--ink-soft);
  margin-top: 1rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(21, 71, 107, 0.3);
}
.why-card-icon { font-size: 1.6rem; margin-bottom: 0.7rem; display: block; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: var(--ink-soft); }

.why-signoff {
  text-align: center;
  margin-top: 2.8rem;
}
.why-signoff .signoff-brand {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--teal-deep);
  display: block;
}
.why-signoff p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
  margin-top: 0.3rem;
}

/* ==========================================================================
   Video showcase
   ========================================================================== */
.video-showcase-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}
.video-showcase-item {
  position: relative;
  height: clamp(260px, 46vh, 400px);
  width: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
}
.video-showcase-item video {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  background: var(--ink);
}
.video-showcase-fallback {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}
/* Only shown once the browser actually fails to load the video file
   (see the onerror handler on each <video> in index.html) — never covers
   a video that's playing correctly. */
.video-showcase-item.video-missing video { display: none; }
.video-showcase-item.video-missing .video-showcase-fallback { display: flex; }
.video-showcase-cta { text-align: center; }

@media (max-width: 700px) {
  .video-showcase-grid { flex-direction: column; }
  .video-showcase-item { height: auto; width: min(100%, 340px); }
  .video-showcase-item video { width: 100%; height: auto; }
}

/* ==========================================================================
   Customer love — testimonial screenshots
   ========================================================================== */
.testimonial-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.testimonial-card {
  height: clamp(320px, 60vh, 560px);
  width: auto;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -22px rgba(21, 71, 107, 0.35);
  object-fit: contain;
  background: var(--white);
}
@media (max-width: 700px) {
  .testimonial-card { height: auto; width: min(100%, 320px); }
}


/* ==========================================================================
   New Launch — homepage section + popup
   ========================================================================== */
.launch-badge {
  display: inline-block;
  padding: 0.4em 1.1em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.launch-list { margin: 0.9rem 0 1.1rem; }
.launch-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.launch-list li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
  top: 0.18em;
}
.launch-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}
.launch-price strong { font-weight: 500; color: var(--teal-deep); }
.launch-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.3rem 0 1.3rem;
}

.launch-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 920px;
  margin-inline: auto;
}
.launch-feature-media video {
  display: block;
  height: clamp(320px, 60vh, 520px);
  aspect-ratio: 442 / 640;
  width: auto;
  object-fit: cover;
  background: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -22px rgba(21, 71, 107, 0.35);
}
.launch-feature-text h2 { font-size: var(--step-3); line-height: 1.15; }

@media (max-width: 800px) {
  .launch-feature { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .launch-feature-media video { height: auto; width: min(100%, 320px); }
  .launch-list { display: inline-block; text-align: left; }
}

/* Popup */
.launch-popup {
  position: fixed; inset: 0;
  z-index: 120;
  background: rgba(21, 71, 107, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.launch-popup.is-open { opacity: 1; visibility: visible; }
.launch-popup-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ivory);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  box-shadow: 0 30px 70px -20px rgba(21, 71, 107, 0.5);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.55s var(--ease);
}
.launch-popup.is-open .launch-popup-card { transform: none; }
.launch-popup-media { background: var(--ink); min-height: 100%; }
.launch-popup-media video {
  display: block;
  width: 100%; height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.launch-popup-body {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.launch-popup-body h2 { font-size: var(--step-2); line-height: 1.2; }
.launch-popup-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.launch-popup-close svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .launch-popup-card { grid-template-columns: 1fr; max-height: 92vh; }
  .launch-popup-media video { min-height: 0; height: 36vh; }
  .launch-popup-body { padding: 1.5rem 1.4rem 1.8rem; }
}

/* ==========================================================================
   Customer review video (under the testimonial screenshots)
   ========================================================================== */
.testimonial-video {
  display: block;
  margin: 1.4rem auto 0;
  height: clamp(320px, 60vh, 560px);
  aspect-ratio: 720 / 1280;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -22px rgba(21, 71, 107, 0.35);
}
@media (max-width: 700px) {
  .testimonial-video { height: auto; width: min(100%, 320px); }
}