/* =========================================================
   ESCAPE TECHNOLOGY – NEWS & CUSTOMER STORIES
   Editorial full-width layout
   ========================================================= */

.et-story{
  --et-story-bg: #26282c;
  --et-story-bg-soft: #2d3035;
  --et-story-panel: rgba(255,255,255,.05);
  --et-story-panel-strong: rgba(255,255,255,.08);
  --et-story-border: rgba(255,255,255,.12);

  --et-story-ink: #ffffff;
  --et-story-muted: rgba(255,255,255,.74);
  --et-story-muted-soft: rgba(255,255,255,.58);

  --et-story-accent: #3b6f8d;
  --et-story-accent-strong: #4f8fb5;
  --et-story-accent-soft: rgba(59,111,141,.16);

  --et-story-radius-xl: 28px;
  --et-story-radius-lg: 22px;
  --et-story-radius-md: 18px;
  --et-story-radius-sm: 12px;

  --et-story-shadow: 0 18px 44px rgba(0,0,0,.22);

  --et-story-max: 1280px;
  --et-story-text-max: 1040px;
  --et-story-narrow-max: 760px;
  --et-story-pad: clamp(22px, 4vw, 68px);

  color: var(--et-story-ink);
  background: linear-gradient(90deg, #2a2d31 0%, #24272c 100%);
}

/* =========================================================
   Base / Containers
   ========================================================= */

.et-story__section{
  padding: var(--et-story-pad);
}

.et-story__container{
  width: min(100%, var(--et-story-max));
  margin: 0 auto;
}

.et-story__textWrap{
  width: min(100%, var(--et-story-text-max));
}

.et-story__narrow{
  width: min(100%, var(--et-story-narrow-max));
}

.et-story__eyebrow{
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.et-story__title{
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(2.4rem, 2.2vw + 1.4rem, 4.6rem);
  line-height: .98;
  font-weight: 900;
  text-wrap: balance;
}

.et-story__lead{
  margin: 0;
  max-width: 72ch;
  color: var(--et-story-muted);
  font-size: 19px;
  line-height: 1.78;
}

.et-story__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--et-story-muted-soft);
  font-size: 14px;
  line-height: 1.5;
}

.et-story__metaItem{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.et-story__metaItem strong{
  color: #fff;
  font-weight: 700;
}

/* =========================================================
   Header
   ========================================================= */

.et-story__hero{
  padding: clamp(34px, 6vw, 84px) var(--et-story-pad) 20px;
}

.et-story__heroContent{
  width: min(100%, var(--et-story-text-max));
}

.et-story__summaryCard{
  margin-top: 26px;
  width: min(100%, 760px);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border: 1px solid var(--et-story-border);
  border-radius: var(--et-story-radius-xl);
  padding: clamp(20px, 2.5vw, 30px);
  box-shadow: var(--et-story-shadow);
}

.et-story__summaryCard h2{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.et-story__summaryCard p{
  margin: 0;
  color: var(--et-story-muted);
  font-size: 16px;
  line-height: 1.74;
}

.et-story__summaryList{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.et-story__summaryList li{
  position: relative;
  padding-left: 18px;
  color: var(--et-story-muted);
  line-height: 1.65;
  font-size: 15px;
}

.et-story__summaryList li::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--et-story-accent-strong);
  position: absolute;
  left: 0;
  top: .72em;
  transform: translateY(-50%);
}

/* =========================================================
   Hero Media
   ========================================================= */

.et-story__heroMediaWrap{
  padding: 0 var(--et-story-pad);
}

.et-story__heroMedia{
  width: min(100%, var(--et-story-max));
  margin: 0 auto;
  border-radius: var(--et-story-radius-xl);
  overflow: hidden;
  border: 1px solid var(--et-story-border);
  background: #1f2327;
  box-shadow: var(--et-story-shadow);
}

.et-story__heroMedia img,
.et-story__heroMedia video,
.et-story__heroMedia iframe{
  width: 100%;
  display: block;
  border: 0;
}

.et-story__heroCaption{
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--et-story-muted-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   Article
   ========================================================= */

.et-story__article{
  width: min(100%, var(--et-story-text-max));
}

.et-story__article h2{
  margin: 0 0 14px;
  font-size: clamp(1.65rem, .9vw + 1.15rem, 2.45rem);
  line-height: 1.08;
  font-weight: 900;
}

.et-story__article h3{
  margin: 30px 0 10px;
  font-size: 24px;
  line-height: 1.14;
  font-weight: 900;
}

.et-story__article h4{
  margin: 24px 0 10px;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.et-story__article p{
  margin: 0 0 16px;
  color: var(--et-story-muted);
  line-height: 1.84;
  font-size: 17px;
  max-width: 74ch;
}

.et-story__article a{
  color: #7ec1e8;
  text-decoration: none;
}

.et-story__article a:hover{
  color: #a3d5ef;
  text-decoration: underline;
}

.et-story__article strong{
  color: #fff;
  font-weight: 700;
}

.et-story__article blockquote{
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 3px solid rgba(79,143,181,.9);
  border-radius: 0 var(--et-story-radius-md) var(--et-story-radius-md) 0;
  background: rgba(255,255,255,.04);
  color: #f5f7fb;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
  box-shadow: var(--et-story-shadow);
}

.et-story__article hr{
  margin: 32px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* =========================================================
   Lists
   ========================================================= */

.et-story__list{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.et-story__list li{
  position: relative;
  padding-left: 20px;
  color: var(--et-story-muted);
  line-height: 1.72;
  font-size: 16px;
  max-width: 74ch;
}

.et-story__list li::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--et-story-accent-strong);
  position: absolute;
  left: 0;
  top: .72em;
  transform: translateY(-50%);
}

/* =========================================================
   Media Blocks
   ========================================================= */

.et-story__mediaBlock{
  margin: 30px 0 36px;
  border-radius: var(--et-story-radius-xl);
  overflow: hidden;
  border: 1px solid var(--et-story-border);
  background: #1f2327;
  box-shadow: var(--et-story-shadow);
}

.et-story__mediaBlock img,
.et-story__mediaBlock video,
.et-story__mediaBlock iframe{
  width: 100%;
  display: block;
  border: 0;
}

.et-story__mediaCaption{
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--et-story-muted-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   Fact Cards
   ========================================================= */

.et-story__factGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.et-story__factCard{
  background: var(--et-story-panel);
  border: 1px solid var(--et-story-border);
  border-radius: var(--et-story-radius-md);
  padding: 22px;
  box-shadow: var(--et-story-shadow);
}

.et-story__factValue{
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 1vw + 1.4rem, 2.6rem);
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

.et-story__factLabel{
  margin: 0;
  color: var(--et-story-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   Related Cards
   ========================================================= */

.et-story__cardGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.et-story__card{
  background: var(--et-story-panel);
  border: 1px solid var(--et-story-border);
  border-radius: var(--et-story-radius-md);
  overflow: hidden;
  box-shadow: var(--et-story-shadow);
  display: flex;
  flex-direction: column;
}

.et-story__cardMedia{
  height: 220px;
  overflow: hidden;
  background: #1c2126;
}

.et-story__cardMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.et-story__cardBody{
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.et-story__cardKicker{
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.et-story__cardTitle{
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.et-story__cardText{
  margin: 0;
  color: var(--et-story-muted);
  font-size: 15px;
  line-height: 1.68;
}

.et-story__cardLink{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7ec1e8;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.et-story__cardLink:hover{
  color: #a3d5ef;
  text-decoration: underline;
}

/* =========================================================
   CTA
   ========================================================= */

.et-story__ctaBand{
  background:
    linear-gradient(180deg, rgba(59,111,141,.18), rgba(59,111,141,.08)),
    rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--et-story-radius-xl);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--et-story-shadow);
}

.et-story__ctaBandInner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.et-story__ctaBand h2{
  margin: 0 0 8px;
  font-size: clamp(1.6rem, .8vw + 1.2rem, 2.4rem);
  line-height: 1.08;
  font-weight: 900;
}

.et-story__ctaBand p{
  margin: 0;
  color: var(--et-story-muted);
  line-height: 1.7;
  max-width: 62ch;
}

.et-story__button{
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .02em;
  transition: 180ms ease;
  background: var(--et-story-accent);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  box-shadow: var(--et-story-shadow);
}

.et-story__button:hover{
  background: var(--et-story-accent-strong);
}

/* =========================================================
   Variants
   ========================================================= */

.et-story--reference .et-story__summaryCard,
.et-story--reference .et-story__ctaBand{
  background:
    linear-gradient(180deg, rgba(59,111,141,.14), rgba(255,255,255,.04));
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px){
  .et-story__factGrid,
  .et-story__cardGrid,
  .et-story__ctaBandInner{
    grid-template-columns: 1fr 1fr;
  }

  .et-story__ctaBandInner{
    grid-template-columns: 1fr;
  }

  .et-story__title{
    max-width: 14ch;
  }
}

@media (max-width: 780px){
  .et-story__section,
  .et-story__hero,
  .et-story__heroMediaWrap{
    padding-left: 22px;
    padding-right: 22px;
  }

  .et-story__factGrid,
  .et-story__cardGrid{
    grid-template-columns: 1fr;
  }

  .et-story__title{
    max-width: none;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .et-story__lead,
  .et-story__article p{
    font-size: 15px;
  }

  .et-story__article h3{
    font-size: 22px;
  }

  .et-story__article blockquote{
    font-size: 18px;
    padding: 18px 18px;
  }

  .et-story__cardMedia{
    height: 200px;
  }
}