/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}
.hero__text {
  padding: 5.75rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream-warm);
}
.eyebrow--accent {
  margin-bottom: 1.625rem;
}
/* hero eyebrow in relative units (0.75rem = the token's 12px) */
.hero__text .eyebrow {
  font-size: 0.75rem;
}
.hero__title {
  font-family: "Marcellus", serif;
  font-weight: 400;
  /* fluid: 2.5rem (40px) on small screens up to 4.125rem (66px) on wide ones,
     scaling with the viewport; rem keeps it responsive to the user's font size */
  font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.125rem);
  line-height: 1.06;
  margin: 0;
  color: var(--ink-heading);
}
/* per-character reveal + caret while the hero title types itself in (see main.js) */
.hero__title-char {
  opacity: 0;
  transform: translateY(0.12em);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero__title-char.is-in {
  opacity: 1;
  transform: none;
}
.hero__title-caret {
  display: inline-block;
  width: 0.1875rem;
  height: 0.9em;
  margin-left: 0.25rem;
  vertical-align: -0.06em;
  background: var(--gold);
  animation: hero-caret-blink 1.05s ease-in-out infinite;
}
@keyframes hero-caret-blink {
  0%,
  40% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
  }
}
.hero__body {
  max-width: 25rem;
  /* fluid: 0.875rem (14px) → 1rem (16px) */
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  line-height: 1.7;
  color: var(--ink-body);
  margin: 1.875rem 0 2.375rem;
}
.btn-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero__img {
  min-height: 38.75rem;
  overflow: hidden;
}
.hero__img .ph__cap {
  margin: 1.875rem;
}
.hero__img > img,
.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* hero slider */
.hero__slider {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.hero__slider:active {
  cursor: grabbing;
}
.hero__track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: inherit;
  align-items: flex-end;
}
/* optional click-through wrapper: fills the slide so the whole image is the link */
.hero__slide-link {
  position: absolute;
  inset: 0;
  display: block;
}
/* vary the weave tint per slide so the rotation reads clearly */
.hero__slide:nth-child(2) {
  background: repeating-linear-gradient(
    135deg,
    var(--ph-c),
    var(--ph-c) 0.6875rem,
    var(--ph-d) 0.6875rem,
    var(--ph-d) 1.375rem
  );
}
.hero__slide:nth-child(3) {
  background: repeating-linear-gradient(
    135deg,
    var(--ph-e),
    var(--ph-e) 0.6875rem,
    var(--gold-light) 0.6875rem,
    var(--gold-light) 1.375rem
  );
}
.hero__slide:nth-child(4) {
  background: repeating-linear-gradient(
    135deg,
    var(--ph-f),
    var(--ph-f) 0.6875rem,
    var(--ph-a) 0.6875rem,
    var(--ph-a) 1.375rem
  );
}
/* caption overlays the image's bottom-left on every device, so it never adds to
   the slide height (which now follows the image) */
.hero__slide .ph__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 1.875rem;
}

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.125rem;
  display: flex;
  justify-content: center;
  gap: 0.5625rem;
}
.hero__dot {
  width: 0.5625rem;
  height: 0.5625rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--maroon);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}
.hero__dot.is-active {
  background: var(--maroon);
  transform: scale(1.15);
}

/* desktop prev/next arrows (hidden on touch/mobile, see responsive.css) */
.hero__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--maroon);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--maroon);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}
.hero__slider:hover .hero__nav,
.hero__nav:focus-visible {
  opacity: 1;
}
.hero__nav:hover {
  background: var(--maroon);
  color: var(--cream);
}
.hero__nav svg {
  display: block;
}
.hero__nav--prev {
  left: 1.125rem;
}
.hero__nav--next {
  right: 1.125rem;
}
.hero__nav--next svg {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero__track {
    transition: none !important;
  }
}
.orn-frame {
  position: absolute;
  top: 1.375rem;
  left: 1.375rem;
  right: 1.375rem;
  bottom: 1.375rem;
  border: 1px solid var(--orn-line);
  pointer-events: none;
}
.orn-corner {
  position: absolute;
  width: 1.625rem;
  height: 1.625rem;
}
.orn-corner--tl {
  top: 0.875rem;
  left: 0.875rem;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.orn-corner--br {
  bottom: 0.875rem;
  right: 0.875rem;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* Desktop: soft ceiling on the hero image so a tall/varied slide can't push the
   section past ~90% of the viewport left below the announce bar + header. This
   only lowers the image's own floor — text can still make the hero taller (the
   page scrolls; copy is never clipped) and the grid keeps both columns equal, as
   the image covers whatever height the row resolves to. --site-chrome is measured
   in main.js (0px fallback keeps this safe without JS). Mobile (<48.0625rem) keeps
   its own stacked layout. */
@media (min-width: 769px) {
  .hero__img {
    min-height: min(38.75rem, calc((100svh - var(--site-chrome, 0px)) * 0.9));
  }
}

/* divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  padding: 2.75rem 0;
}
.divider__line {
  height: 0.0625rem;
  width: 6.875rem;
  background: var(--line-gold);
}
.divider__line--sm {
  width: 5.625rem;
}
.divider__diamond {
  width: 0.5625rem;
  height: 0.5625rem;
  background: var(--green-bright);
  transform: rotate(45deg);
}
.divider__diamond--gold {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold);
}

/* story ribbon */
.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  padding: 2.5rem var(--gutter) 5.625rem;
}
.story__img {
  position: relative;
  min-height: 28.75rem;
  background: repeating-linear-gradient(
    45deg,
    var(--ph-g),
    var(--ph-g) 0.75rem,
    var(--ph-h) 0.75rem,
    var(--ph-h) 1.5rem
  );
  margin-right: 3.5rem;
  overflow: hidden;
}
.story__img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story__title {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 2.875rem;
  line-height: 1.12;
  margin: 0 0 1.5rem;
  color: var(--ink-heading);
}
.story__text .body:last-of-type {
  margin-bottom: 1.875rem;
}

/* shop by weave */
.weave {
  background: var(--cream-warm);
  padding: 5.125rem var(--gutter);
}
.weave__head {
  text-align: center;
  margin-bottom: 3.25rem;
}
.weave__head .eyebrow {
  margin-bottom: 0.875rem;
}
.weave__grid {
  display: flex;
  gap: 1.625rem;
  overflow-x: auto;
  /* centre the row when the items fit; "safe" falls back to start-alignment
     (scrollable, nothing clipped) once they overflow */
  justify-content: safe center;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.weave__grid::-webkit-scrollbar {
  display: none;
}
.weave__item {
  flex: 0 0 9.375rem;
  text-align: center;
  scroll-snap-align: start;
}
.weave__circle {
  width: 9.375rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-linear-gradient(
    135deg,
    var(--ph-i),
    var(--ph-i) 0.5625rem,
    var(--ph-j) 0.5625rem,
    var(--ph-j) 1.125rem
  );
}
.weave__label {
  margin-top: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* favourites */
.favourites {
  padding: 5.5rem var(--gutter);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.75rem;
}
.section-head .eyebrow {
  margin-bottom: 0.75rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.875rem;
}
/* Founder's favourites: 4 cards visible, scroll horizontally when there are more.
   Desktop only — the mobile flex/70vw track lives in responsive.css. */
@media (min-width: 769px) {
  .favourites .grid-4 {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.625rem;
  }
  .favourites .grid-4 > .product {
    flex: 0 0 calc((100% - 3 * 1.875rem) / 4);
    scroll-snap-align: start;
  }
}
.product__img {
  position: relative;
  display: block;
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product__code {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0.625rem 0 0;
}

.mark {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--green);
  color: var(--gold-light);
  font-family: "DM Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  padding: 0.3125rem 0.5625rem;
}
.product__name {
  font-family: "Marcellus", serif;
  font-size: 1.25rem;
  margin: 1rem 0 0;
  color: var(--ink-heading);
}
.product__sub {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin: 0.1875rem 0 0;
}
.stock {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
}
.stock__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--green);
}
.stock__label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.stock--low .stock__dot {
  background: var(--amber);
}
.stock--low .stock__label {
  color: var(--gold);
}
.product__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 0.875rem;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
}
.product__price {
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--ink-price);
}
.product__price del {
  margin-right: 0.375rem;
  color: var(--ink-faint);
  font-size: 0.88em;
  text-decoration-thickness: 0.0625rem;
}
.product__price ins {
  text-decoration: none;
  color: var(--maroon);
}
.add {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--maroon);
  color: var(--maroon);
  background: transparent;
  padding: 0.5625rem 1.25rem;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.2s ease;
}
.add:hover,
.add:focus-visible {
  background: var(--maroon);
  color: var(--cream);
}
.add.loading {
  opacity: 0.55;
  pointer-events: none;
}
/* Once added, the same button becomes a solid "View cart" link. */
.add.in-cart {
  background: var(--maroon);
  color: var(--cream);
}
.add.in-cart:hover,
.add.in-cart:focus-visible {
  background: var(--maroon-deep);
  color: var(--cream);
}
/* Belt-and-braces: main.js removes Woo's default injected link, but hide it
   too in case the script hasn't run yet, so it never crowds the button. */
.product__foot .added_to_cart {
  display: none;
}

/* values */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--green) 10%, var(--cream));
  border-top: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
}
.values__cell {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
}
.values__cell:last-child {
  border-right: 0;
}
.values__diamond {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--green);
  transform: rotate(45deg);
  margin: 0 auto 0.875rem;
}
.values__label {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 55%, var(--ink-muted));
}

/* instagram — film strip */
.insta {
  padding: 5.5rem 0 6rem;
  text-align: center;
  background: var(--maroon-shade);
  color: var(--on-maroon);
}
.insta__head {
  margin-bottom: 2.75rem;
  padding: 0 var(--gutter);
}
.insta__head .section-title {
  color: var(--gold-pale);
}
.insta__head .eyebrow {
  margin-bottom: 0.875rem;
  color: var(--gold-light);
}
.insta__handle {
  display: inline-block;
  margin-top: 1rem;
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.filmstrip {
  overflow: hidden;
  width: 100%;
}
.filmstrip__track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 0.875rem;
  /* centre the reels when they fit; "safe" falls back to start-alignment
     (scrollable, nothing clipped) once they overflow */
  justify-content: safe center;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.375rem;
  scrollbar-width: thin;
}
.insta__tile {
  scroll-snap-align: start;
}
.insta__tile {
  position: relative;
  flex: 0 0 auto;
  width: 16.875rem;
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 0.625rem;
  align-items: flex-end;
  overflow: hidden;
}
.insta__tile > img,
.insta__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* centre play button (click-to-play reels) */
.insta__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 3.625rem;
  height: 3.625rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: rgba(94, 37, 37, 0.62);
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.insta__play:hover {
  background: rgba(94, 37, 37, 0.82);
}
.insta__play svg {
  width: 1.625rem;
  height: 1.625rem;
  display: block;
  margin-left: 0.1875rem;
}
.insta__tile.is-playing .insta__play {
  opacity: 0;
  pointer-events: none;
}

.insta__cap {
  position: absolute;
  left: 1.375rem;
  bottom: 1.375rem;
  z-index: 2;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-maroon);
  background: rgba(94, 37, 37, 0.55);
  padding: 0.3125rem 0.625rem;
}

.insta__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim-dark);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.insta__tile:hover::before {
  opacity: 1;
}
.insta__cta {
  display: inline-block;
  margin-top: 2.75rem;
  color: var(--gold-pale);
}

/* newsletter section */
.newsletter-sec {
  background: var(--cream-warm);
  padding: 5.5rem var(--gutter);
  text-align: center;
}
.newsletter-sec .divider {
  padding: 0 0 1.625rem;
}
.newsletter-sec .eyebrow {
  margin-bottom: 1rem;
}
.newsletter-sec__title {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1.1;
  margin: 0 auto 1.125rem;
  color: var(--ink-heading);
  max-width: 40rem;
}
.newsletter-sec__body {
  max-width: 32.5rem;
  margin: 0 auto 2.125rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-body);
}
.subscribe {
  display: flex;
  gap: 0.75rem;
  max-width: 32.5rem;
  margin: 0 auto;
}
.subscribe input[type="email"] {
  flex: 1;
  background: var(--cream);
  border: 1px solid var(--line-gold);
  color: var(--ink-heading);
  padding: 1rem 1.125rem;
  font-family: "Jost", sans-serif;
  font-size: 0.875rem;
  outline: none;
}
.subscribe button {
  background: var(--maroon);
  color: var(--cream);
  border: 0;
  font-family: "Jost", sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.875rem;
  white-space: nowrap;
  cursor: pointer;
}
.newsletter-sec .form-notice {
  max-width: 32.5rem;
  margin: 0 auto 1.125rem;
  text-align: left;
}
.newsletter-sec__fine {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 1rem 0 0;
  letter-spacing: 0.03em;
}

