/* ==========================================================================
   news-insights — iteration block
   --------------------------------------------------------------------------
   White, Swiss-editorial "News & Insights" carousel, patterned on the
   large-format featured-story layout: a heavy headline, two wide image
   cards in view with an overlaid caption panel each, then a baseline row
   of a descriptive lead (left), a segmented progress ruler (centre) and
   prev/next controls (right).

   Images only — no video. Cards are real stills; the caption panel is a
   translucent ink scrim so type stays legible over any frame.

   PLAYGROUND MODE: raw values, placeholder stories.
   ========================================================================== */

.ni {
  --ni-bg:     #FFFFFF;
  --ni-ink:    #141A26;
  --ni-dim:    rgba(20, 26, 38, 0.60);
  --ni-faint:  rgba(20, 26, 38, 0.38);
  --ni-rule:   rgba(20, 26, 38, 0.14);
  --ni-hair:   rgba(20, 26, 38, 0.07);
  --ni-accent: #C42800;
  --ni-gap:    32px;

  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--ni-bg);
  color: var(--ni-ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 128px 0 120px;
}

/* On the page grid (2026-08-20): this band was the widest outlier on the
   site at 1840px + 40px gutters, so the press-release rows started 40px
   from the viewport edge while every section above them started at 136px.
   Same measure as every other editorial section now. */
.ni__inner {
  max-width: var(--teako-page-max);
  margin: 0 auto;
  padding: 0 var(--teako-page-gutter);
}

/* ---------- Header ---------- */

.ni__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.ni__title {
  margin: 0;
  /* Sign-off audit 2026-08-18: was Plex 700 at up to 100px — outgunned the
     page H1 and broke the display-face rule. Geologica, inside the scale. */
  font-family: 'Geologica', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  font-weight: 300; /* D1 */
  letter-spacing: -0.025em;
  color: var(--ni-ink);
}
.ni__viewall {
  flex: 0 0 auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ni-ink);
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ni-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease, border-color 220ms ease, gap 240ms cubic-bezier(0.33, 1, 0.68, 1);
}
.ni__viewall svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  transition: transform 240ms cubic-bezier(0.33, 1, 0.68, 1);
}
.ni__viewall:hover { gap: 18px; color: var(--ni-accent); border-color: var(--ni-accent); }
.ni__viewall:hover svg { transform: translate(2px, -2px); }

/* ---------- Carousel ---------- */

.ni__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}
.ni__viewport::-webkit-scrollbar { display: none; }
.ni__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.ni__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--ni-gap);
}

/* Two wide cards in view. */
.ni__card {
  flex: 0 0 calc((100% - var(--ni-gap)) / 2);
  scroll-snap-align: start;
}
.ni__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ni__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ni-hair);
}
.ni__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.33, 1, 0.68, 1);
}
.ni__card-link:hover .ni__media img,
.ni__card-link:focus-visible .ni__media img { transform: scale(1.03); }

/* Caption panel — translucent ink scrim, bottom-left. */
.ni__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: min(74%, 360px);
  padding: 22px 24px 24px;
  background: rgba(16, 20, 28, 0.56);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #fff;
}
.ni__tag {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #fff;
}
.ni__tag::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 3px;
  background: var(--ni-accent);
}
.ni__date {
  margin-top: 22px;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}
.ni__excerpt {
  margin: 10px 0 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Baseline: lead / ruler / controls ---------- */

.ni__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}
.ni__lead {
  margin: 0;
  max-width: 320px;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ni-dim);
}

/* Segmented ruler — one tick per card; active tick is accent + taller. */
.ni__ruler {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-self: center;
}
.ni__tick {
  width: 2px;
  height: 14px;
  background: var(--ni-rule);
  transition: background 240ms ease, height 240ms ease;
}
.ni__tick.is-active {
  height: 20px;
  background: var(--ni-accent);
}

.ni__arrows {
  justify-self: end;
  display: flex;
  gap: 10px;
}
.ni__arrow {
  appearance: none;
  width: 46px;
  height: 40px;
  border: 1px solid var(--ni-rule);
  background: var(--ni-hair);
  color: var(--ni-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.ni__arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.ni__arrow:hover { background: var(--ni-ink); color: #fff; border-color: var(--ni-ink); }
.ni__arrow:disabled { opacity: 0.32; cursor: default; }
.ni__arrow:disabled:hover { background: var(--ni-hair); color: var(--ni-ink); border-color: var(--ni-rule); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .ni { padding: 80px 0 72px; }
  .ni__inner { padding: 0 28px; }
  .ni__card { flex-basis: calc((100% - var(--ni-gap)) / 2); }
  .ni__foot { grid-template-columns: 1fr auto; row-gap: 28px; }
  .ni__lead { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 720px) {
  .ni__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  /* "View all" sits left, under the title, on phones (client, 29 Aug 2026). */
  .ni__viewall { align-self: flex-start; }
  .ni__card { flex-basis: 86%; }
  .ni__ruler { display: none; }
  .ni__arrows { justify-self: start; }
  .ni__foot { grid-template-columns: 1fr auto; }
}

/* ---------- List register (2026-08-02) ----------
   Press releases as ledger rows: date · tag · headline · arrow. */
.ni__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ni__row {
  display: grid;
  grid-template-columns: 110px 130px 1fr 24px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(20, 26, 38, 0.12);
  text-decoration: none;
  transition: background 0.2s ease;
}
.ni__list li:last-child .ni__row { border-bottom: 1px solid rgba(20, 26, 38, 0.12); }
.ni__row-date,
.ni__row-tag {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 26, 38, 0.55);
  white-space: nowrap;
}
.ni__row-tag::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #C42800;
  vertical-align: 1px;
}
.ni__row-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #141A26;
}
.ni__row-arrow {
  width: 16px; height: 16px;
  fill: none; stroke: #C42800;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ni__row:hover .ni__row-title { color: #C42800; }
.ni__row:hover .ni__row-arrow { opacity: 1; transform: none; }
.ni__foot--list { margin-top: 22px; }
@media (max-width: 760px) {
  /* Phones (client, 29 Aug 2026): the date sits on its own line and the
     release sentence runs full width beneath it; arrow keeps the right edge. */
  .ni__row { grid-template-columns: 1fr 20px; gap: 6px 16px; align-items: start; }
  .ni__row-tag { display: none; }
  .ni__row-date { grid-column: 1; }
  .ni__row-title { grid-column: 1; }
  .ni__row-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}


/* Display headings in Geologica (2026-08-02). */
.ni__title { font-family: 'Geologica', 'IBM Plex Sans', system-ui, sans-serif; }
