/* =========================================================
   EMBARK 12 - AWARDS SECTION (Figma Matched)
   ========================================================= */

.awards-section {
  position: relative;
  width: 100%;
  min-height: clamp(840px, 92vh, 1120px);
  background-color: #f7f3ed;
  background-image: url('../../assets/images/awards/awards-bg.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  padding: clamp(40px, 5vw, 76px) clamp(20px, 4vw, 64px) clamp(50px, 6.5vw, 96px);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ================= Live Noise Grain Overlay ================= */
.awards-live-grain {
  position: absolute;
  top: -60px;
  left: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  background-image: url('../../assets/images/awards/noise-grain.png');
  background-repeat: repeat;
  background-size: 190px 190px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  animation: live-grain-flicker 0.45s steps(6) infinite;
  will-change: transform;
}

@keyframes live-grain-flicker {
  0% {
    transform: translate(0, 0);
  }

  16% {
    transform: translate(-18px, 14px);
  }

  33% {
    transform: translate(22px, -18px);
  }

  50% {
    transform: translate(-14px, -22px);
  }

  66% {
    transform: translate(18px, 16px);
  }

  83% {
    transform: translate(-22px, 8px);
  }

  100% {
    transform: translate(16px, -14px);
  }
}

/* Subtle top and bottom transition vignette shadows */
.awards-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
  pointer-events: none;
  z-index: 1;
}

.awards-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ================= Corner Collages & Scribbles ================= */
.awards-sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

/* Top-Left Pink Scribble (Figma scribble 2: 268x190, top 33px, left -42px, angle 0deg, opacity 1) */
.awards-sticker--scribble-tl {
  top: clamp(18px, 1.72vw, 33px);
  left: clamp(-42px, -2.18vw, -20px);
  width: clamp(140px, 13.95vw, 268px);
  height: auto;
  aspect-ratio: 268 / 190;
  opacity: 1;
  transform: rotate(0deg);
}

/* Top-Right Pink Scribble Loop (Figma scribble 3: 244x209, top 76px, left 1699px / right -23px on 1920px artboard, angle 0deg, opacity 1) */
.awards-sticker--scribble-tr {
  top: clamp(28px, 3.95vw, 76px);
  right: clamp(-23px, -1.2vw, -10px);
  width: clamp(130px, 12.7vw, 244px);
  height: auto;
  aspect-ratio: 244 / 209;
  opacity: 1;
  transform: rotate(0deg);
}

@media (min-width: 1440px) {
  .awards-sticker--scribble-tl {
    top: 33px;
    left: -42px;
    width: 268px;
    height: 190px;
    opacity: 1;
    transform: rotate(0deg);
  }

  .awards-sticker--scribble-tr {
    top: 76px;
    right: -23px;
    width: 244px;
    height: 209px;
    opacity: 1;
    transform: rotate(0deg);
  }
}

/* Bottom-Left Torn Painted Paper (Soft Wiggle) */
.awards-sticker--paper-bl {
  bottom: clamp(10px, 2.9vw, 56px);
  left: clamp(12px, 2.2vw, 43px);
  width: clamp(85px, 11.7vw, 225px);
  height: auto;
  filter: drop-shadow(2px 6px 12px rgba(0, 0, 0, 0.1));
  transform-origin: 25% 75%;
  animation: paperWiggle1 4.6s ease-in-out infinite;
  will-change: transform;
}

/* Bottom-Left Scrap (Soft Wiggle) */
.awards-sticker--scrap-bl {
  bottom: clamp(15px, 2.8vw, 54px);
  left: clamp(75px, 12vw, 230px);
  width: clamp(55px, 7.5vw, 145px);
  height: auto;
  filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.08));
  transform-origin: center bottom;
  animation: paperWiggle2 3.8s ease-in-out 0.3s infinite;
  will-change: transform;
}

/* Bottom-Right Torn Painted Paper 1 (Soft Wiggle) */
.awards-sticker--paper-br-1 {
  bottom: clamp(40px, 5.2vw, 100px);
  right: clamp(10px, 1.2vw, 22px);
  width: clamp(95px, 11.5vw, 220px);
  height: auto;
  filter: drop-shadow(3px 6px 14px rgba(0, 0, 0, 0.09));
  transform-origin: 80% 65%;
  animation: paperWiggle3 5s ease-in-out 0.2s infinite;
  will-change: transform;
}

/* Bottom-Right Torn Painted Paper 2 (Soft Wiggle) */
.awards-sticker--paper-br-2 {
  bottom: clamp(10px, 2.6vw, 50px);
  right: clamp(60px, 8.8vw, 170px);
  width: clamp(75px, 9.4vw, 180px);
  height: auto;
  filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.08));
  transform-origin: 50% 80%;
  animation: paperWiggle4 4.2s ease-in-out 0.6s infinite;
  will-change: transform;
}

/* ================= Keyframes for Paper Soft Wiggle ================= */
@keyframes paperWiggle1 {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  25% {
    transform: rotate(-1.8deg) translate(-2px, -3px);
  }

  50% {
    transform: rotate(1.4deg) translate(1px, -1px);
  }

  75% {
    transform: rotate(-0.8deg) translate(2px, 2px);
  }

  100% {
    transform: rotate(0deg) translate(0, 0);
  }
}

@keyframes paperWiggle2 {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  20% {
    transform: rotate(2.2deg) translate(2px, -2px);
  }

  50% {
    transform: rotate(-1.5deg) translate(-2px, 2px);
  }

  75% {
    transform: rotate(1.2deg) translate(-1px, -1px);
  }

  100% {
    transform: rotate(0deg) translate(0, 0);
  }
}

@keyframes paperWiggle3 {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  28% {
    transform: rotate(-2deg) translate(2px, -2px);
  }

  56% {
    transform: rotate(1.6deg) translate(-2px, 1px);
  }

  82% {
    transform: rotate(-1deg) translate(1px, 2px);
  }

  100% {
    transform: rotate(0deg) translate(0, 0);
  }
}

@keyframes paperWiggle4 {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  24% {
    transform: rotate(1.8deg) translate(-2px, 2px);
  }

  52% {
    transform: rotate(-1.8deg) translate(2px, -2px);
  }

  78% {
    transform: rotate(1deg) translate(-1px, -1px);
  }

  100% {
    transform: rotate(0deg) translate(0, 0);
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {

  .awards-live-grain,
  .awards-sticker--paper-bl,
  .awards-sticker--scrap-bl,
  .awards-sticker--paper-br-1,
  .awards-sticker--paper-br-2 {
    animation: none !important;
  }
}

/* ================= Header Title Area ================= */
.awards-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: clamp(16px, 2vw, 28px);
  position: relative;
  z-index: 4;
}

.awards-eyebrow {
  font-family: 'Darker Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(26px, 2.5vw, 42px);
  font-weight: 800;
  /* ExtraBold */
  font-style: normal;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #141414;
  margin: 0 0 clamp(4px, 0.5vw, 10px) 0;
}

@media (min-width: 1440px) {
  .awards-eyebrow {
    font-size: 42px;
  }
}

.awards-title-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.awards-title-img {
  width: clamp(330px, 35vw, 580px);
  height: auto;
  aspect-ratio: 745.50868 / 164.81017;
  max-width: 95%;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 4px 16px rgba(238, 64, 42, 0.14));
  transition: transform 0.3s ease;
}

.awards-title-img:hover {
  transform: scale(1.02);
}

@media (min-width: 1440px) {
  .awards-title-img {
    width: 580px;
    height: auto;
  }
}

/* ================= Awards Layout (Figma Matched: 3 cols -> 4 cols -> 3 cols -> 4 cols) ================= */
.awards-grid-container {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  position: relative;
  z-index: 4;
}

.awards-row {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  column-gap: clamp(6px, 1vw, 14px);
  width: 100%;
  justify-items: center;
  align-items: start;
}

/* 4-Column Rows (Rows 2 & 4): 4 items spanning 6 columns each (6 * 4 = 24) */
.awards-row--4> :nth-child(1) {
  grid-column: 1 / span 6;
}

.awards-row--4> :nth-child(2) {
  grid-column: 7 / span 6;
}

.awards-row--4> :nth-child(3) {
  grid-column: 13 / span 6;
}

.awards-row--4> :nth-child(4) {
  grid-column: 19 / span 6;
}

/* 3-Column Rows (Rows 1 & 3): 3 items spanning 6 columns each, offset by 3 cols to center between 4-col items */
.awards-row--3> :nth-child(1) {
  grid-column: 4 / span 6;
}

.awards-row--3> :nth-child(2) {
  grid-column: 10 / span 6;
}

.awards-row--3> :nth-child(3) {
  grid-column: 16 / span 6;
}

.award-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 235px;
  padding: 0 4px;
  border-radius: 6px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
  will-change: transform;
  cursor: default;
  box-sizing: border-box;
}

.award-card:hover {
  transform: translateY(-3px);
}

/* ================= Row-by-Row Pop-Up Animation ================= */
.awards-animated .award-card {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.42s ease-out,
    transform 0.5s cubic-bezier(0.34, 1.35, 0.64, 1),
    filter 0.24s ease;
  will-change: transform, opacity;
}

/* Stagger delay by row */
.awards-animated .awards-row[data-row="1"] .award-card {
  transition-delay: 0.04s;
}

.awards-animated .awards-row[data-row="2"] .award-card {
  transition-delay: 0.12s;
}

.awards-animated .awards-row[data-row="3"] .award-card {
  transition-delay: 0.2s;
}

.awards-animated .awards-row[data-row="4"] .award-card {
  transition-delay: 0.28s;
}

.awards-animated .award-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.awards-animated .award-card.is-visible:hover {
  transform: translateY(-3px) scale(1.02);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.24s ease;
}

/* Accessibility: respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .awards-animated .award-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Emblem sizing: Spectrum, Pinnacle, Quill (Enlarged & Prominent) */
.award-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  width: 100%;
  height: clamp(66px, 6.8vw, 98px);
}

.award-emblem-img {
  width: auto;
  max-width: clamp(130px, 13vw, 195px);
  height: auto;
  max-height: clamp(66px, 6.8vw, 98px);
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
}

.award-card:hover .award-emblem-img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

@media (min-width: 1440px) {
  .award-emblem-wrap {
    height: 98px;
  }

  .award-emblem-img {
    max-width: 195px;
    max-height: 98px;
  }
}

.award-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.award-lead {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.78rem, 0.88vw, 0.98rem);
  font-weight: 700;
  color: #000000;
  line-height: 1.24;
  margin: 0 0 3px 0;
  text-align: center;
}

.award-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.66rem, 0.72vw, 0.8rem);
  font-weight: 600;
  color: #141414;
  line-height: 1.28;
  margin: 0;
  text-align: center;
}

.award-desc strong {
  font-weight: 700;
  color: #000000;
}

/* ================= Row 1 Special Summary Lists ================= */
.award-card.awards-summary-col {
  padding-top: clamp(6px, 1vw, 14px);
  justify-content: flex-start;
}

.awards-summary-heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.78rem, 0.88vw, 0.98rem);
  font-weight: 700;
  color: #000000;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
  text-align: center;
}

.awards-summary-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0 auto;
  text-align: left;
  display: inline-block;
  box-sizing: border-box;
}

.awards-summary-list li {
  display: list-item;
  list-style-type: disc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.66rem, 0.72vw, 0.8rem);
  font-weight: 600;
  color: #141414;
  line-height: 1.35;
  white-space: normal;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.awards-summary-list li::marker {
  color: #141414;
}

.awards-summary-list li:hover {
  color: #ee402a;
}

.awards-summary-list li:hover::marker {
  color: #ee402a;
}

/* ================= Responsive Layouts ================= */
@media (max-width: 820px) {
  .awards-section {
    min-height: auto;
    background-size: cover;
    background-position: center center;
    justify-content: flex-start;
    padding: 48px 16px 72px;
  }

  .awards-grid-container {
    max-width: 560px;
    gap: 24px;
  }

  .awards-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 16px !important;
  }

  .awards-row--3> :nth-child(n),
  .awards-row--4> :nth-child(n) {
    grid-column: auto !important;
  }

  /* Centering the 3rd card in a 3-item row */
  .awards-row--3> :nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  .awards-summary-list li {
    white-space: normal;
  }

  .award-card.awards-summary-col {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .awards-section {
    padding: 44px 16px 64px;
  }

  .awards-sticker--scribble-tl {
    width: 80px;
    top: 14px;
    left: 14px;
  }

  .awards-sticker--scribble-tr {
    width: 75px;
    top: 14px;
    right: 14px;
  }

  .awards-sticker--paper-bl {
    width: 90px;
    left: 8px;
    bottom: 12px;
  }

  .awards-sticker--scrap-bl {
    width: 55px;
    left: 85px;
    bottom: 15px;
  }

  .awards-sticker--paper-br-1 {
    width: 95px;
    right: 8px;
    bottom: 40px;
  }

  .awards-sticker--paper-br-2 {
    width: 75px;
    right: 60px;
    bottom: 10px;
  }
}

@media (max-width: 500px) {
  .awards-section {
    padding: 40px 14px 60px;
  }

  .awards-grid-container {
    max-width: 280px;
    gap: 22px;
  }

  .awards-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .awards-row--3> :nth-child(n),
  .awards-row--4> :nth-child(n) {
    grid-column: auto !important;
  }

  .award-emblem-wrap {
    height: auto;
  }

  .award-emblem-img {
    max-width: 140px;
    height: auto;
  }

  .award-text-wrap {
    max-width: 240px;
  }

  .awards-sticker--scribble-tl {
    width: 65px;
    top: 10px;
    left: 10px;
  }

  .awards-sticker--scribble-tr {
    width: 60px;
    top: 10px;
    right: 10px;
  }

  .awards-sticker--paper-bl {
    width: 75px;
    left: 6px;
    bottom: 8px;
  }

  .awards-sticker--scrap-bl {
    width: 48px;
    left: 68px;
    bottom: 10px;
  }

  .awards-sticker--paper-br-1 {
    width: 80px;
    right: 6px;
    bottom: 30px;
  }

  .awards-sticker--paper-br-2 {
    width: 60px;
    right: 48px;
    bottom: 6px;
  }
}