/* ==========================================================================
   Generation'26 — the blocks v3 has that the Eventer template does not.

   Everything here borrows the template's own language: Josefin Sans for
   text, Caveat for figures, the theme colour for anything that counts.
   Nothing redefines a template class, so a template update cannot be
   silently overwritten by this file or the other way round.
   ========================================================================== */

:root {
  --gen-line: #e4e4e2;
  --gen-ink: #151415;
}

/* A caption under a block of figures: what they are, or where they came
   from. Small, centred, never competing with the number above it. */
.gen-note {
  max-width: 760px;
  margin: 26px auto 0;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-color);
}

/* ------------------------------------------------------------ galleries */
.gen-frame {
  margin-bottom: 26px;
}

.gen-frame .image-box {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--gen-ink);
}

.gen-frame .image-box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gen-frame .image-box:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

/* ---------------------------------------------------------- growth chart
   The template ships no chart, and this line is the argument of the
   section, so it is drawn rather than dropped. */
.gen-ylabel {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-color);
}

.gen-chart {
  position: relative;
  width: 100%;
}

.gen-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The chart's own parts. Strokes and type are set here rather than as
   SVG attributes so the whole thing follows the theme colours. */
.gc-grid {
  stroke: #e8e8e6;
  stroke-width: 1;
}

.gc-axis {
  font-size: 15px;
  fill: #6A6A6A;
  text-anchor: end;
}

#gcSeg1,
#gcSeg2,
#gcProj {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#gcSeg1,
#gcSeg2 {
  stroke: var(--theme-color);
}

#gcProj {
  stroke: var(--secondary-color);
  stroke-dasharray: 10 9;
}

.gc-dot {
  fill: var(--theme-color);
}

.gc-dot.is-proj {
  fill: var(--secondary-color);
}

.gc-val {
  font-size: 21px;
  font-weight: 700;
  fill: var(--gen-ink);
  text-anchor: middle;
}

.gc-val.is-proj {
  fill: var(--secondary-color);
}

.gc-year {
  font-size: 16px;
  font-weight: 600;
  fill: #6A6A6A;
  text-anchor: middle;
}

/* Dots and labels wait for the stroke to reach them: each carries its
   own --d delay, set on the element when the chart is generated. */
.gc .gc-dot,
.gc .gc-val,
.gc .gc-year {
  opacity: 0;
}

.gc.is-drawn .gc-dot,
.gc.is-drawn .gc-val,
.gc.is-drawn .gc-year {
  animation: gcFade .45s ease forwards;
  animation-delay: var(--d, 0s);
}

@keyframes gcFade {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gc .gc-dot,
.gc .gc-val {
  transform-box: fill-box;
  transform-origin: center;
}

/* Someone who has asked for less motion gets the finished chart. */
@media (prefers-reduced-motion: reduce) {
  .gc .gc-dot,
  .gc .gc-val,
  .gc .gc-year {
    opacity: 1;
    animation: none;
  }

  #gcSeg1,
  #gcSeg2,
  #gcProj {
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }

  #gcSeg1,
  #gcSeg2 { stroke-dasharray: none !important; }
  #gcProj { stroke-dasharray: 10 9 !important; }
}

/* ----------------------------------------------------------- who we are */
.gen-quote {
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 4px solid var(--theme-color);
  font-size: 26px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--gen-ink);
}

.gen-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-color);
}

.gen-lede + .gen-lede {
  margin-top: 20px;
}

/* -------------------------------------------------------------- the day
   Two halves of one day, side by side, the evening marked in the theme
   colour because that is the half the event is named for. */
.gen-slot-block {
  margin-bottom: 30px;
}

.gen-slot {
  height: 100%;
  padding: 44px 40px;
  background: #fff;
  border: 1px solid var(--gen-line);
}

.gen-slot .gen-time {
  font-family: var(--secondary-font);
  font-size: 46px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--gen-ink);
}

.gen-slot.is-show .gen-time {
  color: var(--theme-color);
}

.gen-slot h3 {
  margin: 6px 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-color);
}

.gen-slot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gen-slot li {
  padding: 14px 0;
  border-top: 1px solid var(--gen-line);
  font-size: 17px;
  line-height: 1.5;
  color: var(--gen-ink);
}

/* --------------------------------------------------------------- videos */
.gen-video-block {
  margin-bottom: 40px;
}

.gen-video .image-box {
  position: relative;
  margin: 0 0 20px;
  overflow: hidden;
  background: var(--gen-ink);
}

.gen-video .image-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gen-video:hover .image-box img {
  transform: scale(1.04);
  opacity: 1;
}

.gen-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.gen-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  color: #fff;
}

.gen-video h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gen-ink);
}

.gen-video p {
  margin: 0;
  font-size: 16px;
  color: var(--text-color);
}

/* ---------------------------------------------------------- projections
   The headline total sits above the four figures that make it up, set
   larger so the breakdown reads as its parts. */
.gen-total {
  margin-bottom: 50px;
  text-align: center;
}

.gen-total .count-outer {
  display: block;
  font-family: var(--secondary-font);
  font-size: 96px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--theme-color);
}

.gen-total h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
}

/* ------------------------------------------------------------ auditions
   Eleven streams in three groups. Every stream is its own form, so every
   stream is its own link, and looks like one. */
.gen-group-block {
  margin-bottom: 30px;
}

.gen-group {
  height: 100%;
  padding: 40px 34px;
  background: #fff;
  border: 1px solid var(--gen-line);
}

.gen-group h3 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  color: var(--gen-ink);
}

.gen-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gen-group li + li {
  border-top: 1px solid var(--gen-line);
}

.gen-group li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.gen-group li a span {
  font-size: 17px;
  font-weight: 600;
}

.gen-group li a em {
  flex: none;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-color);
}

.gen-group li a em i {
  margin-left: 6px;
  transition: transform 0.25s ease;
}

.gen-group li a:hover {
  color: var(--gen-ink);
}

.gen-group li a:hover em i {
  transform: translateX(4px);
}

.gen-cta {
  margin-top: 46px;
  text-align: center;
}

/* ------------------------------------------------------------- phones */
@media only screen and (max-width: 767px) {
  .gen-quote {
    font-size: 21px;
    padding-left: 18px;
  }

  .gen-slot,
  .gen-group {
    padding: 30px 22px;
  }

  .gen-slot .gen-time {
    font-size: 34px;
  }

  .gen-total .count-outer {
    font-size: 58px;
  }

  .gen-play {
    width: 58px;
    height: 58px;
    font-size: 17px;
  }

  .gen-group h3 {
    font-size: 23px;
  }
}

/* ==========================================================================
   Dark sections — the template's own rhythm

   The template alternates light and dark bands, each dark one a photograph
   under a colour wash with a shape cutting its edge. bg-color-1 was never
   defined by the template, so the sections meant to be dark came out plain
   white; this is what they should have been.
   ========================================================================== */
.gen-dark {
  position: relative;
  background: var(--dark-color);
  overflow: hidden;
}

.gen-dark > .auto-container {
  position: relative;
  z-index: 3;
}

.gen-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}

/* Navy over the photograph rather than plain black: it keeps the stage
   lighting in the picture readable while holding white type at contrast. */
.gen-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--dark-rgb), 0.88) 0%,
    rgba(var(--dark-rgb), 0.80) 45%,
    rgba(var(--dark-rgb), 0.92) 100%);
}

/* Type on a dark band */
.gen-dark .sec-title h2,
.gen-dark .gen-quote,
.gen-dark .gen-video h3,
.gen-dark .funfact-block-one .inner-box h2 {
  color: #fff;
}

.gen-dark .sec-title p,
.gen-dark .gen-note,
.gen-dark .gen-lede,
.gen-dark .gen-video p {
  color: rgba(255, 255, 255, 0.74);
}

.gen-dark .gen-quote {
  border-left-color: var(--secondary-color);
}

.gen-dark .gen-total .count-outer {
  color: var(--secondary-color);
}

.gen-dark .gen-total h3 {
  color: rgba(255, 255, 255, 0.74);
}

.gen-dark .gen-frame .image-box {
  background: #000;
}

@media only screen and (max-width: 767px) {
}


/* ==========================================================================
   Hero — the full viewport

   The template paces its banner with fixed padding (333px top, 324px
   bottom), which is a guess at a screen height: short of it on a laptop,
   well past it on a phone. The slide takes the viewport instead, and
   centres its content in whatever that turns out to be. svh rather than
   vh so a phone measures the visible area and the picture does not run
   under the browser's own chrome.
   ========================================================================== */
.banner-style-two .banner-carousel .slide-item {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 90px;
}

.banner-style-two .banner-carousel .owl-stage,
.banner-style-two .banner-carousel .owl-item,
.banner-style-two .banner-carousel .owl-stage-outer {
  height: 100%;
}

.banner-style-two .banner-carousel .slide-item .bg-layer {
  background-size: cover;
  background-position: center;
}

.banner-style-two .banner-carousel .slide-item .auto-container {
  width: 100%;
}

/* ----------------------------------------------------- gallery set bar
   The count on the left, the two arrows on the right, on the rule under
   the set they control. */
.gen-sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--gen-line);
  font-size: 15px;
  color: var(--text-color);
}


@media only screen and (max-width: 767px) {
  .gen-sheet-bar {
    font-size: 13px;
  }

}


/* ------------------------------------------------- gallery, paged 4 x 3
   The arrows sit on the sides of the grid, centred on it, rather than
   under it: at the edge they point at, and tall so they read as edge
   controls rather than two buttons parked on a photograph. */
.gen-sheet-wrap {
  position: relative;
}

.gen-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: clamp(40px, 4.2vw, 54px);
  height: clamp(64px, 7vw, 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(var(--dark-rgb, 10, 16, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gen-arrow.is-prev { left: clamp(-10px, -0.8vw, 0px); }
.gen-arrow.is-next { right: clamp(-10px, -0.8vw, 0px); }

.gen-arrow:hover,
.gen-arrow:focus-visible {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* A little taller than square, so three rows carry more picture. */
.gen-frame .image-box img {
  aspect-ratio: 4 / 5;
}

.gen-sheet-bar {
  justify-content: center;
}



/* ==========================================================================
   Preloader — the wordmark is GENERATION'26, not GENERATION

   Three more glyphs at 70px with 15px of tracking is about 715px of line,
   which wraps on anything narrower than a laptop. The type steps down with
   the viewport so the mark stays on one line.
   ========================================================================== */
@media only screen and (max-width: 1199px) {
  .handle-preloader .animation-preloader .txt-loading .letters-loading {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 9px;
  }
}

@media only screen and (max-width: 767px) {
  .handle-preloader .animation-preloader .txt-loading .letters-loading {
    font-size: 30px;
    line-height: 30px;
    letter-spacing: 5px;
  }
}

@media only screen and (max-width: 420px) {
  .handle-preloader .animation-preloader .txt-loading .letters-loading {
    font-size: 23px;
    line-height: 23px;
    letter-spacing: 3px;
  }
}

/* The theme staggers the reveal for glyphs 2 to 8 only, so everything from
   the ninth on arrived at once. The mark is thirteen glyphs now. */
.handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(9):before  { animation-delay: 1.6s; }
.handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(10):before { animation-delay: 1.8s; }
.handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(11):before { animation-delay: 2.0s; }
.handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(12):before { animation-delay: 2.2s; }
.handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(13):before { animation-delay: 2.4s; }

/* --------------------------------------------------- gallery -> auditions
   The set bar closed the gallery, then 110px of its own padding met 140px
   of the next section's: a quarter of a screen of nothing between the
   photographs and the thing they are there to sell. */
#gallery {
  padding-bottom: 40px;
}

#auditions {
  padding-top: 70px;
}

.gen-sheet-bar {
  margin-top: 10px;
  padding-top: 20px;
}

/* ==========================================================================
   Figures in cards

   Loose on the page the counters drift: nothing sets where one ends and
   the next begins, so the labels wrap into each other's column and a short
   last row reads as a mistake. A card gives each figure a footprint, which
   is also what makes 3 + 2 look deliberate.
   ========================================================================== */
.funfact-block {
  display: flex;                 /* so every card in a row matches height */
  padding-bottom: 30px;          /* the gap between rows lives out here */
}

.funfact-block-one {
  width: 100%;
}

.funfact-block-one .inner-box {
  height: 100%;
  padding: 38px 26px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--gen-line);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.funfact-block-one .inner-box:hover {
  border-color: var(--theme-color);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(var(--dark-rgb), .08);
}

.funfact-block-one .inner-box h2 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.4;
}

/* On the navy band the card is the band, lightened -- a white panel there
   would punch a hole in it. */
.gen-dark .funfact-block-one .inner-box {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}

.gen-dark .funfact-block-one .inner-box:hover {
  background: rgba(255, 255, 255, .10);
  border-color: var(--secondary-color);
  box-shadow: none;
}

@media only screen and (max-width: 767px) {
  .funfact-block {
    padding-bottom: 18px;
  }

  .funfact-block-one .inner-box {
    padding: 26px 18px 24px;
  }

  .funfact-block-one .inner-box h2 {
    font-size: 16px;
  }
}

/* The audition call-to-action goes to the Telegram channel, so it carries
   the mark people are looking for. */
.gen-tg i {
  margin-right: 10px;
  font-size: 18px;
  vertical-align: -1px;
}
