.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

html,
body {
  overflow-x: clip;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ice);
  color: var(--navy);
  border: 2px solid var(--royal);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.hero-media picture,
.hero-media picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.story-image picture,
.details-gallery picture,
.packaging picture {
  display: block;
  width: 100%;
}

/* Preserve the original gift-box card proportions with responsive sources. */
.packaging-grid figure {
  min-width: 0;
  overflow: hidden;
}

.packaging-grid picture {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.packaging-grid picture img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  background: var(--sky);
  border: 1px solid var(--sky);
}

.product-facts div {
  padding: 12px 14px;
  background: var(--ice);
}

.product-facts dt {
  color: var(--deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-facts dd {
  margin: 2px 0 0;
  font-size: 12px;
}

.order-form-wrap .form-field {
  min-width: 0;
}

.order-form-wrap .form-field label {
  display: block;
  margin-bottom: 8px;
}

.order-form-wrap .form-field.full,
.order-form-wrap .form-status {
  grid-column: 1 / -1;
}

.order-form-wrap small {
  display: block;
  margin-top: 5px;
  color: var(--deep);
  font-size: 9px;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: #8b1e1e;
  font-size: 11px;
}

.form-status.success {
  color: var(--deep);
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a01818;
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.footer-brand .brand-mark {
  filter: drop-shadow(0 0 1px var(--ice));
}

#commander {
  scroll-margin-top: 86px;
}

.order {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.order-form-wrap {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.story-image,
.details-gallery img,
.packaging figure,
.whatsapp-gallery figure {
  border: 1px solid var(--steel);
}

.story-image,
.details-gallery img {
  padding: 8px;
  background: var(--ice);
}

.details-gallery img {
  max-width: 100%;
}

.details-gallery {
  display: block;
}

.details-gallery img {
  width: 100%;
  height: auto;
  margin: 0 !important;
}

.hero .primary {
  animation: hero-cta-attention 6s ease-in-out infinite;
  transform-origin: center;
}

.hero .primary.cta-clicked {
  animation: none;
}

@keyframes hero-cta-attention {
  0%, 14%, 100% {
    transform: translateX(0) scale(1);
    box-shadow: 0 0 0 rgba(0, 71, 171, 0);
  }
  3% { transform: translateX(-3px) scale(1.01); }
  6% {
    transform: translateX(3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(0, 71, 171, 0.28);
  }
  9% { transform: translateX(-2px) scale(1.01); }
  12% { transform: translateX(2px) scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero .primary { animation: none; }
}

@media (min-width: 901px) {
  .hero {
    min-height: 490px;
    height: 520px;
    max-height: 520px;
  }

  .hero-copy {
    align-self: start;
    padding: 1.5vw 4vw 2vw 10vw;
  }

  .hero .micro-proof {
    margin-top: 12px;
  }

  .hero-media img {
    object-position: 70% center;
  }
}

@media (max-width: 900px) {
  #commander { scroll-margin-top: 70px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .order { display: block; }
  .story-image,
  .details-gallery img { padding: 6px; }
  .packaging-grid { width: 100%; }
  .product-facts { grid-template-columns: 1fr; }
  .order-form-wrap form { display: grid; grid-template-columns: 1fr; }
}
