.story-hero{
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #080808;
  isolation: isolate;
}


.story-hero .hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.story-hero .hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}


.story-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* subtle dark gradient to improve contrast with white text */
  background: linear-gradient(180deg, rgba(8,8,8,0.1) 0%, rgba(8,8,8,0.2) 65%, rgba(8,8,8,0.3) 100%);
  pointer-events: none;
}


.story-hero .hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.25rem;
  max-width: 1100px;
}


.story-hero .hero-title{
  font-size: clamp(2.8rem, 25vw, 15rem);;
  line-height: .92;
  margin: 0;
  letter-spacing: .01em;
}



@media (prefers-reduced-motion: no-preference){
  .story-hero .hero-media img{
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
  }

  .story-hero.loaded .hero-media img{
    transform: scale(1.02);
  }
}


@media (max-width: 640px){
  .story-hero{
    height: calc(100vh - 64px);
  }
  .story-hero .hero-title{ font-size: clamp(2rem, 20vw, 10rem); }
  .story-hero .hero-sub{ font-size: 0.95rem; }
}









.story-grid.story-grid--fulltext,
#story-grid--fulltext,
.story-grid--fulltext {
  display: block !important;         /* don't rely on multi-column grid here */
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Center the main text block and limit line-length for readability */
.story-grid--fulltext > .story-main,
#story-grid--fulltext > .story-main {
  display: block !important;
  width: 100% !important;
  max-width: 900px !important;       /* control measure for long lines */
  margin: 0 auto !important;         /* center horizontally */
  text-align: center !important;     /* center text */
  padding: 0 1.25rem !important;     /* side padding on small screens */
  box-sizing: border-box !important;
}

/* Paragraph spacing and readable line-length */
.story-grid--fulltext > .story-main p,
#story-grid--fulltext > .story-main p {
  margin: 0 0 1.15rem !important;
  line-height: 1.7 !important;
  font-size: clamp(1rem, 1.9vw, 1.15rem) !important;
  max-width: 70ch !important;        /* optimal measure for reading */
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: justify !important;
}





.story-wrap > .story-title,
.story-wrap .story-title {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem) !important; /* smaller, responsive */
  line-height: 1.02 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;                   /* remove full-caps harshness */
  margin: 0 0 1.25rem 0 !important;
  text-align: center !important;                     /* keep title centered */
  color: #ffffff !important;
  font-family: 'MonumentExtendedUltrabold', sans-serif;
}

/* Subtitle / intro under the title */
.story-wrap > .story-lead,
.story-wrap .story-lead {
  text-align: center;
  max-width: 72ch;
  margin: 0 auto 2rem auto;
  color: rgba(255,255,255,0.93);
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  line-height: 1.6;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* Convert the main "letter" into a centered column with left-aligned text
   so paragraphs read naturally and aren't centered as a block of text */
.story-grid--fulltext > .story-main,
#story-grid--fulltext > .story-main,
.story-main--letter {
  max-width: 70ch !important;           /* classic readable measure */
  margin: 0 auto !important;            /* center the column */
  text-align: left !important;          /* left align copy for natural reading */
  color: #eaeaea !important;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem) !important;
  line-height: 1.8 !important;
  padding: 0 1.25rem !important;
  hyphens: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* More attractive paragraph rhythm */
.story-grid--fulltext > .story-main p,
#story-grid--fulltext > .story-main p,
.story-main--letter p {
  margin: 0 0 1.15rem 0 !important;
  color: inherit;
}

/* Slightly emphasize the opener without centering it */
.story-main--letter .letter-open {
  font-style: italic;
  color: #f6f6f6;
  margin-bottom: 0.75rem;
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
}

/* Signature right-aligned inside the column */
.story-main--letter {
  text-align: right;
  margin-top: 1.25rem;
  color: #dcdcdc;
  font-weight: 500;
}


/* Responsive tweaks: on small screens, use simpler layout and slightly larger line-height */
@media (max-width: 720px) {
  .story-wrap > .story-title { font-size: clamp(1.6rem, 8vw, 2.6rem); }
  .story-grid--fulltext > .story-main,
  #story-grid--fulltext > .story-main,
  .story-main--letter {
    max-width: 90ch !important;
    padding: 0 1rem !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
  }
  .story-grid--fulltext > .story-main::before,
  .story-main--letter::before { display:none; } /* hide ornament on tight widths */
}














.story-gallery {
  width: 100%;
  max-width: 1100px;
  margin: 2.25rem auto 16.5rem auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  align-items: start;
  gap: 3rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.story-gallery .frame {
  display: block;
  overflow: hidden;
  background: #0b0b0b;
  aspect-ratio: 1/1;
  width: var(--size, 240px);
}

.story-gallery .frame--big  { --size: 350px; }
.story-gallery .frame--med  { --size: 300px; }
.story-gallery .frame--small{ --size: 250px; }

.story-gallery .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* Responsive: stack vertically on narrow screens */
@media (max-width: 880px) {
  .story-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .story-gallery .frame {
    width: clamp(160px, 80vw, 300px);
    margin: 0 auto;
  }
}


















.story-hero-text {
  font-family: 'MonumentExtendedUltrabold', sans-serif;
  font-size: clamp(2rem, 8vw, 5rem); /* scales with screen */
  font-weight: 900;
  color: black;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  /* background: linear-gradient(90deg, black 0%, #9f835c 50%, black 100%);*/
  /*background: linear-gradient(90deg, #f6d3a1 0%, #cc3b62 25%, #c038e2 50%, #cc3b62 75%, #f6d3a1 100%);*/
  background: linear-gradient(90deg, black 0%, #755741 50%, black 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 15s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}








.ideology-hero{
  position: relative;
  width: 100%;
  min-height: clamp(420px, 65vh, 780px);
  overflow: hidden;
  background: #080808; /* fallback */
  isolation: isolate;  /* ensure overlay sits above media */
}
.ideology-hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ideology-hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* responsive to any resolution */
  object-position: center;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}
.ideology-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* darken bottom slightly for readability on light images */
  background: linear-gradient(180deg, rgba(8,8,8,0.15) 0%, rgba(8,8,8,0.28) 55%, rgba(8,8,8,0.42) 100%);
  pointer-events: none;
}
.ideology-hero__content{
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 7vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  color: #fff;
}
.ideology-hero__content h2{ margin: 0; }
.ideology-hero__content p{ max-width: 72ch; }

/* Subtle entry polish (follows STORY motion style) */
@media (prefers-reduced-motion: no-preference){
  .ideology-hero__media img{
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
  }
  .ideology-hero.loaded .ideology-hero__media img{
    transform: scale(1.02);
  }
}







.feature-button--outline-light{
  background: #000000;
  border: 1px solid rgba(0, 0, 0, 0.9);
}
.feature-button--outline-light .cta-text{
  color:#ffffff;                 /* keep Monument, reuse existing .cta-text rules */
}
.feature-button--outline-light .cta-icon{
  color:#ffffff;                 /* makes arrow white on dark bg */
}
.feature-button--outline-light:hover{
  background: rgba(0, 0, 0, 0.6); /* subtle, stays on-brand */
  border-color: rgba(0, 0, 0, 0.7);
}








@media (max-width: 960px) {
  .story-hero {
    height: min(80vh, 680px) !important;
    padding-inline: clamp(12px, 4vw, 20px) !important;
  }
  .story-hero .hero-title {
    /* keep style but make it friendlier on phones */
    font-size: clamp(2.2rem, 17vw, 6.5rem) !important;
    text-wrap: balance !important;
    word-break: keep-all !important;
    letter-spacing: .01em !important;
  }
}

/* 2) “ABOUT OUR IDEOLOGY” block (HTML uses .custom-bg ... grid grid-cols-2 ...) → stack on phones */
@media (max-width: 960px) {
  /* container is: section.custom-bg > .max-w-5xl.mx-auto.grid.grid-cols-2.items-center.gap-24 */
  .custom-bg .max-w-5xl.grid {
    grid-template-columns: 1fr !important;      /* 2 → 1 column */
    gap: clamp(16px, 5vw, 28px) !important;
  }
  .custom-bg .max-w-5xl.grid > :first-child { order: 1 !important; } /* text first */
  .custom-bg .max-w-5xl.grid > :last-child  { order: 2 !important; } /* image second */

  .custom-bg h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
    line-height: 1.12 !important;
    text-wrap: balance !important;
  }
  .custom-bg p {
    font-size: clamp(1rem, 3.8vw, 1.125rem) !important;
    line-height: 1.65 !important;
  }
  .custom-bg .w-full img { height: auto !important; max-height: 60vh !important; }
}

/* 3) WHITE SECTION after ideology (already grid-cols-1 md:grid-cols-2 in HTML) – phone polish only */
@media (max-width: 960px) {
  .bg-white .max-w-5xl { gap: clamp(16px, 5vw, 28px) !important; }
  .bg-white h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem) !important;
    line-height: 1.12 !important;
    text-wrap: balance !important;
  }
  .bg-white p { font-size: clamp(1rem, 3.8vw, 1.125rem) !important; line-height: 1.65 !important; }
}

/* 4) GALLERY: keep single-column stack but tighten spacing on small screens */
@media (max-width: 880px) {
  .story-gallery { gap: clamp(8px, 3vw, 14px) !important; margin: 1.25rem auto 6rem auto !important; }
  .story-gallery .frame { width: clamp(200px, 88vw, 320px) !important; }
}

/* 5) CTA buttons (reuse existing .feature-button rules) */
@media (max-width: 960px) {
  .feature-button { 
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-height: clamp(44px, 6vw, 52px) !important; padding: 0 !important; gap: 0 !important;
  }
  .feature-button .cta-text { 
    white-space: nowrap !important; line-height: 1 !important; 
    font-size: clamp(.98rem, 3.2vw, 1.15rem) !important; padding: .9rem 1.1rem !important; 
  }
  .feature-button .cta-icon { align-self: stretch !important; display:flex !important; align-items:center !important; padding: 0 .9rem !important; }
}

/* 6) Small phones (≤430px): extra tightening */
@media (max-width: 430px) {
  .story-hero { height: min(72vh, 560px) !important; }
  .story-hero .hero-title { font-size: clamp(1.9rem, 15.5vw, 4.8rem) !important; }
  .custom-bg h2, .bg-white h2 { font-size: clamp(1.6rem, 7.8vw, 2.2rem) !important; }
  .feature-button .cta-text { font-size: clamp(.95rem, 3.6vw, 1.05rem) !important; padding: .85rem 1rem !important; }
  .feature-button .cta-icon svg { width: 20px !important; height: 20px !important; }
}



@media (max-width: 770px){
  header.site-header .nav-box.logo svg{
    /* Larger than the phone-wide 18–22px icon rules */
    width: clamp(120px, 36vw, 160px) !important;
    height: auto !important;
    display: block;
  }
  /* Ensure white fill/text-rendering sticks */
  header.site-header .nav-box.logo svg text{
    fill: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    filter: none !important;
  }
}