/* Latest visual refinements */
:root { --ink: #0d3316; }
.values-heading h2 { font-family: 'Bona Nova', serif; }

/* Give each chapter of the landing page breathing room and keep anchors clear
   of the floating navigation. */
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
main { display: flex; flex-direction: column; gap: clamp(64px, 7vw, 108px); padding-bottom: 48px; }
main > section { margin-top: 0; margin-bottom: 0; }
main > section[id] { scroll-margin-top: 132px; }
#create { scroll-margin-top: 150px; }

.gallery-grid article:first-child img { object-position: center; }

/* Improve readability across section labels and supporting copy. */
.eyebrow, .values-heading small, .story-copy small, .process-heading small,
.finder-intro small, .testimonial-intro small {
  font-size: 12px;
  letter-spacing: .8px;
}

.story-copy p { font-size: 17px; line-height: 1.6; }
.hero-copy p { font-size: 19px; }
.finder-intro i { font-size: 18px; }
.option small, .process-steps p, .cta p { font-size: 14px; line-height: 1.5; }
.finder .option b { width: 100%; max-width: 190px; justify-self: center; font-size: 15px; line-height: 1.2; text-align: center; }
.finder .option small { width: 100%; max-width: 205px; justify-self: center; text-align: center; }
.cta small { font-size: 13px; }
.values-wrap {
  padding: 52px 0 30px;
  background: linear-gradient(120deg, #fff9f7, #f7eeea, #fbe9e5, #fff9f7);
  background-size: 220% 220%;
}
.values-heading h2 { font-size: 38px; }
.values { padding-top: 42px; padding-bottom: 38px; }
.values p { font-size: 16px; line-height: 1.55; max-width: 280px; }
.values b { font-size: 17px; margin-bottom: 11px; }

/* Let the full section respond as one soft, editorial canvas. */
.values > div {
  padding: 24px 20px;
}
.values > div span,
.values > div span img,
.values > div b,
.values > div p {
  transition: color .4s ease, transform .45s cubic-bezier(.2, .7, .2, 1),
    opacity .4s ease, filter .4s ease;
}
.values > div span { position: relative; }
.values > div span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #D93545;
  opacity: 0;
  transform: rotate(0);
  transition: opacity .4s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
  -webkit-mask: var(--value-icon) center / contain no-repeat;
  mask: var(--value-icon) center / contain no-repeat;
}
.values > div:nth-child(1) span { --value-icon: url('public/icon-gift.png'); }
.values > div:nth-child(2) span { --value-icon: url('public/icon-heart-hands.png'); }
.values > div:nth-child(3) span { --value-icon: url('public/icon-easy.png'); }
.values > div:nth-child(4) span { --value-icon: url('public/icon-infinity.png'); }
@media (hover: hover) and (pointer: fine) {
  /* This direct hover state works in Chrome without mask or :has() support. */
  .values > div:hover span { transform: translate3d(0, -3px, 0) scale(1.045); }
  .values > div:hover span img {
    transform: rotate(-2deg);
    filter: invert(27%) sepia(69%) saturate(1735%) hue-rotate(324deg) brightness(91%) contrast(87%);
  }
  .values > div:hover span::after { opacity: .22; transform: rotate(-2deg); }
  .values > div:hover b { color: #D93545; }
  .values > div:hover p { opacity: .82; }
}
@supports selector(.values-wrap:has(.values > div:hover)) {
  @media (hover: hover) and (pointer: fine) {
    .values-wrap:has(.values > div:hover) {
      animation: values-background-drift 7s ease-in-out infinite;
    }
  }
}
@keyframes values-background-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Keep the opening composition focused, with the next action visible sooner. */
.hero { min-height: 0; padding-top: 10px; padding-bottom: 42px; }
.video-card { height: min(440px, 58vh); }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -8px 0 25px;
  padding: 0;
  list-style: none;
  color: #0d3316;
  font-size: 12px;
  font-weight: 600;
}
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li:not(:last-child)::after { content: '•'; color: var(--coral); }

.finder-cue {
  display: block;
  margin-top: 8px;
  color: #6e6a68;
  font: 12px/1.35 'DM Sans', sans-serif;
}

.line-drawing {
  display: grid;
  place-items: center;
  background: var(--paper) !important;
  color: #a64f54;
}

.line-drawing img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Keep the supplied animated icons in their original colours. */
.gif-icon { filter: none !important; }

/* A soft blush tint connects the supplied animated icons to the site palette. */
.process .gif-icon {
  filter: hue-rotate(172deg) saturate(2.75) brightness(.98) !important;
  mix-blend-mode: multiply;
  background: #fff9f7 !important;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.process .uploaded-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 15px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.process .uploaded-icon {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .process-steps > div:hover .uploaded-icon {
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 7px 10px rgba(217, 52, 69, .18));
  }
}

.process-steps span { color: var(--coral) !important; }

.hero-copy p, .story-copy p, .values p, .option small, .option b,
.process-steps p, .process-steps span, .cta p, .cta small, .finder-intro i,
.testimonial p, .testimonial small, footer div, .text-link { color: #0d3316; }

/* A calm motion cue for the primary choice finder. */
.finder { animation: finder-float 5s ease-in-out infinite; }
.finder { margin-bottom: 82px; }
.finder .option { animation: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; cursor: pointer; }
.finder .option.active { transform: scale(1.055); z-index: 3; border-width: 2px; box-shadow: 0 16px 30px rgba(217, 52, 69, .18); }
.option:not(.active) .selected-badge { display: none; }

@keyframes finder-float {
  50% { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(134, 72, 59, .12); }
}

@keyframes option-float {
  50% { transform: translateY(-4px); }
}

/* The primary CTA gently shifts through warm paper tones. */
.cta {
  background: linear-gradient(115deg, #f8e3dd, #fff8f3, #f0d5d1, #fff1eb, #f7dfdc);
  background-size: 420% 420%;
  animation: cta-glow 10s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.announcement {
  margin: 0;
  padding: 9px 16px;
  background: #4a6d5e;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .15px;
  box-shadow: none;
  clip-path: none;
}

.gallery-grid article { isolation: isolate; }
.gallery-grid article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(28, 19, 14, .45));
  opacity: 0;
  transition: opacity .28s ease;
  z-index: 1;
}
.gallery-grid article > a {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -38%);
  opacity: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  padding: 10px 17px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .28s ease, transform .28s ease;
}
.gallery-grid article:hover::after,
.gallery-grid article:focus-within::after { opacity: 1; }
.gallery-grid article:hover > a,
.gallery-grid article:focus-within > a { opacity: 1; transform: translate(-50%, -50%); }
.gallery-grid article:nth-child(1)::after { background: rgba(120, 146, 114, .82); }
.gallery-grid article:nth-child(2)::after { background: rgba(214, 66, 81, .82); }
.gallery-grid article:nth-child(3)::after { background: rgba(118, 183, 182, .84); }
.gallery-grid article:nth-child(4)::after { background: rgba(137, 111, 210, .83); }
.gallery-grid article:nth-child(1) > a { background: #789272; }
.gallery-grid article:nth-child(2) > a { background: #d64251; }
.gallery-grid article:nth-child(3) > a { background: #76b7b6; }
.gallery-grid article:nth-child(4) > a { background: #896fd2; }
.gallery-grid article > a { background: var(--paper) !important; }
.gallery-grid article:nth-child(1) > a { color: #789272; }
.gallery-grid article:nth-child(2) > a { color: #d64251; }
.gallery-grid article:nth-child(3) > a { color: #438d8c; }
.gallery-grid article:nth-child(4) > a { color: #7657c4; }

.process-start {
  display: inline-flex;
  margin-top: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.process-steps > div { text-align: center; }
.option.active > img { object-position: center 38%; }
.story-repeat { margin-bottom: 88px; }

/* Stable sticky-to-floating transition when returning to the top. */
.nav { position: relative !important; transition: height .25s ease, width .25s ease, margin .25s ease, box-shadow .25s ease; }
.nav:not(.is-scrolled) { margin-top: 0; }
.nav-spacer { height: 0; transition: height .25s ease; }
.nav.is-scrolled { position: fixed !important; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); margin: 0; }
@media (min-width: 901px) { .menu { display: none; } }

.dark-button, .coral-button, .next, .process-start, .video-overlay button {
  transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease, background-color .2s ease;
  outline: 2px solid transparent;
  outline-offset: 3px;
  position: relative;
  isolation: isolate;
}
.dark-button::before, .coral-button::before, .next::before, .process-start::before, .video-overlay button::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: -4px;
  padding: 2px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 74%, rgba(255,255,255,.2) 79%, #fff 85%, rgba(255,255,255,.2) 91%, transparent 96% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .25s ease;
}
.dark-button:hover, .coral-button:hover, .next:hover, .process-start:hover, .video-overlay button:hover {
  transform: translateY(-1px);
  outline-color: transparent;
  box-shadow: 0 8px 18px rgba(13, 51, 22, .16), 0 0 8px rgba(255,255,255,.32);
  animation: none;
}
.dark-button:hover::before, .coral-button:hover::before, .next:hover::before, .process-start:hover::before, .video-overlay button:hover::before { opacity: .95; animation: magic-ring 2.8s linear infinite; }
@keyframes magic-ring { to { transform: rotate(1turn); } }

/* A soft tonal lift keeps button feedback elegant and free of visual noise. */
.dark-button, .coral-button, .next, .process-start, .video-overlay button {
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background-color .22s ease;
}
.dark-button::before, .coral-button::before, .next::before, .process-start::before, .video-overlay button::before {
  display: none;
}
.dark-button:hover, .coral-button:hover, .next:hover, .process-start:hover, .video-overlay button:hover {
  transform: translateY(-2px);
  filter: brightness(1.045) saturate(.96);
  box-shadow: 0 10px 22px rgba(13, 51, 22, .16);
}

.nav .dark-button.small { background: #0d3316; }

footer { justify-content: space-between; padding: 20px 0; }
.footer-legal { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; margin-left: auto; }
.footer-legal a { color: #0d3316; text-decoration: none; font-size: 11px; }
.footer-legal a:hover { text-decoration: underline; }

.legal { width: min(820px, calc(100% - 64px)); padding: 68px 0 86px; }
.legal h1 { margin: 0 0 18px; color: #0d3316; font: 500 clamp(44px, 6vw, 68px)/1.05 'Bona Nova', serif; letter-spacing: -1.5px; }
.legal h1 em { color: var(--coral); font-family: 'Parisienne', cursive; font-size: 1.15em; font-style: normal; }
.legal-intro { max-width: 680px; color: #0d3316; font-size: 18px; line-height: 1.6; }
.legal-meta { color: #6e6a68; font-size: 13px; margin: 18px 0 42px; }
.legal section { border-top: 1px solid #eaded9; padding: 26px 0 4px; }
.legal section h2 { color: #0d3316; font: 500 27px/1.2 'Bona Nova', serif; margin: 0 0 10px; }
.legal section p { color: #0d3316; font-size: 15px; line-height: 1.68; }
.legal a { color: #0d3316; }
.legal-note { margin-top: 40px; padding: 18px 20px; border-radius: 12px; background: #fff4f0; color: #0d3316; font-size: 13px; line-height: 1.55; }
.legal-page footer { justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  .finder, .finder .option, .cta, .values-wrap { animation: none; }
  .values > div,
  .values > div span,
  .values > div span::after,
  .values > div span img,
  .values > div b,
  .values > div p { transition: none; }
}

@media (max-width: 900px) {
  main { gap: 64px; padding-bottom: 34px; }
  html { scroll-padding-top: 96px; }
  main > section[id], #create { scroll-margin-top: 96px; }
  .hero { min-height: auto; }
  .video-card { height: 380px; }
  .finder { margin-bottom: 54px; }
  .finder .option.active { transform: scale(1.025); }
  .announcement { margin: 0; }
}

@media (max-width: 600px) {
  main { gap: 48px; padding-bottom: 28px; }
  html { scroll-padding-top: 86px; }
  main > section[id], #create { scroll-margin-top: 86px; }
  .shell { width: min(100% - 32px, 1380px); }
  .nav { height: 76px; gap: 12px; }
  .nav .logo img { width: 128px; }
  .nav .dark-button.small { display: none; }
  .menu { display: block; margin-left: auto; }
  .nav.is-scrolled { width: min(330px, calc(100% - 32px)); height: 62px; padding: 0 14px; }
  .nav.is-scrolled .dark-button.small { display: inline-flex; padding: 10px 14px; font-size: 10px; }

  .hero { gap: 28px; padding: 18px 0 22px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 56px); letter-spacing: -1.5px; }
  .hero-copy p { font-size: 17px; }
  .hero-proof { margin-bottom: 22px; }
  .video-card { height: 300px; }
  .announcement { margin: 0; padding: 9px 16px; font-size: 11px; }

  .finder { display: block; padding: 22px 18px; margin-bottom: 44px; }
  .finder-intro { padding-left: 4px; margin-bottom: 16px; }
  .finder h2 { font-size: 34px; }
  .option { min-height: 180px; margin-top: 14px; }
  .finder .option.active { transform: none; }
  .next { display: block; width: 100%; margin-top: 16px; }

  .story { grid-template-columns: 1fr; gap: 26px; margin-bottom: 44px; }
  .story-repeat { margin-bottom: 60px; }
  .story-image { height: 280px; }
  .story-copy h2 { font-size: 38px; }
  .story-copy p { font-size: 16px; }
  .values-wrap { margin-bottom: 36px; padding: 38px 0 28px; }
  .values-heading h2 { font-size: 33px; }
  .values { grid-template-columns: 1fr; gap: 26px; padding: 30px 16px; }

  .gallery { padding: 34px 0; }
  .gallery h2 { font-size: 29px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery article { height: 270px; }
  .process { padding: 40px 0; }
  .process-heading h2 { font-size: 31px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps > div { border-left: 0 !important; border-top: 1px solid #eaded9; padding: 28px 20px; }
  .process-steps > div:first-child { border-top: 0; }

  .testimonial { grid-template-columns: 1fr; }
  .testimonial-intro { grid-column: auto; }
  .testimonial .quote, .testimonial .quote + .quote { border-left: 0 !important; border-top: 1px solid #eaded9 !important; }
  .cta { display: block; padding: 30px 24px; }
  .cta h2 { font-size: 33px; }
  .cta > div:last-child { margin-top: 24px; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
  footer div { white-space: normal; }
  .legal { width: min(100% - 32px, 820px); padding: 42px 0 60px; }
  .legal h1 { font-size: 43px; }
  .legal-intro { font-size: 16px; }
  .legal section h2 { font-size: 24px; }
  .footer-legal { justify-content: flex-start; margin-left: 0; }
}
