/* Preloader */
.bcm-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--page-bg, #F8F7F3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.bcm-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.preloader-logo {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
}

.preloader-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  color: var(--bcm-dark-brown, #584738);
  opacity: 0;
  z-index: 1;
}

.preloader-circle circle {
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transform-origin: center;
}

.preloader-text {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--bcm-dark-olive);
  opacity: 0;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Preloader Vivus SVGs */
.preloader-vivus {
  position: absolute;
  width: clamp(200px, 25vw, 400px);
  height: auto;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.preloader-vivus--top-left {
  top: 2rem;
  left: 2rem;
  transform-origin: top left;
}

.preloader-vivus--bottom-right {
  bottom: 2rem;
  right: 2rem;
  transform: rotate(180deg);
  transform-origin: center center;
}

.preloader-vivus path,
.preloader-vivus line {
  fill: none;
  stroke: var(--bcm-dark-brown, #584738);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .preloader-vivus {
    width: clamp(120px, 20vw, 250px);
  }
  
  .preloader-vivus--top-left {
    top: 1rem;
    left: 1rem;
  }
  
  .preloader-vivus--bottom-right {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Typography utilities */
.type-eyebrow {
  font-family: "Archivo Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.3; /* Standard for small text */
  font-weight: 400;
}

.type-h1 {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700; /* Bold for headings (700-900) */
  font-size: clamp(2rem, 4vw, 3rem); /* 32-48px, standard H1 range */
  line-height: 1.2; /* 1.1-1.3 for headings */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
}

.type-h2 {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700; /* Bold for headings (700-900) */
  font-size: clamp(1.5rem, 3vw, 2rem); /* 24-32px, standard H2 range */
  line-height: 1.3; /* 1.1-1.3 for headings */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
}

.type-h3 {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700; /* Bold for headings (700-900) */
  font-size: clamp(1.25rem, 2vw, 1.5rem); /* 20-24px, standard H3 range */
  line-height: 1.3; /* 1.1-1.3 for headings */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
}

.type-body {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 400; /* Regular weight for body text */
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.6; /* 1.5-1.6 for body text */
}

.type-body-small {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 400; /* Regular weight */
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.5; /* Standard line height */
}

.hero-section {
  padding-top: 9rem; /* account for header */
  padding-bottom: 4rem;
  min-height: clamp(540px, 90vh, 840px);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.hero-copy .eyebrow {
  font-family: "Archivo Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.3; /* Standard for small text */
  font-weight: 400;
  color: var(--bcm-dark-olive);
  margin-bottom: 1rem; /* Improved spacing */
}

.hero-copy h1 {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); /* 32-48px, standard H1 range */
  line-height: 1.2; /* 1.1-1.3 for headings */
  font-weight: 700; /* Bold for headings */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
  margin: 0 0 1.5rem; /* Improved spacing (1.5-2rem) */
  color: var(--bcm-dark-brown);
}

.hero-copy .lede {
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.6; /* 1.5-1.6 for body text */
  font-weight: 300;
  max-width: 65ch; /* Optimal line length (50-75ch) */
  margin-top: 0;
  margin-bottom: 0;
  color: var(--bcm-dark-olive); /* Matching intro body text color */
}

.hero-accent {
  justify-self: stretch;
}

.hero-accent svg {
  width: 100%;
  max-width: 520px;
  max-height: 70vh;
  height: auto;
  display: block;
}

.hero-scroll {
  margin-top: 2rem; /* Improved spacing (1.5-2rem) */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.5; /* Standard line height */
  font-weight: 400;
  color: var(--bcm-dark-olive);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-scroll .icon-scroll {
  width: 18px;
  height: 18px;
}

.hero-scroll:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .hero-section {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero-accent {
    order: -1;
    justify-self: center;
  }

  .hero-accent svg {
    max-width: 420px;
    max-height: 50vh;
    margin: 0 auto 1.5rem;
  }

  .hero-copy .lede {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 6.5rem;
    min-height: auto;
  }

  .hero-inner {
    gap: clamp(1.25rem, 5vw, 2rem);
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem); /* Adjusted for mobile */
    line-height: 1.25; /* Slightly more relaxed on mobile */
    margin-bottom: 1.25rem;
  }

  .hero-copy .lede {
    font-size: clamp(0.875rem, 4vw, 1rem); /* 14-16px, responsive */
    max-width: 100%; /* Full width on mobile */
  }
  
  .hero-scroll {
    margin-top: 1.5rem;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }
}

/* Intro block */
.intro-section {
  padding-block: 4rem;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.intro-motion svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

.intro-wrap {
  max-width: 70ch; /* Optimal line length (50-75ch) */
}

.intro-wrap h2 {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem); /* 24-32px, standard H2 range */
  line-height: 1.3; /* 1.1-1.3 for headings */
  font-weight: 700; /* Bold for headings (700-900) */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
  margin-bottom: 1.5rem; /* Improved spacing (1.5-2rem) */
  color: var(--bcm-dark-brown); /* Matching hero H1 color */
}

.intro-wrap p {
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.6; /* 1.5-1.6 for body text */
  font-weight: 400; /* Regular weight for body text */
  margin-top: 0;
  margin-bottom: 0;
  color: var(--bcm-dark-olive);
}

/* Products / use-cases */
.products-section {
  padding-block: 4rem;
}

.section-label {
  font-family: "Archivo Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.3; /* Standard for small text */
  font-weight: 400;
  color: var(--bcm-dark-olive);
  margin-bottom: 1.5rem; /* Improved spacing */
}

.section-heading {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem); /* 24-32px, standard H2 range */
  line-height: 1.3; /* 1.1-1.3 for headings */
  font-weight: 700; /* Bold for headings (700-900) */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
  color: var(--bcm-dark-brown); /* Matching hero H1 and intro H2 color */
  margin-bottom: 2rem; /* Improved spacing (1.5-2rem) */
  margin-top: 0;
  transition: opacity 0.3s ease;
}

.section-heading:hover {
  opacity: 0.85;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.product-card {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.product-card h3 {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem); /* 20-24px, standard H3 range */
  line-height: 1.3; /* 1.1-1.3 for headings */
  font-weight: 700; /* Bold for headings (700-900) */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
  margin-bottom: 0.75rem; /* Improved spacing (0.75-1rem) */
  margin-top: 0;
  color: var(--bcm-dark-brown);
  transition: color 0.25s ease;
}

.product-card:hover h3 {
  color: var(--bcm-dark-brown);
  opacity: 1;
}

.product-card p {
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.6; /* 1.5-1.6 for body text */
  font-weight: 400; /* Regular weight for body text */
  margin-top: 0;
  margin-bottom: 0;
  color: var(--bcm-dark-olive);
}

/* Story section - Circular Slider */
.story-section {
  padding-block: 4rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  margin-top: 2rem;
}

.story-motion {
  justify-self: stretch;
}

.story-motion svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

.story-content {
  display: flex;
  flex-direction: column;
}

.story-group {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease;
}

.story-card:hover {
  transform: translateX(4px);
}

.story-card__year {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.3;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bcm-dark-olive);
  margin: 0;
}

.story-card__title {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem); /* 20-24px, standard H3 range */
  line-height: 1.3; /* 1.1-1.3 for headings */
  font-weight: 700; /* Bold for headings (700-900) */
  letter-spacing: -0.02em; /* Slightly tighter for headings */
  color: var(--bcm-dark-brown);
  margin: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.story-card:hover .story-card__title {
  color: var(--bcm-dark-brown);
  transform: translateX(2px);
}

.story-card__text {
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.6; /* 1.5-1.6 for body text */
  font-weight: 400; /* Regular weight for body text */
  color: var(--bcm-dark-olive);
  margin: 0;
  max-width: 65ch; /* Optimal line length */
}

/* Motion section */
.motion-section {
  padding-block: 4.5rem;
}

.motion-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.motion-copy h2 {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

.motion-copy p {
  font-size: 0.95rem;
  color: var(--bcm-dark-olive);
}

.motion-canvas {
  border-radius: 24px;
  border: 1px dashed var(--bcm-stone);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f7f3;
}

/* Clients */
.clients-section {
  padding-block: 4rem;
}

/* Partners slider */
#wrapper-slider-logo {
  margin-top: 2rem; /* Improved spacing (1.5-2rem) */
  overflow: hidden;
}

#wrapper-slider-logo .slider-shell {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
}

#wrapper-slider-logo .slider-shell + .slider-shell {
  margin-top: 1rem;
}

#wrapper-slider-logo .slider-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  will-change: transform;
  /* Animation handled by JavaScript for truly seamless infinite scroll */
}

#wrapper-slider-logo .slider-track--reverse {
  will-change: transform;
  /* Animation handled by JavaScript for truly seamless infinite scroll */
}

#wrapper-slider-logo .slider-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

#wrapper-slider-logo .slider-item img {
  max-height: 4.6rem;
  min-height: 3.6rem;
  width: auto;
  display: block;
  filter: grayscale(100%) saturate(0) contrast(1.05);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

#wrapper-slider-logo .slider-item img:hover,
#wrapper-slider-logo .slider-item img:focus-visible {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

#wrapper-slider-logo .slider-blur {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(248, 247, 243, 0.9), transparent);
  z-index: 1;
}

#wrapper-slider-logo .slider-blur--right {
  right: 0;
  transform: scaleX(-1);
}

#wrapper-slider-logo .slider-blur--left {
  left: 0;
}

@keyframes partners-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-33.333%, 0, 0);
  }
}

@keyframes partners-marquee-reverse {
  from {
    transform: translate3d(-33.333%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Cup Design Section */
.cup-design-section {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cup-design-inner {
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cup-design-image {
  max-width: 560px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Partners Marquee Section - Overlay on Cup Design */
.partners-marquee-section {
  position: absolute;
  top: calc(50% + 1.9rem);
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0;
  background: transparent;
  margin: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

#wrapper-partners-marquee {
  pointer-events: auto;
}

#wrapper-partners-marquee {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

#wrapper-partners-marquee .slider-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#wrapper-partners-marquee .slider-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  will-change: transform;
}

#wrapper-partners-marquee .slider-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

#wrapper-partners-marquee .slider-item img {
  max-height: 7rem;
  min-height: 5rem;
  width: auto;
  display: block;
  filter: grayscale(100%) saturate(0) contrast(1.05);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

#wrapper-partners-marquee .slider-item:hover img,
#wrapper-partners-marquee .slider-item img:hover,
#wrapper-partners-marquee .slider-item img:focus-visible {
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-1px);
}

#wrapper-partners-marquee .slider-blur {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(248, 247, 243, 0.9), transparent);
  z-index: 1;
}

#wrapper-partners-marquee .slider-blur--right {
  right: 0;
  transform: scaleX(-1);
}

#wrapper-partners-marquee .slider-blur--left {
  left: 0;
}

/* Linewalk full-width section */
.linewalk-section {
  padding: 3rem 0;
  margin: 0 calc(-1 * var(--gutter));
  background: var(--page-bg);
}

.linewalk-inner {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.linewalk-inner svg {
  width: 100%;
  height: auto;
  display: block;
}

.linewalk-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-bottom: 0;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.linewalk-cta-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--bcm-dark-brown);
  border-radius: 999px;
  background: transparent;
  color: transparent;
  -webkit-text-stroke: 1px var(--bcm-dark-brown);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, -webkit-text-stroke 0.2s ease, transform 0.2s ease;
}

.linewalk-cta-link .icon {
  width: 1.1rem;
  height: 1.1rem;
  background-size: contain;
  background-repeat: no-repeat;
  filter: grayscale(100%) saturate(0) contrast(1.05);
  transition: filter 0.2s ease;
}

.linewalk-cta-link:hover,
.linewalk-cta-link:focus-visible {
  background: var(--bcm-dark-brown);
  color: var(--page-bg);
  -webkit-text-stroke: 0;
  transform: translateY(-1px);
}

.linewalk-cta-link:hover .icon,
.linewalk-cta-link:focus-visible .icon {
  filter: none;
}

.linewalk-cta-hint {
  pointer-events: none;
  font-size: 0.9rem;
  color: var(--bcm-dark-olive);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .linewalk-inner {
    flex-direction: column;
  }

  .linewalk-cta {
    position: static;
    margin-top: 2rem;
    padding: 0;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .linewalk-cta-link {
    order: 1;
    direction: rtl;
    text-align: center;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  .linewalk-cta-link .icon {
    order: 2;
    margin-left: 0.35rem;
    margin-right: 0;
  }

  .linewalk-cta-link .cta-label {
    order: 1;
  }

  .linewalk-cta-hint {
    order: 2;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  /* Keep natural sizing; no forced width */
}

@media (max-width: 900px) and (min-width: 769px) {
  .linewalk-section {
    margin: 0 calc(-0.75 * var(--gutter));
  }
  
  .linewalk-cta {
    padding-bottom: 1rem;
    gap: 0.65rem;
  }
}

@media (max-width: 900px) {
  .linewalk-section {
    margin: 0 calc(-0.75 * var(--gutter));
  }
}

/* Contact sheet bottom panel */
.contact-sheet {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.contact-sheet.is-open {
  display: block;
}

.contact-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 46, 44, 0.28);
}

.contact-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0%);
  width: min(720px, 100% - 2rem);
  border-radius: 18px 18px 0 0;
  background: var(--bcm-dark-olive);
  border: 2px solid var(--bcm-dark-brown);
  box-shadow: 0 -20px 60px rgba(48, 46, 44, 0.35);
  color: var(--bcm-off-white);
  /* Softened half-hex silhouette */
  clip-path: polygon(
    12% 0%,
    88% 0%,
    100% 18%,
    100% 100%,
    0% 100%,
    0% 18%
  );
  will-change: transform;
}

.contact-sheet__inner {
  padding: 1.75rem 1.75rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.04), transparent);
}

.contact-sheet__header {
  text-align: center;
  padding: 1.5rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: transparent;
}

.contact-sheet__header .type-eyebrow {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-sheet__header .type-h2 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.contact-sheet__form {
  display: grid;
  gap: 1.1rem;
}

.contact-sheet__field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bcm-cream);
  margin-bottom: 0.25rem;
}

.contact-sheet__field input,
.contact-sheet__field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(248, 247, 243, 0.35);
  padding: 0.4rem 0;
  background: transparent;
  color: var(--bcm-off-white);
  font-family: "Alegreya Sans", sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.contact-sheet__field input::placeholder,
.contact-sheet__field textarea::placeholder {
  color: rgba(248, 247, 243, 0.5);
}

.contact-sheet__field input:focus,
.contact-sheet__field textarea:focus {
  border-bottom-color: var(--bcm-cream);
}

.contact-sheet__submit {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--bcm-off-white);
  background: transparent;
  color: var(--bcm-off-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-sheet__submit:hover,
.contact-sheet__submit:focus-visible {
  background: var(--bcm-off-white);
  color: var(--bcm-dark-olive);
  transform: translateY(-1px);
}

.contact-sheet__close {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--bcm-off-white, #F8F7F3);
  background: transparent;
  color: var(--bcm-off-white, #F8F7F3);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-sheet__close:hover,
.contact-sheet__close:focus-visible {
  background: var(--bcm-off-white, #F8F7F3);
  color: var(--bcm-dark-olive, #5B5546);
  transform: translate(-50%, -50%) translateY(-1px);
}

/* Contact form messages */
.contact-message {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-family: "Archivo Narrow", sans-serif;
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  max-width: 90%;
  word-wrap: break-word;
}

.contact-message--success {
  background: rgba(76, 175, 80, 0.95);
  color: white;
  border: 2px solid rgba(76, 175, 80, 1);
}

.contact-message--error {
  background: rgba(244, 67, 54, 0.95);
  color: white;
  border: 2px solid rgba(244, 67, 54, 1);
}

@media (max-width: 900px) {
  .contact-sheet__panel {
    width: 100%;
    border-radius: 24px 24px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wrapper-slider-logo .slider-track {
    animation: none;
  }
}

/* Footer - Contained box like header */
.bcm-footer {
  background-color: transparent;
  padding: 12px 20px;
  border-radius: 100vmax;
  border: 2px solid var(--bcm-charcoal);
  color: var(--bcm-charcoal);
  width: 90%;
  max-width: 1200px;
  margin: 3rem auto 3rem;
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background-color: transparent;
  border-radius: 48px;
  padding: 1.5rem 1.75rem;
}

/* Left Column - Brand */
.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 56px;
  height: auto;
  display: block;
}

/* Middle Column - Motto + Contact */
.footer-motto-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-self: center;
  text-align: center;
}

.footer-motto {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.6; /* 1.5-1.6 for body text */
  font-weight: 400;
  color: var(--bcm-dark-olive);
  opacity: 0.85;
  font-style: italic;
  max-width: 65ch; /* Optimal line length */
  margin: 0;
}

.footer-subline {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.5; /* Standard line height */
  font-weight: 400;
  font-style: italic;
  color: var(--bcm-dark-olive);
  opacity: 0.8;
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
}

.footer-link {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.5; /* Standard line height */
  font-weight: 400;
  color: var(--bcm-dark-olive);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-link:hover,
.footer-link:focus-visible {
  opacity: 1;
  color: var(--bcm-dark-brown);
  transform: translateX(2px);
}

.footer-contact-prefix,
.footer-separator {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.5; /* Standard line height */
  font-weight: 400;
  color: var(--bcm-dark-olive);
  opacity: 0.75;
}

/* Right Column - Gallery CTA (Vertical Stack) */
.footer-gallery {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-gallery-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-gallery-cta:hover,
.footer-gallery-cta:focus-visible {
  transform: translateY(-2px);
}

.footer-gallery-icon {
  width: 52px;
  height: 52px;
  background-image: url("../icon/coffee-maker.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-gallery-cta:hover .footer-gallery-icon,
.footer-gallery-cta:focus-visible .footer-gallery-icon {
  background-image: url("../icon/coffee-maker1.svg");
  opacity: 1;
  transform: scale(1.05);
}

.footer-gallery-text {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* 14-16px, responsive */
  line-height: 1.5; /* Standard line height */
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--bcm-charcoal);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.footer-gallery-cta:hover .footer-gallery-text,
.footer-gallery-cta:focus-visible .footer-gallery-text {
  opacity: 1;
  color: var(--bcm-dark-brown);
}

.footer-gallery-subtext {
  font-family: "Archivo Narrow", sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 12-14px, responsive */
  line-height: 1.5; /* Standard line height */
  font-weight: 400;
  font-style: italic;
  color: var(--bcm-dark-olive);
  opacity: 0.7;
  text-align: center;
  margin-top: 0.25rem;
  transition: opacity 0.3s ease;
}

.footer-gallery-cta:hover .footer-gallery-subtext,
.footer-gallery-cta:focus-visible .footer-gallery-subtext {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .intro-layout,
  .story-layout,
  .motion-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-motion {
    order: -1;
    justify-self: center;
    margin-bottom: 2rem;
  }

  .story-motion svg {
    max-width: 420px;
    max-height: 50vh;
  }

  .story-group {
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .story-card {
    gap: 0.625rem;
  }

  .story-card__year {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }

  .story-card__title {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    line-height: 1.25;
  }

  .story-card__text {
    font-size: clamp(0.875rem, 3vw, 1rem);
  }

  .hero-section {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .intro-section {
    padding-block: 3rem;
  }

  .intro-wrap {
    max-width: 100%; /* Full width on mobile */
  }

  .intro-wrap h2 {
    font-size: clamp(1.5rem, 6vw, 2rem); /* Adjusted for mobile */
    line-height: 1.25; /* Slightly more relaxed on mobile */
    margin-bottom: 1.25rem;
  }

  .intro-wrap p {
    font-size: clamp(0.875rem, 4vw, 1rem); /* 14-16px, responsive */
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-label {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    margin-bottom: 1.25rem;
  }

  .section-heading {
    font-size: clamp(1.5rem, 6vw, 2rem); /* Adjusted for mobile */
    line-height: 1.25; /* Slightly more relaxed on mobile */
    margin-bottom: 1.5rem;
  }

  .product-card h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem); /* Adjusted for mobile */
    line-height: 1.25; /* Slightly more relaxed on mobile */
    margin-bottom: 0.625rem;
  }

  .product-card p {
    font-size: clamp(0.875rem, 3vw, 1rem); /* 14-16px, responsive */
  }

  .cup-design-section {
    padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  }

  .cup-design-image {
    max-width: 420px;
  }

  #wrapper-partners-marquee {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card h3 {
    font-size: clamp(1.125rem, 5vw, 1.5rem);
  }

  .product-card p {
    font-size: clamp(0.875rem, 4vw, 1rem);
  }

  .cup-design-section {
    padding: clamp(1.5rem, 5vw, 3rem) var(--gutter);
  }

  .cup-design-image {
    max-width: 100%;
  }

  #wrapper-partners-marquee {
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-gallery {
    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
    align-items: center;
  }

  .footer-motto-contact {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-motto {
    max-width: 100%;
    text-align: center;
    font-size: clamp(0.875rem, 3vw, 1rem);
  }

  .footer-subline {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }

  .footer-link,
  .footer-contact-prefix,
  .footer-separator {
    font-size: clamp(0.875rem, 3vw, 1rem);
  }

  .footer-gallery-text {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }

  .footer-gallery-subtext {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }

  .footer-contact {
    justify-content: center;
  }
}


