@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&display=swap');

/* ================================================================
   SC CENTURY TEASER  —  history-teaser.css
   Homepage section: "A Century of Color" — insert before Brands
   Brand red: #aa1d2d  |  Font: Archivo Narrow (loaded by site)
   ================================================================ */

/* The hero-cards section above ours is transparent; give it an explicit
   white background so the dark sc-century doesn't show behind it. */
.hero-cards {
  background-color: #ffffff;
}

.sc-century {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  padding: 90px 0 110px;
  margin-top: 56px;
}

/* ---- Swoosh SVG ---- */
.sc-century__swoosh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sc-century__swoosh svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Inner container ---- */
.sc-century__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 56px;
}

/* ---- Content: left column ---- */
.sc-century__content {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 420px;
  flex: 0 0 420px;
  max-width: 420px;
  color: #fff;
}

.sc-century__eyebrow {
  font-family: 'Archivo Narrow', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #aa1d2d;
  margin: 0 0 20px;
}

.sc-century__heading {
  font-family: 'Archivo Narrow', Arial, Helvetica, sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: .96;
  margin: 0 0 26px;
  color: #fff;
  letter-spacing: -.01em;
}

.sc-century__desc {
  font-family: 'Archivo Narrow', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
  margin: 0 0 38px;
}

.sc-century__cta {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: 'Archivo Narrow', Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #aa1d2d;
  background: #ffffff;
  text-decoration: none;
  padding: 17px 34px;
  border-radius: 2px;
  -webkit-transition: background 220ms ease, -webkit-transform 220ms ease;
  transition: background 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.sc-century__cta:hover {
  background: #f5f0e8;
  -webkit-transform: translateX(4px);
  transform: translateX(4px);
  color: #aa1d2d;
  text-decoration: none;
}

/* ---- Collage: right column ---- */
.sc-century__collage {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  position: relative;
  height: 480px;
  min-width: 0;
}

/* Photo wrapper — physical print border */
.sc-century__photo {
  position: absolute;
  background: #f5f0e8;
  padding: 7px 7px 24px;
  -webkit-box-shadow: 0 10px 36px rgba(0,0,0,.60), 0 2px 8px rgba(0,0,0,.35);
  box-shadow: 0 10px 36px rgba(0,0,0,.60), 0 2px 8px rgba(0,0,0,.35);
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-transition: -webkit-box-shadow 300ms ease, -webkit-transform 300ms ease;
  transition: box-shadow 300ms ease, transform 300ms ease;
  cursor: pointer;
}

.sc-century__photo:hover {
  -webkit-box-shadow: 0 20px 56px rgba(0,0,0,.70), 0 4px 14px rgba(0,0,0,.45);
  box-shadow: 0 20px 56px rgba(0,0,0,.70), 0 4px 14px rgba(0,0,0,.45);
  z-index: 10;
}

/* Clip container — used for P1/P2 to zoom in and hide the wide background */
.sc-century__photo-img {
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 24px;
  left: 7px;
  overflow: hidden;
}

.sc-century__photo img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-object-position: 50% 20%;
  object-position: 50% 20%;
  -webkit-filter: sepia(8%);
  filter: sepia(8%);
}

/* P1: zoom in 1.3× to crop the wide empty background on the sides */
.sc-century__photo--1 .sc-century__photo-img img {
  -webkit-transform: scale(1.3);
  transform: scale(1.3);
  -webkit-transform-origin: 50% 55%;
  transform-origin: 50% 55%;
}

/* Per-slot crop anchors — tune if photos change */
.sc-century__photo--1 img { -webkit-object-position: 50% 60%; object-position: 50% 60%; }
.sc-century__photo--2 img { -webkit-object-position: 50% 65%; object-position: 50% 65%; }
.sc-century__photo--3 img { -webkit-object-position: 60% 20%; object-position: 60% 20%; }
.sc-century__photo--4 img { -webkit-object-position: 50% 55%; object-position: 50% 55%; }
.sc-century__photo--5 img { -webkit-object-position: 50% 50%; object-position: 50% 50%; }

/* Year label — sits in the polaroid's 24px bottom mat */
.sc-century__photo-year {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-size: 13px;
  font-weight: 600;
  color: #7a6e60;
  pointer-events: none;
}

/* Individual photo sizes, positions, and tilts — 2 + 1 center + 2 arrangement */
/* P1: portrait upper-left | P2: portrait upper-right | P3: portrait center */
/* P4: landscape lower-left | P5: landscape lower-right */
.sc-century__photo--1 {
  width: 170px;
  height: 232px;
  top: 24px;
  left: 0;
  -webkit-transform: rotate(-2.5deg);
  transform: rotate(-2.5deg);
}

.sc-century__photo--2 {
  width: 170px;
  height: 232px;
  top: 18px;
  right: 0;
  -webkit-transform: rotate(2.4deg);
  transform: rotate(2.4deg);
}

.sc-century__photo--3 {
  width: 166px;
  height: 228px;
  top: 52px;
  left: -webkit-calc(50% - 83px);
  left: calc(50% - 83px);
  -webkit-transform: rotate(-1.1deg);
  transform: rotate(-1.1deg);
}

/* Bottom row: three landscapes spanning the full collage width */
.sc-century__photo--4,
.sc-century__photo--5,
.sc-century__photo--6 {
  width: 31%;
  height: auto;
  aspect-ratio: 10 / 7;
  padding-bottom: 16px;
}

.sc-century__photo--4 {
  top: 292px;
  left: 0;
  -webkit-transform: rotate(1.9deg);
  transform: rotate(1.9deg);
}

.sc-century__photo--6 {
  top: 302px;
  left: 34.5%;
  -webkit-transform: rotate(0.7deg);
  transform: rotate(0.7deg);
}

.sc-century__photo--5 {
  top: 286px;
  right: 0;
  -webkit-transform: rotate(-2.0deg);
  transform: rotate(-2.0deg);
}

.sc-century__photo--4 .sc-century__photo-year,
.sc-century__photo--5 .sc-century__photo-year,
.sc-century__photo--6 .sc-century__photo-year {
  height: 16px;
  line-height: 16px;
}

/* ================================================================
   SCROLL-IN ANIMATIONS
   JS adds .is-visible to [data-sc-animate] on enter
   ================================================================ */

[data-sc-animate] .sc-century__content {
  opacity: 0;
  -webkit-transform: translateY(32px);
  transform: translateY(32px);
  -webkit-transition: opacity 700ms ease, -webkit-transform 700ms ease;
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-sc-animate] .sc-century__photo--1 {
  opacity: 0;
  -webkit-transform: rotate(-2.5deg) translate(-48px, 28px);
  transform: rotate(-2.5deg) translate(-48px, 28px);
  -webkit-transition: opacity 550ms ease, -webkit-transform 650ms cubic-bezier(.2,.8,.2,1), -webkit-box-shadow 300ms ease;
  transition: opacity 550ms ease, transform 650ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}
[data-sc-animate] .sc-century__photo--2 {
  opacity: 0;
  -webkit-transform: rotate(2.4deg) translate(48px, 20px);
  transform: rotate(2.4deg) translate(48px, 20px);
  -webkit-transition: opacity 550ms ease, -webkit-transform 650ms cubic-bezier(.2,.8,.2,1), -webkit-box-shadow 300ms ease;
  transition: opacity 550ms ease, transform 650ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}
[data-sc-animate] .sc-century__photo--3 {
  opacity: 0;
  -webkit-transform: rotate(-1.1deg) translate(0, -54px);
  transform: rotate(-1.1deg) translate(0, -54px);
  -webkit-transition: opacity 550ms ease, -webkit-transform 650ms cubic-bezier(.2,.8,.2,1), -webkit-box-shadow 300ms ease;
  transition: opacity 550ms ease, transform 650ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}
[data-sc-animate] .sc-century__photo--4 {
  opacity: 0;
  -webkit-transform: rotate(1.9deg) translate(-44px, 44px);
  transform: rotate(1.9deg) translate(-44px, 44px);
  -webkit-transition: opacity 550ms ease, -webkit-transform 650ms cubic-bezier(.2,.8,.2,1), -webkit-box-shadow 300ms ease;
  transition: opacity 550ms ease, transform 650ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}
[data-sc-animate] .sc-century__photo--5 {
  opacity: 0;
  -webkit-transform: rotate(-2.0deg) translate(44px, 44px);
  transform: rotate(-2.0deg) translate(44px, 44px);
  -webkit-transition: opacity 550ms ease, -webkit-transform 650ms cubic-bezier(.2,.8,.2,1), -webkit-box-shadow 300ms ease;
  transition: opacity 550ms ease, transform 650ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}
[data-sc-animate] .sc-century__photo--6 {
  opacity: 0;
  -webkit-transform: rotate(0.7deg) translate(0, 44px);
  transform: rotate(0.7deg) translate(0, 44px);
  -webkit-transition: opacity 550ms ease, -webkit-transform 650ms cubic-bezier(.2,.8,.2,1), -webkit-box-shadow 300ms ease;
  transition: opacity 550ms ease, transform 650ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}

/* Triggered state */
[data-sc-animate].is-visible .sc-century__content {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition-delay: 80ms;
  transition-delay: 80ms;
}
[data-sc-animate].is-visible .sc-century__photo--1 {
  opacity: 1;
  -webkit-transform: rotate(-2.5deg) translate(0, 0);
  transform: rotate(-2.5deg) translate(0, 0);
  -webkit-transition-delay: 180ms;
  transition-delay: 180ms;
}
[data-sc-animate].is-visible .sc-century__photo--2 {
  opacity: 1;
  -webkit-transform: rotate(2.4deg) translate(0, 0);
  transform: rotate(2.4deg) translate(0, 0);
  -webkit-transition-delay: 240ms;
  transition-delay: 240ms;
}
[data-sc-animate].is-visible .sc-century__photo--3 {
  opacity: 1;
  -webkit-transform: rotate(-1.1deg) translate(0, 0);
  transform: rotate(-1.1deg) translate(0, 0);
  -webkit-transition-delay: 320ms;
  transition-delay: 320ms;
}
[data-sc-animate].is-visible .sc-century__photo--4 {
  opacity: 1;
  -webkit-transform: rotate(1.9deg) translate(0, 0);
  transform: rotate(1.9deg) translate(0, 0);
  -webkit-transition-delay: 400ms;
  transition-delay: 400ms;
}
[data-sc-animate].is-visible .sc-century__photo--5 {
  opacity: 1;
  -webkit-transform: rotate(-2.0deg) translate(0, 0);
  transform: rotate(-2.0deg) translate(0, 0);
  -webkit-transition-delay: 460ms;
  transition-delay: 460ms;
}
[data-sc-animate].is-visible .sc-century__photo--6 {
  opacity: 1;
  -webkit-transform: rotate(0.7deg) translate(0, 0);
  transform: rotate(0.7deg) translate(0, 0);
  -webkit-transition-delay: 520ms;
  transition-delay: 520ms;
}

@media (prefers-reduced-motion: reduce) {
  [data-sc-animate] .sc-century__content,
  [data-sc-animate] .sc-century__photo--1,
  [data-sc-animate] .sc-century__photo--2,
  [data-sc-animate] .sc-century__photo--3,
  [data-sc-animate] .sc-century__photo--4,
  [data-sc-animate] .sc-century__photo--5,
  [data-sc-animate] .sc-century__photo--6 {
    opacity: 1;
    -webkit-transition: none;
    transition: none;
  }
  [data-sc-animate] .sc-century__photo--1 { -webkit-transform: rotate(-2.5deg); transform: rotate(-2.5deg); }
  [data-sc-animate] .sc-century__photo--2 { -webkit-transform: rotate( 2.4deg); transform: rotate( 2.4deg); }
  [data-sc-animate] .sc-century__photo--3 { -webkit-transform: rotate(-1.1deg); transform: rotate(-1.1deg); }
  [data-sc-animate] .sc-century__photo--4 { -webkit-transform: rotate( 1.9deg); transform: rotate( 1.9deg); }
  [data-sc-animate] .sc-century__photo--5 { -webkit-transform: rotate(-2.0deg); transform: rotate(-2.0deg); }
  [data-sc-animate] .sc-century__photo--6 { -webkit-transform: rotate( 0.7deg); transform: rotate( 0.7deg); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
  .sc-century__heading { font-size: 68px; }
  .sc-century__content { -ms-flex: 0 0 360px; flex: 0 0 360px; max-width: 360px; }
  .sc-century__inner { gap: 40px; }
}

@media (max-width: 860px) {
  .sc-century { padding: 100px 0 90px; }

  .sc-century__inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 50px;
    padding: 0 24px;
  }

  .sc-century__content {
    -webkit-box-flex: none;
    -ms-flex: none;
    flex: none;
    max-width: 100%;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .sc-century__heading { font-size: 58px; }

  .sc-century__collage {
    -webkit-box-flex: none;
    -ms-flex: none;
    flex: none;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    height: 310px;
  }

  .sc-century__photo--1 { width: 108px; height: 148px; top: 14px; left: 0; }
  .sc-century__photo--2 { width: 108px; height: 148px; top: 10px; right: 0; }
  .sc-century__photo--3 { width: 106px; height: 145px; top: 32px; left: -webkit-calc(50% - 53px); left: calc(50% - 53px); }
  .sc-century__photo--4 { top: 178px; }
  .sc-century__photo--5 { top: 174px; }
  .sc-century__photo--6 { top: 184px; }
}

@media (max-width: 480px) {
  .sc-century__heading { font-size: 48px; }
  .sc-century__photo { padding: 5px 5px 18px; }
  .sc-century__photo-year { height: 18px; line-height: 18px; font-size: 11px; }
  .sc-century__photo-img { top: 5px; right: 5px; bottom: 18px; left: 5px; }
}
