/* ==========================================================================
   Yaneth Reyes — Fine Jewelry Inspired by Nature
   Palette: ivory canvas, mid blue, warm brown, sage green
   Type: Cormorant Garamond (display) + Montserrat (body)
   ========================================================================== */

:root {
  /* Note: --forest/--gold names are legacy; values are now blue/brown */
  --ivory: #FAF6EF;
  --cream: #E7EEEF;
  --forest: #186670;
  --forest-deep: #104046;
  --forest-soft: #2D828E;
  --gold: #A97B4F;
  --gold-soft: #DCC9AC;
  --gold-text: #7A5636;
  --leaf: #53745C;
  --ink: #22272B;
  --muted: #565F66;
  --line: #D5E0E2;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 3px;
  --shadow-soft: 0 18px 45px -18px rgba(16, 64, 70, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  /* Fluid base: 16px on phones, easing up to ~17.5px on desktop for easier reading */
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.09rem);
  font-weight: 400;
  line-height: 1.68;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--forest);
}

p { margin: 0 0 var(--space-2); }

.container {
  width: min(1200px, 90vw);
  margin-inline: auto;
}

.container--narrow { width: min(780px, 90vw); }

/* --------------------------------------------------------------------------
   Utility text
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: var(--space-2);
}

.eyebrow--light { color: var(--gold-soft); }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease), transform 220ms var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--solid {
  background: var(--forest);
  color: var(--ivory);
}

.btn--solid:hover { background: var(--forest-soft); }

.btn--ghost {
  border-color: var(--gold);
  color: var(--gold-text);
  background: transparent;
}

.btn--ghost:hover { background: rgba(169, 123, 79, 0.1); }

.btn--gold {
  background: var(--gold);
  color: var(--forest-deep);
}

.btn--gold:hover { background: var(--gold-soft); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  /* Tall centered-logo header: scrolls away rather than pinning
     ~200px of chrome to the top of every view */
  position: relative;
  z-index: 50;
  /* Brand gradient, matching yanethreyes.com */
  background: linear-gradient(180deg, #186670 0%, #104046 100%);
  border-bottom: 1px solid rgba(220, 201, 172, 0.25);
}

.topbar {
  background: #0C3439;
  border-bottom: 1px solid rgba(220, 201, 172, 0.15);
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.topbar a {
  color: var(--gold-soft);
  text-decoration: none;
  /* Generous vertical padding keeps these at the 44px tap-target minimum on phones */
  padding: 0.72rem 0.2rem;
  transition: color 200ms var(--ease);
}

.topbar a:hover { color: var(--ivory); }

.topbar__sep { color: rgba(220, 201, 172, 0.45); }

@media (max-width: 480px) {
  .topbar__inner { justify-content: center; }
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.15rem 0 0.9rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__brand img {
  /* Kept a step larger than the footer logo (~140px) per the owner's request */
  height: clamp(120px, 13vw, 170px);
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  padding: 0.5rem 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.site-nav a:hover { color: var(--gold-soft); }

.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(220, 201, 172, 0.5);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-soft);
  margin: 4px 0;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest-deep);
    border-bottom: 1px solid rgba(220, 201, 172, 0.25);
    padding: 0.5rem 4vw 1.25rem;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(250, 246, 239, 0.08);
  }

  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(24, 102, 112, 0.10), transparent 60%),
    var(--ivory);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.hero h1 {
  /* Smaller floor so the headline doesn't dominate a phone screen */
  font-size: clamp(2.15rem, 5.2vw, 4.2rem);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero__figure {
  position: relative;
  margin: 0;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  z-index: 0;
}

.hero__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero__caption {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   Ornament divider
   -------------------------------------------------------------------------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin: 0 auto var(--space-3);
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: clamp(40px, 8vw, 90px);
  background: linear-gradient(to var(--dir, right), transparent, var(--gold-soft));
}

.ornament::before { --dir: right; }
.ornament::after { --dir: left; }

/* --------------------------------------------------------------------------
   Embedded consultation form (Jotform)
   -------------------------------------------------------------------------- */

.form-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(0.5rem, 2vw, 1.25rem);
  overflow: hidden;
}

.form-frame iframe {
  display: block;
  width: 100%;
  /* The embed handler sets the real height; this is the pre-load reservation
     so the section doesn't jump as the form arrives. */
  min-height: 780px;
  border: none;
}

.form-note {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.section--cream { background: var(--cream); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section__head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.section__head .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Feature cards (home) & gallery (collections)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.piece {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.piece:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.piece__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream);
}

.piece__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.piece:hover .piece__media img { transform: scale(1.045); }

.piece__body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.piece__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.piece__body p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Gallery variant: clickable buttons for lightbox */

.gallery-grid {
  display: grid;
  /* Larger minimum keeps pieces to 3 roomy columns on desktop rather than 4 cramped ones */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.gallery-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.gallery-item figure { margin: 0; }

.gallery-item .gallery-item__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.gallery-item:hover img { transform: scale(1.045); }

.gallery-item figcaption {
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   Dark quote band
   -------------------------------------------------------------------------- */

.band {
  background:
    radial-gradient(90% 130% at 15% 0%, rgba(220, 201, 172, 0.12), transparent 55%),
    var(--forest-deep);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.band blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ivory);
}

.band cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Split feature (about teaser, visit blocks)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media { order: 2; }

.split__media {
  margin: 0;
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.split__media::after {
  content: "";
  position: absolute;
  inset: 10% -5% -5% 10%;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  z-index: -1;
}

.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --------------------------------------------------------------------------
   Visit / contact
   -------------------------------------------------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.info-card h3 {
  font-size: 1.45rem;
  margin-bottom: var(--space-1);
}

.info-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.info-card .placeholder {
  color: #A0764B;
  font-style: italic;
}

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: linear-gradient(180deg, #186670 0%, #104046 100%);
  color: rgba(250, 246, 239, 0.78);
  padding: clamp(3rem, 7vw, 4.5rem) 0 var(--space-4);
  text-align: center;
}

.site-footer__logo {
  width: min(230px, 48vw);
  margin: 0 auto var(--space-3);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-bottom: var(--space-3);
}

.site-footer nav a {
  color: var(--ivory);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--gold-soft); }

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: var(--space-3);
}

.site-footer__social a {
  color: var(--gold-soft);
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.site-footer__social a:hover {
  color: var(--ivory);
  transform: translateY(-2px);
}

.site-footer__social svg { display: block; }

.site-footer__meta {
  font-size: 0.82rem;
  line-height: 1.9;
}

.site-footer__meta a { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(11, 42, 46, 0.93);
}

.lightbox.is-open { display: flex; }

.lightbox__inner {
  max-width: min(860px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  margin-top: var(--space-2);
  color: var(--ivory);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  background: transparent;
  border: 1px solid rgba(250, 246, 239, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--ivory);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.lightbox__close:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .piece,
  .gallery-item,
  .piece__media img,
  .gallery-item img {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; text-align: center; }
  .site-header__brand img { height: 112px; }
}

/* --------------------------------------------------------------------------
   Rotating 3D showcase (collections page)
   -------------------------------------------------------------------------- */

.c3d-section { --c3d-w: clamp(250px, 64vw, 500px); }

.c3d__stage {
  position: relative;
  height: clamp(400px, 96vw, 740px);
  perspective: 2400px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}

.c3d__stage:active { cursor: grabbing; }

.c3d__stage:focus-visible {
  box-shadow: inset 0 0 0 2px var(--forest-soft);
  border-radius: var(--radius);
}

.c3d__ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.c3d__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--c3d-w);
  aspect-ratio: 3 / 4;
  margin: 0;
  margin-left: calc(var(--c3d-w) / -2);
  margin-top: calc(var(--c3d-w) * 2 / -3);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}

.c3d__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c3d__card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.9rem 0.75rem;
  background: linear-gradient(to top, rgba(15, 32, 43, 0.82), transparent);
  color: var(--white);
}

.c3d__card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.c3d__card figcaption span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.c3d__controls {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.c3d__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.c3d__btn:hover,
.c3d__btn:focus-visible {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* Stepped (reduced-motion) mode: buttons animate via CSS transitions */
.c3d--stepped .c3d__ring { transition: transform 450ms var(--ease); }
.c3d--stepped .c3d__card { transition: opacity 450ms linear; }

/* Hero variant: carousel sits in the hero's right column */
.hero__c3d {
  --c3d-w: clamp(210px, 26vw, 360px);
  position: relative;
}

.hero__c3d .c3d__stage { height: clamp(330px, 40vw, 540px); }

.hero__c3d .c3d__controls { margin-top: var(--space-2); }

@media (max-width: 820px) {
  .hero__c3d { --c3d-w: clamp(200px, 58vw, 300px); }
  .hero__c3d .c3d__stage { height: clamp(300px, 84vw, 440px); }
}

/* --------------------------------------------------------------------------
   Google review cards (home)
   -------------------------------------------------------------------------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.review {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
}

.review__stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.review__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
}

.review__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review__quote {
  margin: 0;
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.5;
}

.review__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.review__meta strong {
  color: var(--forest);
  letter-spacing: 0.04em;
}

.review .placeholder {
  color: var(--gold-text);
  font-style: italic;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Animated testimonials (home reviews) — vanilla port of AnimatedTestimonials
   -------------------------------------------------------------------------- */

.testi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}

.testi__deck {
  position: relative;
  height: clamp(280px, 60vw, 400px);
}

.testi__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  opacity: 0.7;
  transition: transform 500ms var(--ease), opacity 500ms var(--ease);
  will-change: transform;
}

.testi__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi__photo.is-active img { animation: testi-pop 500ms var(--ease); }

@keyframes testi-pop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-22px); }
  100% { transform: translateY(0); }
}

.testi__item { display: none; }
.testi__item.is-active { display: block; }

.testi__name {
  font-size: 1.5rem;
  margin: var(--space-2) 0 0.1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.testi__meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms var(--ease) 40ms, transform 300ms var(--ease) 40ms;
}

.testi__item.is-in .testi__name,
.testi__item.is-in .testi__meta {
  opacity: 1;
  transform: none;
}

.testi__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.55;
}

.testi__quote span {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(6px);
  transition: opacity 250ms var(--ease), filter 250ms var(--ease),
              transform 250ms var(--ease);
  transition-delay: calc(var(--i) * 18ms);
}

.testi__item.is-in .testi__quote span {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.testi__nav {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (max-width: 820px) {
  .testi { grid-template-columns: 1fr; }
  .testi__deck { max-width: 420px; margin-inline: auto; width: 100%; }
  .testi__nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .testi__photo { transition: none; }
  .testi__photo.is-active img { animation: none; }
  .testi__quote span,
  .testi__name,
  .testi__meta { transition: none; }
}

/* --------------------------------------------------------------------------
   Hero auto-scrolling strip (vanilla port of image-auto-slider)
   -------------------------------------------------------------------------- */

.hero__intro {
  text-align: center;
  max-width: 800px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.hero__outro {
  text-align: center;
  max-width: 720px;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero__intro .lede,
.hero__outro .lede { margin-inline: auto; }

.hero__intro .hero__actions,
.hero__outro .hero__actions { justify-content: center; }

.hero__slider {
  overflow: hidden;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0;
  mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.slider__track {
  display: flex;
  width: max-content;
  animation: hero-scroll 55s linear infinite;
}

.slider__dup { display: contents; }

.slider__item {
  flex-shrink: 0;
  width: clamp(220px, 30vw, 420px);
  aspect-ratio: 1 / 1;
  margin-right: clamp(1rem, 2vw, 1.75rem);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 300ms var(--ease), filter 300ms var(--ease);
}

.slider__item:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hero-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pause when hovering anywhere on the strip so pieces can be admired */
.hero__slider:hover .slider__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .slider__track { animation: none; }
  .hero__slider { overflow-x: auto; mask: none; -webkit-mask: none; }
  .slider__item { transition: none; }
}

/* --------------------------------------------------------------------------
   Visit hero (vanilla port of hero-section-2): content + angled clip-path image
   -------------------------------------------------------------------------- */

.visit-hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ivory);
  overflow: hidden;
}

@media (min-width: 768px) {
  .visit-hero { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}

.visit-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem);
}

.visit-hero__content > * { max-width: 34rem; }

.visit-hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

.visit-hero h2 em {
  font-style: italic;
  color: var(--gold-text);
}

.visit-hero__rule {
  width: 5rem;
  height: 3px;
  background: var(--forest);
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
}

.visit-hero .lede { margin-bottom: clamp(1.5rem, 3vw, 2rem); }

.visit-hero__cta {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.visit-hero__cta:hover {
  color: var(--forest-soft);
  border-bottom-color: var(--gold);
}

.visit-hero__contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 560px) {
  .visit-hero__contact { grid-template-columns: repeat(3, auto); gap: 1.5rem; }
}

.visit-hero__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.visit-hero__info svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--forest);
}

.visit-hero__info a { color: inherit; text-decoration: none; }
.visit-hero__info a:hover { color: var(--forest); }

.visit-hero__media {
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .visit-hero__media { min-height: 100%; }
}

/* Diagonal clip-path + wipe.
   NOTE: the image is visible by default (no dependency on JS / is-visible).
   A zero-area clip-path stops IntersectionObserver from ever firing, which
   would hide the image entirely — so the wipe is a pure-CSS load animation
   whose END state is the visible diagonal. Mobile shows a plain rectangle. */
@media (min-width: 768px) {
  .visit-hero__media {
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
    animation: visit-wipe 1.1s var(--ease) both;
  }

  .visit-hero--reverse { grid-template-columns: 0.9fr 1.1fr; }
  .visit-hero--reverse .visit-hero__content { order: 2; }
  .visit-hero--reverse .visit-hero__media {
    order: 1;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    animation-name: visit-wipe-rev;
  }
}

@keyframes visit-wipe {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to   { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%); }
}

@keyframes visit-wipe-rev {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .visit-hero__media { animation: none; }
}

/* --------------------------------------------------------------------------
   Maker hero (About page) — full-bleed image with left-aligned overlay text
   -------------------------------------------------------------------------- */

.maker-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 720px);
  background-image: url('img/taller.jpg');
  background-size: cover;
  background-position: 62% 28%;
  overflow: hidden;
}

/* Dark gradient, strongest on the left so white text stays legible */
.maker-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 42, 46, 0.86) 0%,
    rgba(11, 42, 46, 0.66) 34%,
    rgba(11, 42, 46, 0.28) 62%,
    rgba(11, 42, 46, 0.05) 100%
  );
}

.maker-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.maker-hero__content { max-width: 40rem; }

.maker-hero .eyebrow { color: var(--gold-soft); }

.maker-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  margin-bottom: var(--space-3);
}

.maker-hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.maker-hero__sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.maker-hero .btn--light {
  background: var(--ivory);
  color: var(--forest-deep);
}

.maker-hero .btn--light:hover { background: #fff; }

@media (max-width: 700px) {
  .maker-hero {
    min-height: 0;
    background-position: 68% 22%;
  }
  /* Taller overlay column on phones so text never sits on a bright patch */
  .maker-hero::before {
    background: linear-gradient(
      180deg,
      rgba(11, 42, 46, 0.62) 0%,
      rgba(11, 42, 46, 0.82) 100%
    );
  }
  .maker-hero__inner { padding: clamp(3.5rem, 16vw, 6rem) 0; }
}

/* --------------------------------------------------------------------------
   Full-screen hero slideshow (home) — same overlay treatment as .maker-hero
   -------------------------------------------------------------------------- */

.hero-full {
  position: relative;
  display: flex;
  align-items: center;
  /* Fill what's left of the viewport under the header, but never squash short screens */
  min-height: max(560px, calc(100svh - 210px));
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-full__slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
  /* Slow drift keeps a still photo feeling alive while it's on screen */
  animation: hero-drift 9s ease-out forwards;
}

@keyframes hero-drift {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* Dark gradient, strongest at left so the white text stays legible */
.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(11, 42, 46, 0.88) 0%,
    rgba(11, 42, 46, 0.70) 34%,
    rgba(11, 42, 46, 0.32) 62%,
    rgba(11, 42, 46, 0.10) 100%
  );
}

.hero-full__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-full__content { max-width: 42rem; }

.hero-full .eyebrow { color: var(--gold-soft); }

.hero-full h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  margin-bottom: var(--space-3);
}

.hero-full h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.hero-full__sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.hero-full__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* Slide indicators */
.hero-full__dots {
  position: absolute;
  z-index: 3;
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.hero-full__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition: background 250ms var(--ease), transform 250ms var(--ease);
}

.hero-full__dot.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: scale(1.15);
}

/* Bigger tap targets on touch screens without changing the visual dot size */
@media (pointer: coarse) {
  .hero-full__dots { gap: 1rem; }
  .hero-full__dot {
    position: relative;
  }
  .hero-full__dot::after {
    content: "";
    position: absolute;
    inset: -14px;
  }
}

@media (max-width: 700px) {
  .hero-full {
    min-height: max(520px, calc(100svh - 190px));
  }
  /* Vertical scrim on phones: text sits over the middle of the photo */
  .hero-full::before {
    background: linear-gradient(
      180deg,
      rgba(11, 42, 46, 0.58) 0%,
      rgba(11, 42, 46, 0.80) 65%,
      rgba(11, 42, 46, 0.88) 100%
    );
  }
  .hero-full__inner { padding: clamp(3rem, 14vw, 5rem) 0 clamp(4rem, 16vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active { animation: none; }
}

/* --------------------------------------------------------------------------
   Hero slideshow v2 — bolder buttons, arrows, wide-composite framing
   -------------------------------------------------------------------------- */

/* The slides are pre-composed 16:9 frames (piece on the right, soft backdrop
   on the left), so they only need centering — no per-image focal tuning. */
.hero-full .hero-slide { background-position: center; }

/* The composites carry their own scrim, so the CSS overlay can be lighter
   and stop washing out the jewelry. */
.hero-full::before {
  background: linear-gradient(
    90deg,
    rgba(11, 42, 46, 0.72) 0%,
    rgba(11, 42, 46, 0.45) 38%,
    rgba(11, 42, 46, 0.12) 66%,
    rgba(11, 42, 46, 0) 100%
  );
}

/* --- Buttons: bigger, with real weight against a photo --- */
.hero-full__actions .btn {
  padding: 1.1rem 2.4rem;
  font-size: 0.84rem;
  border-radius: 4px;
}

.hero-full .btn--light {
  background: var(--ivory);
  color: var(--forest-deep);
  border-color: var(--ivory);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

.hero-full .btn--light:hover {
  background: #fff;
  border-color: #fff;
}

/* Frosted panel so the secondary button reads on any photo */
.hero-full .btn--outline-light {
  background: rgba(11, 42, 46, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}

.hero-full .btn--outline-light:hover {
  background: rgba(11, 42, 46, 0.62);
  border-color: #fff;
}

/* --- Arrows --- */
.hero-full__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(11, 42, 46, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease),
              transform 220ms var(--ease);
}

.hero-full__arrow:hover {
  background: rgba(11, 42, 46, 0.68);
  border-color: #fff;
}

.hero-full__arrow--prev { left: clamp(0.75rem, 2.5vw, 2rem); }
.hero-full__arrow--next { right: clamp(0.75rem, 2.5vw, 2rem); }

.hero-full__arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero-full__arrow--next:hover { transform: translateY(-50%) translateX(3px); }

/* Larger, clearer dots to match the heavier controls */
.hero-full__dot {
  width: 11px;
  height: 11px;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 700px) {
  /* Portrait phones: show the right-hand side of the composite,
     which is where the piece itself sits. */
  .hero-full .hero-slide { background-position: 78% center; }

  .hero-full__arrow {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: clamp(1rem, 4vw, 2rem);
    transform: none;
  }
  .hero-full__arrow--prev { left: clamp(1rem, 6vw, 2rem); }
  .hero-full__arrow--next { right: clamp(1rem, 6vw, 2rem); }
  .hero-full__arrow--prev:hover,
  .hero-full__arrow--next:hover { transform: none; }

  .hero-full__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full__arrow { transition: none; }
}

/* --------------------------------------------------------------------------
   Hero controls bar — arrows flanking the dots, clear of the text column
   -------------------------------------------------------------------------- */

/* The tall centered-logo header eats ~290px, so reserve less and tighten
   padding: the CTA buttons must land above the fold. */
.hero-full {
  min-height: max(480px, calc(100svh - 300px));
}

.hero-full__inner {
  padding: clamp(1.5rem, 3.4vw, 3rem) 0 clamp(4.5rem, 8vw, 6rem);
}

.hero-full h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: var(--space-2);
}

.hero-full__sub { margin-bottom: var(--space-3); }

.hero-full__controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

/* Override the earlier absolute placement now that they live in the bar */
.hero-full__arrow,
.hero-full__arrow--prev,
.hero-full__arrow--next {
  position: static;
  transform: none;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.hero-full__arrow--prev:hover { transform: translateX(-3px); }
.hero-full__arrow--next:hover { transform: translateX(3px); }

.hero-full__dots {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
}

@media (max-width: 700px) {
  .hero-full { min-height: max(460px, calc(100svh - 260px)); }

  .hero-full__arrow,
  .hero-full__arrow--prev,
  .hero-full__arrow--next {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
  }
  .hero-full__arrow--prev:hover,
  .hero-full__arrow--next:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full__arrow--prev:hover,
  .hero-full__arrow--next:hover { transform: none; }
}

/* Phones: text sits over the piece itself, so deepen the scrim under the copy */
@media (max-width: 700px) {
  .hero-full::before {
    background: linear-gradient(
      180deg,
      rgba(11, 42, 46, 0.66) 0%,
      rgba(11, 42, 46, 0.80) 45%,
      rgba(11, 42, 46, 0.90) 100%
    );
  }
}

/* --------------------------------------------------------------------------
   Floral backdrop (Collection page) — the pattern used whole, never sliced.
   One fixed, cover-sized layer, so there is no tiling and no seams.
   -------------------------------------------------------------------------- */

.bloom-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;          /* decorative only */
  background-image: url('img/bloom-backdrop.jpg');
  background-size: cover;         /* fills any screen — never repeats */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.16;
  animation: bloom-breathe 42s ease-in-out infinite;
}

/* A slow swell so the pattern feels alive rather than pasted on */
@keyframes bloom-breathe {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%      { opacity: 0.20; transform: scale(1.04); }
}

/* Softens the pattern behind the middle of the page, where the copy sits,
   while leaving it richer along the edges. */
.bloom-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 85% at 50% 45%,
    rgba(250, 246, 239, 0.85) 0%,
    rgba(250, 246, 239, 0.45) 45%,
    rgba(250, 246, 239, 0) 100%
  );
}

/* Content floats above the backdrop; the banded sections go translucent
   so the flowers carry through the whole page. */
.page-collection main { position: relative; z-index: 1; }

.page-collection .section--cream {
  background: rgba(231, 238, 239, 0.55);
}

.page-collection .gallery-item,
.page-collection .lightbox { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .bloom-bg {
    animation: none;
    opacity: 0.15;
  }
}

/* --------------------------------------------------------------------------
   Collection filters — browse by piece and by stone
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.filters {
  /* Stays put while the grid scrolls underneath */
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.1rem, 3vw, 2rem);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-soft);
}

.filters__group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.filters__group + .filters__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.filters__label {
  flex: 0 0 auto;
  min-width: 3.6rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  /* comfortable tap target on phones */
  padding: 0.62rem 1.05rem;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease);
}

.filter-chip:hover {
  border-color: var(--forest-soft);
  background: rgba(24, 102, 112, 0.08);
}

.filter-chip.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ivory);
}

.filters__count {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.filters__empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: var(--space-4) 0;
}

.filters__reset {
  font: inherit;
  color: var(--gold-text);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* Pieces filtered out are removed from layout and from the tab order */
.gallery-item[hidden] { display: none; }

@media (max-width: 560px) {
  /* Pinned to the top on phones, so it has to stay shallow: each group
     becomes one swipeable row instead of wrapping to four. */
  .filters { padding: 0.75rem 0.9rem; }

  .filters__group { align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
  .filters__group + .filters__group { margin-top: 0.5rem; padding-top: 0.5rem; }

  .filters__label { flex: 0 0 auto; min-width: 0; font-size: 0.62rem; }

  .filters__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filters__chips::-webkit-scrollbar { display: none; }

  /* Keep every chip at the 44px minimum tap target on phones */
  .filter-chip {
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    white-space: nowrap;
  }

  .filters__count { margin-top: 0.5rem; font-size: 0.72rem; }
}


/* Collection page: filters sit directly under the menu, no intro copy */
.page-collection .section:first-of-type { padding-top: var(--space-3); }

/* Keep the sticky bar clear of the piece cards as they pass beneath */
.page-collection .filters { box-shadow: 0 10px 24px -14px rgba(16, 64, 70, 0.45); }

/* --------------------------------------------------------------------------
   Services grid + owner credit
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Services carousel (Home + About)
   -------------------------------------------------------------------------- */

.svc-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.svc-track {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.25rem 1rem;
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;
}

.svc-track::-webkit-scrollbar { display: none; }

.svc-track:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
  border-radius: 10px;
}

.service {
  /* three across on desktop, sliding one card at a time */
  flex: 0 0 calc((100% - (var(--space-3) * 2)) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
              border-color 240ms var(--ease);
}

.service:hover {
  transform: translateY(-4px);
  border-color: var(--forest-soft);
  box-shadow: 0 22px 40px -22px rgba(16, 64, 70, 0.45);
}

.service__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.service:hover .service__media img { transform: scale(1.05); }

.service__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service h3 {
  font-size: 1.24rem;
  line-height: 1.25;
  margin: 0;
}

.service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.62;
}

.svc-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--forest);
  background: var(--white);
  color: var(--forest);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(16, 64, 70, 0.5);
  transition: background 200ms var(--ease), color 200ms var(--ease),
              opacity 200ms var(--ease);
}

.svc-arrow:hover:not(:disabled) {
  background: var(--forest);
  color: #fff;
}

.svc-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 900px) {
  .service { flex-basis: calc((100% - var(--space-3)) / 2); }
}

@media (max-width: 620px) {
  .service { flex-basis: 86%; }
  .svc-arrow { width: 40px; height: 40px; }
  .svc-carousel { gap: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-track { scroll-behavior: auto; }
  .service, .service__media img { transition: none; }
}

.owner-credit {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0 0 var(--space-3);
  padding-left: 0.9rem;
  border-left: 3px solid var(--gold);
}

.owner-credit strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
}

.owner-credit span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
}

/* --------------------------------------------------------------------------
   Buttons — heavier weight and clearer edges so they read as buttons
   -------------------------------------------------------------------------- */

.btn {
  padding: 1.05rem 2.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-width: 2px;
  border-radius: 4px;
  box-shadow: 0 6px 16px -8px rgba(16, 64, 70, 0.5);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(16, 64, 70, 0.55);
}

.btn--solid {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.btn--solid:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

/* Was a thin outline on ivory — now a filled panel with a solid edge */
.btn--ghost {
  background: var(--white);
  border-color: var(--gold);
  color: var(--gold-text);
}

.btn--ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn--gold:hover {
  background: var(--gold-text);
  border-color: var(--gold-text);
  color: #fff;
}

/* The inline "Read our story"-style links now read as outlined buttons */
.visit-hero__cta {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border: 2px solid var(--forest);
  border-radius: 4px;
  color: var(--forest);
  background: var(--white);
  box-shadow: 0 6px 16px -8px rgba(16, 64, 70, 0.45);
  transition: background 200ms var(--ease), color 200ms var(--ease),
              transform 200ms var(--ease);
}

.visit-hero__cta:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .visit-hero__cta:hover { transform: none; }
}
