/* =============================================================================
   CARSON COLD — STORY / ARTICLE PAGE STYLES
   Mirrors the Lineage editorial style:
     · Centered, rounded hero photo matching the site's editorial headers
     · White article card follows the photo on a light-grey page bg
     · Title: large, dark charcoal, centered
     · Breadcrumb → Title → Date → Share icons all inside the card header
   ============================================================================= */

/* ── Page background, including the space around the hero ──────────────── */
body {
  background: #f4f5f7;
}

.story-page-bg {
  background: #f4f5f7;
  min-height: 60vh;
}

/* ── Hero photo: same framed proportions as the editorial page headers ── */
.story-hero-photo {
  width: calc(100% - 48px);
  max-width: 1152px;
  height: 310px;
  margin: 34px auto 30px;
  overflow: hidden;
  display: block;
  border: 1px solid #d9e8ef;
  border-radius: 20px;
  box-shadow: 0 12px 35px #16405b08;
}

.story-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

/* ── White article card ───────────────────────────────────────────────────── */
.story-main {
  position: relative;
}

.story-card {
  background: #fff;
  width: calc(100% - 48px);
  max-width: 1152px;
  margin: -120px auto 0;   /* retained for the separate closing card */
  position: relative;
  z-index: 2;
  border-radius: 0;
  padding: 0 0 56px;
}

/* Keep the first article card below the now-shorter framed hero. */
.story-main > .story-card:first-child {
  margin-top: 0;
}

/* ── Card header: breadcrumb + title + date + share ─────────────────────── */
.story-card-header {
  text-align: center;
  padding: 52px 72px 36px;
  border-bottom: 1px solid #e8eaed;
}

/* Breadcrumb / eyebrow */
.story-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1d5b8c;
  margin: 0 0 24px;
}

.story-eyebrow a {
  color: #1d5b8c;
  text-decoration: none;
}
.story-eyebrow a:hover { text-decoration: underline; }

.story-eyebrow span[aria-hidden] {
  color: #a0b4c8;
  font-weight: 400;
}

/* Title */
.story-title {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: #333333;
  line-height: 1.2;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Date */
.story-intro {
  font-size: 17px;
  font-weight: 400;
  color: #3d4f63;
  line-height: 1.75;
  padding: 36px 0 8px;
  border-bottom: 1px solid #e8eaf0;
  margin-bottom: 8px;
  font-style: italic;
}

.story-subtitle {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: #6b7a90;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ── Closing Initial ────────────────────────────────────────────────────── */
.story-closing-initial {
  float: left;
  font-size: 76px;
  font-weight: 800;
  line-height: 0.72;
  margin: 4px 12px -4px 0;
  padding-bottom: 4px;
  color: #4CC9F0;
  font-family: Montserrat, sans-serif;
  text-shadow: 0 2px 16px rgba(76,201,240,0.2);
}

/* ── Drop Cap ───────────────────────────────────────────────────────────── */
.story-drop-cap {
  float: left;
  font-size: 76px;
  font-weight: 800;
  line-height: 0.72;
  margin: 4px 12px -4px 0;
  padding-bottom: 4px;
  color: #4CC9F0;
  font-family: Montserrat, sans-serif;
  text-shadow: 0 2px 16px rgba(76,201,240,0.2);
}

.story-intro::after {
  content: '';
  display: table;
  clear: both;
}

/* ── Pull Quote ─────────────────────────────────────────────────────────── */
.story-pull-quote {
  border-left: 4px solid #4CC9F0;
  margin: 36px 0;
  padding: 16px 24px;
  background: rgba(76, 201, 240, 0.05);
  border-radius: 0 6px 6px 0;
}

.story-pull-quote p {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: #1a2a3a;
  line-height: 1.6;
  margin: 0;
  font-family: Georgia, serif;
}

/* ── Byline ─────────────────────────────────────────────────────────────── */
.story-byline {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  margin: 0 0 8px;
  font-family: Inter, sans-serif;
  letter-spacing: 0.01em;
}

.story-date {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b0b0b0;
  margin: 0 0 22px;
  text-align: center;
}

/* Share bar */
.story-share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.story-share-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #555;
  margin-right: 4px;
}

.story-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}
.story-share-btn:hover { opacity: 0.82; transform: translateY(-2px); }

.story-share-btn--fb { background: #1d5b8c; }
.story-share-btn--li { background: #1d5b8c; }
.story-share-btn--x  { background: #1d5b8c; font-size: 13px; font-weight: 800; }

/* ── Article body: keep copy and inline images at their original width ─── */
.story-body-wrap {
  max-width: 860px;
  margin-inline: auto;
  padding: 0 72px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.story-section {
  padding: 52px 0;
  border-bottom: 1px solid #e8eaed;
}

.story-section:last-of-type {
  border-bottom: none;
  padding-bottom: 8px;
}

.story-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--teal-dark, #1F6E91);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.story-heading {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: #222;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}

.story-body {
  font-size: 17px;
  line-height: 1.85;
  color: #3d3d3d;
  margin: 0 0 28px;
  font-weight: 400;
}

/* ── Inline image ─────────────────────────────────────────────────────────── */
.story-img-fig {
  margin: 0 0 32px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.story-img-fig img {
  width: 100%;
  height: 380px;
  display: block;
  object-fit: cover;
}

.story-img-label {
  background: #0B1C36;
  color: #4CC9F0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-img-fig figcaption {
  background: #1a2d4a;
  color: rgba(255,255,255,0.60);
  font-size: 12px;
  padding: 10px 18px;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ── Callout block ────────────────────────────────────────────────────────── */
.story-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #EEF7FD 0%, #E0F0FA 100%);
  border-left: 4px solid #4CC9F0;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 0 0 8px;
}

.story-callout-icon {
  font-size: 20px;
  color: #1F6E91;
  margin-top: 2px;
  flex-shrink: 0;
}

.story-callout p {
  font-size: 15px;
  line-height: 1.70;
  color: #0B1C36;
  margin: 0;
}

.story-callout strong { color: #1F6E91; }

/* ── Stats row ────────────────────────────────────────────────────────────── */
.story-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.story-stats-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.story-stat {
  background: #0B1C36;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.story-stat-num {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: #4CC9F0;
  line-height: 1;
  letter-spacing: -0.01em;
}

.story-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ── Port proximity map ───────────────────────────────────────────────────── */
.story-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  margin: 0 0 32px;
}

.story-map-label {
  background: #0B1C36;
  color: #4CC9F0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#story-map {
  height: 380px;
  width: 100%;
  z-index: 0;
}

.story-map-legend {
  background: #0B1C36;
  padding: 10px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
}

.story-map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.02em;
}

.story-map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.story-map-dot--facility { background: #4CC9F0; }
.story-map-dot--port     { background: #F59E0B; }
.story-map-dot--customs  { background: #EF4444; }
.story-map-dot--corridor { background: #4CC9F0; opacity: 0.6; }

@media (max-width: 640px) {
  #story-map { height: 280px; }
  .story-img-fig img { height: 280px; }
}

/* ── Stats "at a glance" panel ────────────────────────────────────────────── */
.story-glance-panel {
  background: #f4f6f9;
  border-radius: 0 0 10px 10px;
  border-left: 6px solid #4CC9F0;
  padding: 24px 32px;
}

.story-glance-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1F6E91;
  margin: 0 0 16px;
}

/* Horizontal stat list */
.story-glance-stats--horizontal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.story-glance-stats--horizontal .story-glance-stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px 0 0;
  border-right: 1px solid #dde2ea;
  margin-right: 24px;
}

.story-glance-stats--horizontal .story-glance-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.story-glance-num {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 900;
  color: #0B1C36;
  line-height: 1;
  letter-spacing: -0.01em;
}

.story-glance-lbl {
  font-size: 13px;
  color: #5a6a7e;
  margin-top: 5px;
  font-weight: 400;
}

/* Attach panel flush to bottom of preceding image — square bottom corners on image */
.story-img-fig:has(+ .story-glance-panel) {
  border-radius: 10px 10px 0 0;
}

.story-img-fig + .story-glance-panel {
  margin-top: 0;
  border-radius: 0 0 10px 10px;
}

@media (max-width: 640px) {
  .story-glance-stats--horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 0;
  }

  .story-glance-stats--horizontal .story-glance-stat:nth-child(2) {
    border-right: none;
  }

  .story-glance-panel {
    padding: 20px 20px;
  }
}

/* ── Commodity grid ───────────────────────────────────────────────────────── */
/* ── Operations & Commodities table ──────────────────────────────────────── */
.story-ops-table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  margin-top: 28px;
  font-size: 14px;
}

/* Header row */
.story-ops-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: #0B1C36;
}

.story-ops-col-head {
  color: #4CC9F0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-right: 1px solid rgba(76,201,240,0.12);
}
.story-ops-col-head:last-child { border-right: none; }

/* Data rows */
.story-ops-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid #e8eaf0;
  transition: background 0.15s;
}
.story-ops-row:last-of-type { border-bottom: none; }
.story-ops-row:nth-child(even) { background: #f8f9fb; }
.story-ops-row:nth-child(odd)  { background: #ffffff; }
.story-ops-row:hover { background: #eef6fd; }

.story-ops-cell {
  padding: 14px 18px;
  color: #2d3748;
  font-weight: 400;
  line-height: 1.4;
  border-right: 1px solid #e8eaf0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-ops-cell:last-child { border-right: none; }

.story-ops-cell--commodity {
  font-weight: 700;
  color: #0B1C36;
}

.story-ops-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }

.story-ops-cell--shift {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-ops-check {
  font-size: 18px;
  color: #22C55E;
}

/* Footer summary row */
.story-ops-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: #0B1C36;
}

.story-ops-footer-cell {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
}
.story-ops-footer-cell:last-child { border-right: none; }

/* Mobile: stack to 2-col then 1-col */
@media (max-width: 640px) {
  .story-ops-header,
  .story-ops-row,
  .story-ops-footer {
    grid-template-columns: 1fr 1fr;
  }
  .story-ops-col-head:nth-child(n+3),
  .story-ops-cell:nth-child(n+3),
  .story-ops-footer-cell:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .story-ops-row:nth-child(n) .story-ops-cell:nth-child(n+3) {
    border-top: 1px solid #e8eaf0;
  }
}

/* ── Article closing logo ─────────────────────────────────────────────────── */
.story-article-logo {
  display: flex;
  justify-content: center;
  padding: 40px 0 12px;
  border-top: 1px solid #e8eaf0;
  margin-top: 40px;
}

.story-article-logo img {
  width: 220px;
  height: auto;
  opacity: 0.88;
}

/* ── Section rule — teal divider between sections ───────────────────────── */
.story-section-rule {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--teal), rgba(76,201,240,0.15));
  border-radius: 2px;
  margin-bottom: 32px;
}

/* ── Closing building photo ──────────────────────────────────────────────── */
.story-closing-fig {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(11,28,54,0.12);
}

.story-closing-fig img {
  width: 100%;
  height: clamp(220px, 28vw, 340px);
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.95) contrast(1.03);
}

/* ── Closing full-bleed hero ─────────────────────────────────────────────── */
.story-closing-hero {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 12px;
  min-height: clamp(400px, 50vw, 560px);
  display: flex;
  align-items: flex-end;
  margin-top: 0;
  box-shadow: 0 8px 40px rgba(11,28,54,0.14);
}

.story-closing-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.75) contrast(1.05);
}

.story-closing-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,28,54,0.10)  0%,
    rgba(11,28,54,0.30) 35%,
    rgba(11,28,54,0.78) 65%,
    rgba(11,28,54,0.96) 100%
  );
  pointer-events: none;
}

.story-closing-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 40px 48px;
  width: 100%;
}

.story-closing-hero-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.story-closing-hero-kicker i { font-size: 9px; }

.story-closing-hero-heading {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.story-closing-hero-body {
  font-size: clamp(14px, 1.3vw, 16px);
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin: 0 0 32px;
  max-width: 720px;
}

.story-closing-hero-logo {
  display: flex;
  justify-content: flex-start;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.story-closing-hero-logo img {
  width: 200px;
  height: auto;
  opacity: 0.90;
  filter: brightness(0) invert(1);
}

/* ── Ethylene Chart ──────────────────────────────────────────────────────── */
.story-chart-wrap {
  margin: 32px 0 40px;
  background: #f8fafc;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  overflow: hidden;
}

.story-chart-label {
  background: #0B1C36;
  color: #4CC9F0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-chart-legend-custom {
  display: flex;
  gap: 24px;
  padding: 12px 20px 0;
  font-size: 12px;
  font-weight: 600;
  color: #3d4f63;
  flex-wrap: wrap;
}

.story-chart-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.story-chart-toggles {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.story-chart-btn {
  background: #fff;
  border: 1.5px solid #d1d9e0;
  color: #3d4f63;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
}

.story-chart-btn:hover {
  border-color: #4CC9F0;
  color: #0B1C36;
}

.story-chart-btn.active {
  background: #0B1C36;
  border-color: #0B1C36;
  color: #4CC9F0;
}

.story-chart-canvas-wrap {
  padding: 0 16px 8px;
}

.story-chart-note {
  font-size: 10.5px;
  color: #9CA3AF;
  font-style: italic;
  padding: 8px 20px 16px;
  margin: 0;
  line-height: 1.5;
}

/* ── Ethylene Sensitivity Table ─────────────────────────────────────────── */
.story-eth-table {
  margin: 0;
}

.story-eth-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #0B1C36;
  padding: 10px 20px;
}

.story-eth-col-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4CC9F0;
}

.story-eth-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 12px 20px;
  border-bottom: 1px solid #e8eaf0;
  align-items: center;
  transition: background 0.15s;
}

.story-eth-row:last-child {
  border-bottom: none;
}

.story-eth-row:hover {
  background: #f0f7ff;
}

.story-eth-cell {
  font-size: 14px;
  color: #1e2d3d;
  font-weight: 500;
}

.story-eth-cell--commodity {
  font-weight: 600;
  color: #0B1C36;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-eth-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.story-eth-badge--high {
  background: #FEE2E2;
  color: #991B1B;
}

.story-eth-badge--med {
  background: #FEF9C3;
  color: #854D0E;
}

.story-eth-badge--low {
  background: #DCFCE7;
  color: #166534;
}

/* ── Certification Badge with Hover Tooltip ──────────────────────────────── */
.story-cert-badge {
  position: absolute;
  bottom: 36px;
  right: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  width: auto;
  display: inline-flex;
  align-items: center;
}

.story-cert-badge:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.story-cert-img-full {
  height: 48px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}

/* Tooltip bubble */
.story-cert-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #0B1C36;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  padding: 9px 14px;
  border-radius: 6px;
  width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10;
  pointer-events: none;
  white-space: normal;
  font-family: 'Inter', sans-serif;
}

.story-cert-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: #0B1C36;
}

.story-cert-badge:hover .story-cert-tip {
  display: block;
}

@media (max-width: 480px) {
  .story-cert-badge {
    bottom: 10px;
    right: 10px;
    transform: scale(0.8);
    transform-origin: bottom right;
  }
  .story-cert-badge:hover {
    transform: scale(0.8) translateY(-2px);
  }
}

/* ── Commodity Table Row Animations ─────────────────────────────────────── */
.story-ops-row {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-ops-row.row-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Checkmarks start invisible and pop in after the row slides in */
.story-ops-check {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-ops-check.check-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Ethylene Animated Meter Bars ───────────────────────────────────────── */
.story-eth-meter-wrap { padding-bottom: 0; }

.story-eth-meters {
  padding: 20px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-eth-meter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-eth-meter-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-eth-meter-icon {
  font-size: 20px;
  line-height: 1;
}

.story-eth-meter-name {
  font-size: 14px;
  font-weight: 700;
  color: #0B1C36;
  min-width: 90px;
}

.story-eth-meter-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-eth-meter-track {
  width: 100%;
  height: 14px;
  background: #e8eaf0;
  border-radius: 8px;
  overflow: hidden;
}

.story-eth-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: var(--fill-color);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

/* Animated state — added by JS on scroll into view */
.story-eth-meter-fill.animate {
  width: var(--fill-width);
}

/* ── Closing CTA: the same light, contained treatment as other site pages ── */
.story-cta-section {
  background: #f4f5f7;
  padding: 36px 0 54px;
}

.story-cta-inner {
  width: calc(100% - 48px);
  max-width: 1152px;
  margin: 0 auto;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 34px;
  background: linear-gradient(110deg, #e8f5fc, #f9fcfe);
  border: 1px solid #cce3ee;
  border-radius: 18px;
}

.story-cta-heading {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: #0b1c36;
  line-height: 1.35;
  letter-spacing: -.7px;
  margin: 0 0 10px;
  grid-column: 1;
  grid-row: 1;
}

.story-cta-body {
  font-size: 16px;
  line-height: 1.65;
  color: #5e7a8a;
  margin: 0;
  grid-column: 1;
  grid-row: 2;
}

.story-cta-btn {
  font-size: 16px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.story-cta-phone {
  margin: 0;
  font-size: 16px;
  color: #3f6f86;
  grid-column: 2;
  grid-row: 2;
  text-align: center;
}

.story-cta-phone a {
  color: #236d8d;
  text-decoration: none;
  font-weight: 600;
}
.story-cta-phone a:hover { text-decoration: underline; }
.story-cta-inner .port-story-related {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 18px;
  border-top: 1px solid #cce3ee;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .story-card {
    margin-top: -80px;
  }

  .story-card-header {
    padding: 40px 36px 28px;
  }

  .story-body-wrap {
    padding: 0 36px;
  }
}

@media (max-width: 640px) {
  .story-hero-photo {
    width: calc(100% - 28px);
    height: 280px;
    margin: 24px auto;
    border-radius: 16px;
  }

  .story-card {
    width: calc(100% - 28px);
    margin-top: -48px;
  }

  .story-card-header {
    padding: 32px 20px 24px;
  }

  .story-body-wrap {
    padding: 0 20px;
  }

  .story-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .story-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-stats-row--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-share-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .story-cta-section { padding: 30px 0 32px; }
  .story-cta-inner {
    width: calc(100% - 28px);
    display: block;
    padding: 25px 22px;
  }
  .story-cta-heading { font-size: 23px; }
  .story-cta-body { margin-bottom: 18px; }
  .story-cta-btn { width: 100%; justify-content: space-between; }
  .story-cta-phone { margin-top: 10px; text-align: left; }

  .story-commodity {
    min-width: calc(50% - 7px);
    flex: none;
    padding: 18px 14px;
  }
}
