/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* =========================================================
   HIGHLIGHTS PAGE
   Relaxed editorial / photo-journal treatment
========================================================= */

.highlights-page {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: var(--space-48) 0 var(--space-96);
  font-family: var(--font-main);
}

/* =========================================================
   PAGE HEADING
========================================================= */

.fast-lane-heading {
  max-width: 820px;
  margin: 0 auto var(--space-96);
  padding: var(--space-24) 0 var(--space-32);
  text-align: center;
}

.fast-lane-eyebrow {
  margin: 0 0 var(--space-16);
  font-size: var(--font-10);
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--accent);
}

.fast-lane-heading h1 {
  margin: 0;
  font-size: clamp(var(--font-44), 5vw, var(--font-62));
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -2px;
  color: var(--text-main);
}

.fast-lane-heading h1 span {
  display: inline-block;
  margin-left: var(--space-8);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.fast-lane-intro {
  max-width: 620px;
  margin: var(--space-24) auto 0;
  font-size: var(--font-14);
  font-weight: 400;
  line-height: 1.75;
  color: var(--dark-grey);
}

.fast-lane-note {
  margin: var(--space-16) 0 0;
  font-size: var(--font-10);
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* =========================================================
   STORY BLOCK
========================================================= */

.story-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: var(--space-48);
  width: 100%;
  margin-bottom: var(--space-128);
  padding: var(--space-24) 0;
  isolation: isolate;
}

.story-block-reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.story-block-reverse .story-gallery {
  grid-column: 2;
  grid-row: 1;
}

.story-block-reverse .story-context {
  grid-column: 1;
  grid-row: 1;
}

/* =========================================
   OPEN CORNER FRAME
========================================= */

.story-block::before,
.story-block::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* TOP LEFT CORNER */
.story-block::before {
  top: 8px;
  left: -8px;

  width: 160px;
  height: 64px;

  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

/* BOTTOM RIGHT CORNER */
.story-block::after {
  right: -8px;
  bottom: 8px;

  width: 160px;
  height: 64px;

  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}


/* =========================================
   REVERSED STORIES
========================================= */

.story-block-reverse::before {
  left: auto;
  right: -8px;

  border-left: none;
  border-right: 1px solid var(--accent);
}

.story-block-reverse::after {
  right: auto;
  left: -8px;

  border-right: none;
  border-left: 1px solid var(--accent);
}
/* =========================================================
   GALLERY — PHOTO FRAME
========================================================= */

.story-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: var(--space-12);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 2;
  transform: rotate(-0.35deg);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.story-block-reverse .story-gallery {
  transform: rotate(0.35deg);
}

.story-gallery:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.05);
}

/* inner photo viewport */
.story-gallery::before {
  content: "";
  position: absolute;
  inset: var(--space-12);
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

/* =========================================================
   GALLERY IMAGES
========================================================= */

.story-gallery img {
  position: absolute;
  inset: var(--space-12);
  width: calc(100% - (var(--space-12) * 2));
  height: calc(100% - (var(--space-12) * 2));
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.85s ease,
    transform 5.5s ease;
}

.story-gallery img.active {
  opacity: 1;
  transform: scale(1);
}

/* =========================================================
   CAROUSEL COUNTER + CONTROLS
========================================================= */

.story-counter {
  position: absolute;
  left: var(--space-24);
  bottom: var(--space-24);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: var(--font-10);
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--text-main);
}

.story-block-reverse .story-counter {
  left: var(--space-24);
  right: auto;
}

.gallery-controls {
  position: absolute;
  right: var(--space-24);
  bottom: var(--space-24);
  z-index: 10;
  display: flex;
  gap: var(--space-8);
}

.gallery-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--text-main);
  font-family: inherit;
  font-size: var(--font-16);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.gallery-arrow:hover {
  transform: translateY(-2px);
  background: #fff;
}

.gallery-arrow:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   CONTEXT
========================================================= */

.story-context {
  position: relative;
  width: 100%;
  padding: var(--space-32) var(--space-24);
  z-index: 4;
}

.story-context::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-24);
  width: 2px;
  height: 48px;
  background: var(--accent);
}

.story-block-reverse .story-context::before {
  left: auto;
  right: 0;
}

.story-label {
  margin: 0 0 var(--space-8);
  font-size: var(--font-10);
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--accent);
}

.story-year {
  margin: 0 0 var(--space-16);
  font-size: var(--font-10);
  font-weight: 400;
  letter-spacing: 1.4px;
  color: var(--text-muted);
}

.story-context h2 {
  margin: 0;
  font-size: clamp(var(--font-24), 2.6vw, var(--font-36));
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.story-lead {
  max-width: 520px;
  margin: var(--space-16) 0 0;
  font-size: var(--font-14);
  line-height: 1.65;
  font-style: italic;
  color: var(--dark-grey);
}

.story-text {
  max-width: 560px;
  margin: var(--space-24) 0 0;
  font-size: var(--font-14);
  line-height: 1.8;
  color: var(--dark-grey);
   text-align: justify;
  hyphens: auto;
}

.story-resources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.story-resource-link {
  display: inline-block;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  font-size: var(--font-10);
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--accent);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.story-resource-link:hover {
  border-color: var(--accent);
  transform: translateX(var(--space-4));
  opacity: 0.75;
}

/* =========================================================
   CLOSING
========================================================= */

.behind-track-closing {
  padding: var(--space-32) 0 var(--space-64);
  text-align: center;
}

.behind-track-closing p {
  margin: 0;
  font-size: var(--font-10);
  font-weight: 400;
  letter-spacing: 5px;
  color: var(--text-muted);
}

.behind-track-closing div {
  width: var(--space-48);
  height: 2px;
  margin: var(--space-16) auto 0;
  background: var(--accent);
}

/* =========================================================
   LARGE LAPTOP
========================================================= */

@media (max-width: 1100px) {
  .story-block,
  .story-block-reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: var(--space-32);
  }

  .story-block-reverse .story-gallery {
    grid-column: 2;
  }

  .story-context {
    padding: var(--space-24);
  }

  .story-text {
    font-size: var(--font-12);
    line-height: 1.75;
  }
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {
  .highlights-page {
    width: calc(100% - 48px);
  }

  .story-block,
  .story-block-reverse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--space-96);
    padding: var(--space-16);
  }

  .story-block-reverse {
    flex-direction: column;
  }

  .story-gallery,
  .story-block-reverse .story-gallery {
    width: 100%;
    transform: rotate(0deg);
  }

  .story-context,
  .story-block-reverse .story-context {
    width: calc(100% - 48px);
    margin: calc(var(--space-24) * -1) auto 0;
    padding: var(--space-32);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
  }

  .story-context::before,
  .story-block-reverse .story-context::before {
    left: var(--space-32);
    right: auto;
    top: 0;
    width: 48px;
    height: 2px;
  }

  .story-block::before,
  .story-block-reverse::before {
    top: 0;
    left: 0;
    right: auto;
    width: 68%;
    height: 60%;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    border-right: none;
  }

  .story-block::after,
  .story-block-reverse::after {
    right: 0;
    left: auto;
    bottom: 0;
    width: 54%;
    height: 22%;
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    border-left: none;
  }
}

@media (max-width: 760px) {
  .highlights-page {
    width: calc(100% - 32px);
    padding: var(--space-48) 0 var(--space-64);
  }

  .fast-lane-heading {
    margin-bottom: var(--space-64);
    padding: var(--space-16) var(--space-8) var(--space-24);
  }

  .fast-lane-heading h1 {
    font-size: var(--font-36);
    line-height: 1.05;
  }

  .fast-lane-heading h1 span {
    display: block;
    margin: var(--space-8) 0 0;
  }

  .fast-lane-eyebrow {
    letter-spacing: 2px;
  }

  .fast-lane-intro {
    font-size: var(--font-12);
  }

  .story-block,
  .story-block-reverse {
    margin-bottom: var(--space-80);
  }

  .story-gallery {
    aspect-ratio: 4 / 3;
  }

  .story-context,
  .story-block-reverse .story-context {
    width: calc(100% - 32px);
    padding: var(--space-24);
  }

  .story-context h2 {
    font-size: var(--font-24);
  }

  .story-lead {
    font-size: var(--font-14);
  }

  .story-text {
    font-size: var(--font-12);
    line-height: 1.75;
  }

  .gallery-controls {
    right: var(--space-24);
  }
}

@media (max-width: 480px) {
  .highlights-page {
    width: calc(100% - 24px);
  }

  .fast-lane-heading h1 {
    font-size: var(--font-30);
  }

  .story-gallery {
    padding: var(--space-8);
  }

  .story-gallery::before {
    inset: var(--space-8);
  }

  .story-gallery img {
    inset: var(--space-8);
    width: calc(100% - (var(--space-8) * 2));
    height: calc(100% - (var(--space-8) * 2));
  }

  .story-context,
  .story-block-reverse .story-context {
    width: calc(100% - 16px);
    padding: var(--space-24);
  }

  .story-context h2 {
    font-size: var(--font-20);
  }

  .story-lead {
    margin-top: var(--space-12);
    font-size: var(--font-12);
  }

  .story-text {
    margin-top: var(--space-16);
  }

  .story-counter {
    left: var(--space-16);
    bottom: var(--space-16);
  }

  .gallery-controls {
    right: var(--space-16);
    bottom: var(--space-16);
  }

  .gallery-arrow {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-gallery,
  .story-gallery img,
  .gallery-arrow,
  .story-resource-link {
    transition: none;
  }
}


.behind-track-intro {
  width: min(1280px, calc(100% - 80px));
    margin: 0 auto var(--space-64);

  padding: 8px 0 0;
  text-align: center;
}

.behind-track-border {
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.behind-track-kicker {
  margin: 16px 0 10px;

  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;

  color: #777;
}

.behind-track-intro h1 {
  margin: 0;

  font-size: clamp(44px, 5vw, 62px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2px;

  color: #111;
}

.behind-track-intro h1 span {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.behind-track-intro-text {
  max-width: 620px;
  margin: 16px auto 22px;

  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.4px;

  color: #777;
}

/* =========================================================
   FAST LANE PAGE HEADER — MATCH PROJECT PAGES
========================================================= */

.highlights-page {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;

  /* remove Highlights-specific top offset */
  padding-top: 0;
}


/* Header container */
.behind-track-intro {
  width: 100%;

  margin: 0 auto var(--space-64);

  padding: 8px 0 0;

  text-align: center;
}


/* Top + bottom rules */
.behind-track-border {
  width: 100%;
  height: 1px;

  background: var(--accent);
}


/* Small heading */
.behind-track-kicker {
  margin: 24px 0 14px;

  font-size: 10px;
  font-weight: 400;

  letter-spacing: 5px;

  color: #777;
}


/* Main title */
.behind-track-intro h1 {
  margin: 0;

  font-size: clamp(44px, 5vw, 62px);
  font-weight: 300;

  line-height: 1;
  letter-spacing: -2px;

  color: #111;
}


.behind-track-intro h1 span {
  color: var(--accent);

  font-style: italic;
  font-weight: 300;
}


/* Description */
.behind-track-intro-text {
  max-width: 620px;

  margin: 20px auto 28px;

  font-size: 11px;
  line-height: 1.7;

  letter-spacing: 0.4px;

  color: #777;
}

/* ==================================================
   FAST LANE TITLE — FLOAT IN
================================================== */

.behind-track-intro {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.behind-track-intro.title-visible {
  opacity: 1;
  transform: translateY(0);
}