/* Approach: staggered editorial opening -> symmetrical ( HH : [preview] : MM ) clock band. */
.editorial-statement {
  --statement-size: clamp(38px, 5.4vw, 90px);
  --clock-size: clamp(30px, 5vw, 82px);
  --statement-gap: clamp(16px, 1.7vw, 24px);
  --frame-w: clamp(176px, 16vw, 248px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--statement-gap);
  padding-block: clamp(36px, 4.8svh, 72px) clamp(72px, 9svh, 132px);
  color: var(--ink);
  background: var(--paper);
}

.anchor-alias {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Visual phrases (aria-hidden; the sr-only h2 carries the full sentence) */
.statement-phrase {
  min-width: 0;
  font: 700 var(--statement-size)/.92 var(--font-index);
  letter-spacing: -.08em;
  word-spacing: -.06em;
  transform: scaleX(.88);
  transform-origin: left center;
  filter: url(#ink-bleed);
}
.statement-phrase > span { display: block; }

.statement-phrase--open { grid-column: 4 / -1; }
.statement-phrase--turn {
  grid-column: 5 / -1;
  margin-left: clamp(24px, 4.2vw, 64px);
  margin-top: .22em;
}

/* Symmetrical 5-column clock + center preview band: ( HH   :   [4:5 frame]   :   MM ) */
.statement-media {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6.8svh, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) var(--frame-w) minmax(0, .72fr) minmax(0, 1fr);
  align-items: center;
}

.clock-fallback {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--ink);
}

.statement-clock-group,
.clock-colon {
  display: none;
  grid-row: 1;
  font: 600 var(--clock-size)/.9 var(--font-serif);
  letter-spacing: -.03em;
  filter: url(#ink-bleed-serif);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}

.statement-clock-group {
  align-items: baseline;
  justify-self: center;
  gap: .14em;
}
.statement-clock-group--left { grid-column: 1; }
.statement-clock-group--right { grid-column: 5; }

.clock-paren {
  position: relative;
  top: -.04em;
  font-weight: 600;
}

.clock-colon {
  justify-self: center;
  position: relative;
  top: -.05em;
}
.clock-colon--left { grid-column: 2; }
.clock-colon--right { grid-column: 4; }

/* Preview frame: clickable 4:5 portrait button with bespoke vertical compositions */
.statement-frame {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.statement-stage {
  position: absolute;
  inset: 0;
  display: block;
}
.statement-art {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 240ms cubic-bezier(.22, .61, .36, 1);
}
.statement-art.is-current {
  opacity: 1;
  z-index: 1;
}
.statement-art.is-snap { transition: none; }
.statement-art > .visual {
  position: absolute;
  left: 0;
  top: 0;
  width: 480px;
  height: 600px;
  aspect-ratio: auto;
  border-radius: 0;
  transform-origin: 0 0;
  transform: scale(var(--study-scale, .5));
  transition: none;
  pointer-events: none;
}

/* Dedicated 4:5 vertical framing for Interval so text & phone fill the portrait canvas evenly */
.statement-art > .visual.tempo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 36px 34px 30px;
  gap: 18px;
}
.statement-art > .visual.tempo .appword {
  width: 100%;
  padding-top: 0;
  font-size: 36px;
  line-height: 1.04;
}
.statement-art > .visual.tempo .phone {
  width: 72%;
  padding: 24px 22px 18px;
  border-width: 4px;
  border-radius: 26px;
  transform: rotate(2deg);
}
.statement-art > .visual.tempo .phonebar { font-size: 11px; margin-bottom: 14px; }
.statement-art > .visual.tempo .phone > .meta { font-size: 10px; }
.statement-art > .visual.tempo .greeting { font-size: 24px; margin: 10px 0 14px; }
.statement-art > .visual.tempo .timer { width: 58%; }
.statement-art > .visual.tempo .timer strong { font-size: 34px; }
.statement-art > .visual.tempo .timer small { font-size: 8px; }
.statement-art > .visual.tempo .starttimer { font-size: 11px; padding: 10px 14px; margin-top: 16px; }
.statement-art > .visual.tempo .apptabs { font-size: 9px; margin-top: 12px; }

/* Balanced 4:5 portrait framing for Folio Botanica */
.statement-art > .visual.folio {
  padding: 38px 34px;
}
.statement-art > .visual.folio .editorial {
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.statement-art > .visual.folio .editorial img {
  height: 250px;
}
.statement-art > .visual.cms-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Enabled only after editorial.js initialises; without JS only the sentence + "Jakarta (UTC+7)" show */
.js-editorial-ready .clock-fallback { display: none; }
.js-editorial-ready .statement-clock-group { display: inline-flex; }
.js-editorial-ready .clock-colon { display: inline-block; }
.js-editorial-ready .statement-frame { display: block; }

/* Tablet */
@media (max-width: 1023px) {
  .editorial-statement {
    --statement-size: clamp(36px, 7vw, 66px);
    --clock-size: clamp(32px, 6.2vw, 56px);
    --frame-w: clamp(160px, 24vw, 224px);
  }
  .statement-phrase--open { grid-column: 2 / -1; }
  .statement-phrase--turn {
    grid-column: 3 / -1;
    margin-left: clamp(16px, 4vw, 44px);
  }
  .statement-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, .55fr) var(--frame-w) minmax(0, .55fr) minmax(0, 1fr);
  }
}

/* Mobile: keeps the iconic ( HH : [frame] : MM ) silhouette compact without horizontal overflow */
@media (max-width: 639px) {
  .editorial-statement {
    --statement-size: clamp(30px, 10vw, 52px);
    --clock-size: clamp(22px, 6.8vw, 34px);
    --frame-w: clamp(118px, 37vw, 168px);
    --statement-gap: 12px;
    padding-block: 40px 72px;
  }
  .statement-phrase--open,
  .statement-phrase--turn { grid-column: 1 / -1; }
  .statement-phrase--turn {
    margin-left: 0;
    padding-left: 14%;
  }
  .statement-media {
    margin-top: 44px;
    grid-template-columns: minmax(0, 1fr) auto var(--frame-w) auto minmax(0, 1fr);
    column-gap: clamp(6px, 2vw, 12px);
  }
  .statement-clock-group { gap: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  .statement-art {
    transition: none;
  }
}
