/* =========================================================
   CUSTOM PROPERTIES (VARIABLES)
   ========================================================= */
:root {
  --color-bg: #fdfbf9;
  --color-text: #454545;
  --color-panel: #f3f1eb;
  --font-sans: "Arial", sans-serif;
  --font-caslon: "big-caslon-fb", serif;
  --font-sofia: "sofiapro-light", sans-serif;

  --space-xxs: 10px;
  --space-xs: 14px;
  --space-s: 20px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;

  --bp-tablet: 481px;
  --bp-desktop: 1024px;
}

/* =========================================================
   GLOBAL RESET & BASE STYLES
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: #454545;
  background: #fdfbf9;
}

.euOuterWrapper img,
.euOuterWrapper svg,
.euOuterWrapper video {
  display: block;
  width: 100%;
  height: auto;
}
picture {
  display: block;
}

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

/* =========================================================
   PAGE STRUCTURE & LAYOUT
   ========================================================= */
.euOuterWrapper {
  width: 100%;
  overflow-x: hidden;
}

.euSection--hero {
  position: relative;
  width: 100%;
  background: #000;
}

.euHero__lnk {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.euHero__vid {
  width: 100%;
  margin: 0;
}

.euHero__vid video {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
  display: block;
}

.euMedia {
  position: relative;
}

.euMedia img,
.euMedia video,
.euMedia picture {
  height: 100%;
  object-fit: cover;
}

/* Media aspect ratios */
.euMedia--spinningTote,
.euMedia--slideGrid {
  aspect-ratio: 63/95;
}

.euMedia--slideTrack {
  aspect-ratio: 59/66;
}

.euMedia--monogram {
  aspect-ratio: 320/408;
}

.euMedia__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.euMedia__overlay > * {
  pointer-events: auto;
}

.euMedia__overlay--bottom {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
}

.euMedia__overlay--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.euMedia__header {
  font-family: var(--font-caslon);
  font-size: 46px;
  line-height: 1.1;
  font-weight: 500;
  color: #fff;
  text-align: center;
}

.euMedia__copy {
  font-family: var(--font-sofia);
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  text-align: center;
}

/* Video Controls */

.euVidControl {
  position: absolute;
  bottom: var(--space-m);
  left: 10%;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 40px));
  display: flex;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.euVidControl__btn {
  background: rgba(37, 36, 36, 0.329);
  border: 3px solid hsla(0, 0%, 100%, 0.8);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  pointer-events: auto; /* Override parent pointer-events: none */
}
.euVidControl__btn--play img {
  padding-left: 3px;
}

.euVidControl__btn:hover {
  background: #fff;
  transition: 0.2s;
}

.euVidControl__btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1); /* Make SVGs white */
}

.euVidControl__btn img:hover {
  filter: brightness(0.1) sepia(1) saturate(1);
  transition: 0.2s;
}

.euSection__monogram .euVidControl {
  bottom: 44px;
}
@media (min-width: 1024px) {
  .euVidControl__btn {
    width: 40px;
    height: 40px;
  }

  .euVidControl__btn img {
    width: 20px;
    height: 20px;
  }
  .euSection__monogram .euVidControl {
    bottom: 150px;
  }
  .euSection.euSection__monogram {
    padding: 0 0 clamp(30px, 5vw, 100px);
  }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.euSection {
  padding: var(--space-l) var(--space-s);
}

.euSection--full {
  padding-left: 0;
  padding-right: 0;
  position: relative;
}

.euSection--flush {
  padding: 0 !important;
}

.euSection__monogram {
  position: relative;
  padding: 0;
}

.euSection__socials {
  display: flex;
  gap: 15px;
  flex-direction: column;
}

.euSub__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 0 var(--space-s);
}

.euSubHeader {
  color: #454545;
  font-family: var(--font-caslon);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.euSubCopy {
  color: #454545;
  font-family: var(--font-sofia);
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
}

/* =========================================================
   COMPONENTS: GRIDS & CARDS
   ========================================================= */

/* Slide Grid */
.euSlideGrid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: clamp(16px, 4vw, 24px);
  padding: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.euSlideGrid::-webkit-scrollbar {
  display: none;
}

.euSlideGrid > * {
  scroll-snap-align: start;
}

.euSlideGrid img {
  max-width: none;
}

/* Slide Cards */
.euSlideCard {
  width: 100%;
  min-width: 225px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.euSlideCard__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  max-width: 225px;
}

.euSlideCard__frame--spinning {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 140ms ease-out;
}

.euSlideCard__frame--spinning.is-active {
  opacity: 1;
}

.euSlideCard__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* .euSlideGrid--three .euSlideCard__content .euSubCopy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
} */

.euSlideCard__title {
  font-size: 18px;
  font-family: var(--font-caslon);
  line-height: 1.2;
  font-weight: 400;
  color: #454545;
}

/* Card Features */
.euCard__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 33px;
  background-color: #f3f1eb;
  margin: 0;
  padding: 35px 30px;
}

.euCard--left .euCard__features {
  gap: 22px;
}

.euCard__features li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-sofia);
  font-size: 16px;
  font-weight: 400;
}

/* Full Width Card Slider */
.euCardSlider {
  position: relative;
}

.euCardSlider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.euCardSlider__track::-webkit-scrollbar {
  display: none;
}

.euCard {
  scroll-snap-align: start;
  min-width: 0;
}

.euCardSlider__controls {
  pointer-events: none;
}

.euCardSlider__arrow {
  position: absolute;
  top: 37%;
  transform: translateY(-50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background-color: #f3f1eb;
}

.euCardSlider__arrow--prev {
  left: 12px;
}

.euCardSlider__arrow--next {
  right: 12px;
}

.euCardSlider__arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.euCardSlider__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Icon */
.euIcon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
}

/* Socials */
.euGrid.euGrid--socials {
  display: flex;
  gap: 13px;
  width: 80%;
  margin: 0 auto;
  justify-content: center;
}
.euGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* =========================================================
   COMPONENTS: BUTTONS
   ========================================================= */
.euButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-family: var(--font-sofia);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #454545;
}

.euButton--primary {
  padding: 15px;
  border: 1px solid var(--Brand-Colours-Charcoal, #454545);
  background: var(--Brand-Colours-White, #fff);
  backdrop-filter: blur(7.5px);
  margin-top: 10px;
}

.euButton--primary:hover {
  background: var(--Brand-Colours-Charcoal, #454545);
  color: var(--Brand-Colours-White, #fff);
}

.euButton--link {
  position: relative;
  text-decoration: none;
  color: #454545;
  margin-bottom: 15px;
  font-size: clamp(14px, 2vw, 16px);
}

.euButton--link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: bottom 0.3s ease;
}

.euButton--link:hover::after {
  bottom: -6px;
}

.euButton--outline {
  font-size: 14px;
  padding: 15px;
  min-width: 130px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(7.5px);
  color: #fff;
  border: 1px solid #fff;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.euButton--outline:hover {
  background: rgba(255, 255, 255, 0.35);
}

.euMedia__overlay .euButton {
  pointer-events: auto;
}

/* =========================================================
   SECTION PATTERNS
   ========================================================= */
.euSection--hero {
  padding-top: 0;
}

.euSection--feature,
.euSection--cta,
.euSection--footer {
  padding: var(--space-l) var(--space-s);
}

.euSection--cta {
  background: #f3f1eb;
}

.euSection__monogram .euButton {
  margin-top: var(--space-m);
}

/* =========================================================
   UTILITIES
   ========================================================= */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide on mobile (show from tablet up) */
.euHide--mobile {
  display: none !important;
}

@media (min-width: 481px) {
  .euHide--mobile {
    display: initial !important;
  }
}

/* Hide on tablet */
@media (min-width: 481px) and (max-width: 1023px) {
  .euHide--tablet {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .euHide--desktop {
    display: none !important;
  }
}

/* Show on mobile (hide from tablet up) */
.euShow--mobile {
  display: initial !important;
}

@media (min-width: 481px) {
  .euShow--mobile {
    display: none !important;
  }
}

/* Show on tablet (hide from desktop up) */
.euShow--tablet {
  display: none !important;
}

@media (min-width: 481px) and (max-width: 1023px) {
  .euShow--tablet {
    display: initial !important;
  }
}

/* Show on desktop (hide from tablet up) */
.euShow--desktop {
  display: none !important;
}

@media (min-width: 1024px) {
  .euShow--desktop {
    display: initial !important;
  }
}

/* =========================================================
   MEDIA QUERIES (Tablet & Desktop)
   ========================================================= */

@media (max-width: 481px) {
  .euSection__track {
    padding-bottom: 0;
  }
}

/* Tablet styles  */
@media (min-width: 481px) {
  .euHero__vid video,
  .euMedia--monogram {
    aspect-ratio: 16/9;
  }
  .euMedia--slideTrack {
    aspect-ratio: 768/400;
  }
  .euSubHeader {
    font-size: 36px;
    line-height: 1.2;
  }
  .euSubCopy {
    max-width: 40ch;
  }
  .euCardSlider__track .euSub__container h2 {
    max-width: 19ch;
  }

  .euCard__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    padding: 35px 30px;
  }
  .euSlideGrid--three .euSlideCard__content {
    align-items: center;
  }
  .euCardSlider__arrow {
    top: 44%;
    width: 30px;
    height: 30px;
  }
  .euGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 var(--space-xl);
  }
}

@media (min-width: 481px) and (max-width: 1023px) {
  .euCardSlider__track .euMedia__overlay {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .euSlideGrid--three .euSlideCard__title {
    font-size: clamp(20px, 3vw, 40px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .euSlideGrid.euSlideGrid--three {
    justify-content: center;
  }
  .euCardSlider__track .euMedia__overlay {
    padding-top: 12%;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .euSub__container {
    padding-bottom: var(--space-xl);
  }

  .euSubHeader {
    font-size: clamp(40px, 3.5vw, 60px);
  }
  .euSubCopy {
    max-width: max-content;
    font-size: 22px;
    font-weight: 400;
    line-height: 128%;
    text-align: center;
    margin: 0 auto;
  }
  .euSlideCard {
    gap: 20px;
  }

  .euSlideGrid--five .euSlideCard {
    width: clamp(200px, 17vw, 300px);
  }

  .euSection {
    padding-block: clamp(30px, 5vw, 100px);
  }
  .euSection__track {
    max-width: 1639px;
    margin: 0 auto;
    border-block: 1px solid black;
  }
  .euCard__features li {
    font-size: clamp(20px, 2vw, 30px);
  }
  .euIcon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .euSlideCard__media {
    max-width: 520px;
  }
  .euSlideCard__media.euMedia--spinningTote {
    max-width: 300px;
  }
  .euCardSlider__arrow {
    top: 50%;
    width: 50px;
    height: 50px;
  }
  .euMedia--slideTrack {
    order: 2;
    aspect-ratio: 150/181;
  }
  .euSection__track .euCard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
    align-content: center;
    justify-items: center;
    padding: 0 1px;
  }
  .euSub__container--parent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 600px;
  }
  .euSub__container--parent .euSub__container {
    padding: 0;
  }
  .euCard__features {
    display: grid;
    grid-template-columns: 1fr;
    background-color: #fdfbf9;
    gap: 20px;
    padding: 0 clamp(30px, 3.5vw, 61px);
  }

  .euMedia__overlay--bottom {
    padding-bottom: 131px;
  }
  .euMedia__header {
    font-size: 60px;
  }
  .euMedia__copy {
    font-size: 22px;
  }
  .euSection__socials .euGrid {
    gap: 40px;
    padding: 0;
  }
  .euSection__socials {
    padding-block: 100px;
    border-block: 1px solid black;
    max-width: 1639px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .euSection__socials .euSub__container {
    padding-bottom: var(--space-s);
  }

  .euMedia__overlay.euMedia__overlay--bottom.euShow--desktop {
    display: flex !important;
  }
}

@media (min-width: 1277px) {
  .euSlideGrid.euSlideGrid--five {
    justify-content: center;
  }

  .euSlideGrid.euSlideGrid--three {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1639px;
    margin: 0 auto;
  }
}

@media (min-width: 1670px) {
  .euSlideGrid {
    justify-content: center;
  }
}

/* Spinning Tote Styles */
.euMedia--spinningTote {
  position: relative;
  overflow: hidden;
}

.euTote__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stack images */
.euTote__img--animated {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .euMedia--spinningTote:hover .euTote__img--animated {
    opacity: 1;
  }

  .euMedia--spinningTote:hover .euTote__img--static {
    opacity: 0;
  }
}

.euMedia--spinningTote.is-active .euTote__img--animated {
  opacity: 1;
}

.euMedia--spinningTote.is-active .euTote__img--static {
  opacity: 0;
}

.euMedia--spinningTote:hover img {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}
