/* =============================================================
   ITI Design System — Home page
   Sections, in order:
     1. Hero rotator      (2 slides, identical treatment)
     2. Research units    (7 labs + 1 CTA tile, dark band)
     3. Spin-off companies (11 logos, all visible)
     4. Infrastructure    (2 facilities, dark band)
     5. Announcements     (3 latest + portrait image)

   Note on typography: IBM Plex Mono has NO Greek subset, so the mono
   face is used for digits and Latin only. Greek always uses Plex Sans.
   ============================================================= */

/* Astra's main.min.css sets `#primary { margin: 4em 0 }` on every page.
   The home page opens on a full-bleed hero and closes on a full-bleed
   band, so both margins have to go here (and only here). */
.home #primary { margin: 0; }

/* =========================================================
   1. HERO
   ========================================================= */

.hero {
  /* How long a slide takes to wipe in, and how long it rests before the
     next one starts. js/iti-home.js reads both from here, so the script and
     the animation cannot drift apart. */
  --iti-hero-fade: 1.4s;
  --iti-hero-dwell: 12s;
  position: relative;
  background: var(--iti-ink-900);
  overflow: hidden;
}
/* The hero's texture sits over the photography rather than under it, and
   is raked from the left so it never competes with the headline. */
.hero.iti-textured::before {
  z-index: 3;
  mask-image: linear-gradient(105deg, transparent 0%, #000 45%, #000 100%);
}

.hero__stage {
  position: relative;
  display: grid;
}

/* All slides occupy the same grid cell. The incoming slide WIPES in over
   the outgoing one, which is held fully opaque underneath for the duration
   (JS sets data-leaving). A crossfade would show both headlines through
   each other at 50% opacity; a wipe never does.

   The wipe is a keyframe animation, not a transition: a transition out of
   visibility:hidden does not reliably fire, and when it fails the slide
   stays fully clipped, i.e. the hero goes blank. An animation restarts
   deterministically when the attribute flips. It carries NO fill-mode on
   purpose: the end state (inset 0) is identical to no clipping at all, so
   before, after, or if the animation never runs, the slide is fully
   visible. A fill-mode of `both` would pin it to the clipped `from` state
   and blank the hero. */
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  min-height: clamp(480px, 66vh, 700px);
  background: var(--iti-ink-900);
  opacity: 0;
  visibility: hidden;
}
.hero-slide[data-leaving="true"] {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}
.hero-slide[data-active="true"] {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  animation: iti-wipe-in var(--iti-hero-fade) cubic-bezier(.4, 0, .25, 1);
}
@keyframes iti-wipe-in {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The nZEB diagram sits right of centre in its source file; bias the
   crop so it stays clear of the copy column. */
.hero-slide--nzeb .hero-slide__bg { object-position: 72% center; }

.hero-slide__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(4, 18, 31, .96) 0%,
      rgba(4, 18, 31, .88) 34%,
      rgba(4, 18, 31, .45) 64%,
      rgba(4, 18, 31, .18) 100%);
}

/* A single cyan trace sweeping across the hero, once every cycle. */
.hero__sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 40vw;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--iti-electric-rgb), .05) 45%,
    rgba(var(--iti-electric-rgb), .16) 50%,
    rgba(var(--iti-electric-rgb), .05) 55%,
    transparent 100%);
  animation: iti-sweep 9s var(--iti-ease) infinite;
}
@keyframes iti-sweep {
  0%, 62%  { transform: translateX(-45vw); opacity: 0; }
  68%      { opacity: 1; }
  100%     { transform: translateX(145vw); opacity: 0; }
}

/* Current running through the board: small bright heads with a short tail,
   travelling along fixed lines at different heights and speeds. Each one is
   a couple of hundred pixels of gradient, so however many are in flight the
   surface actually moving stays tiny — which is the point, after a
   full-width pan proved too heavy to stay smooth.

   Every span is identical in the markup; everything that distinguishes them
   is here. */
.hero__pulses {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  /* Held to the right of the copy column. The text sits above them anyway,
     but a bright head sliding along behind a line of type pulls the eye off
     it; over the circuit imagery, which is where they belong, they read as
     part of the picture. Raked like the hero texture, which is masked the
     same way for the same reason. */
  mask-image: linear-gradient(90deg,
    transparent 0%, transparent 36%, #000 56%, #000 100%);
}
.hero__pulses span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 170px;
  opacity: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--iti-electric-rgb), .10) 55%,
    rgba(var(--iti-electric-rgb), .85) 96%,
    var(--iti-electric) 100%);
  box-shadow: 0 0 12px rgba(var(--iti-electric-rgb), .75);
  animation-name: iti-pulse-run;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes iti-pulse-run {
  0%        { transform: translateX(-180px); opacity: 0; }
  7%        { opacity: 1; }
  88%       { opacity: 1; }
  100%      { transform: translateX(102vw); opacity: 0; }
}
/* Spread over the height, and out of step with each other so they never
   run as a block. */
.hero__pulses span:nth-child(1) { top: 17%; width: 200px; animation-duration:  9s; animation-delay:  0s; }
.hero__pulses span:nth-child(2) { top: 34%; width: 140px; animation-duration: 13s; animation-delay: 2.5s; }
.hero__pulses span:nth-child(3) { top: 58%; width: 230px; animation-duration: 11s; animation-delay: 6s; }
.hero__pulses span:nth-child(4) { top: 73%; width: 120px; animation-duration: 15s; animation-delay: 1.2s; }
.hero__pulses span:nth-child(5) { top: 88%; width: 180px; animation-duration: 10s; animation-delay: 8s; }

@media (prefers-reduced-motion: reduce) {
  .hero__sweep,
  .hero__pulses span { animation: none; opacity: 0; }
}

.hero-slide__inner {
  position: relative;
  z-index: 4;
  display: grid;
  align-items: center;
  min-height: inherit;
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem);
}

.hero-copy { max-width: 42rem; }

.hero-copy__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--iti-s-3);
  margin-bottom: var(--iti-s-4);
  font-size: var(--iti-fs-xs);
  font-weight: 600;
  letter-spacing: var(--iti-track-label);
  text-transform: uppercase;
  color: var(--iti-electric);
}
.hero-copy__eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  background: var(--iti-electric);
  box-shadow: 0 0 10px var(--iti-electric);
  animation: iti-pulse 2.4s var(--iti-ease) infinite;
}
@keyframes iti-pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

.hero-copy__title {
  font-size: var(--iti-fs-display);
  font-weight: 200;
  line-height: var(--iti-lh-tight);
  letter-spacing: -.025em;
  color: var(--iti-on-dark);
}
.hero-copy__title strong {
  font-weight: 700;
  text-shadow: 0 0 34px rgba(var(--iti-electric-rgb), .35);
}

.hero-copy__text {
  position: relative;
  margin-top: var(--iti-s-5);
  padding-left: var(--iti-s-5);
  max-width: 54ch;
  font-size: var(--iti-fs-lead);
  color: var(--iti-on-dark-muted);
  border-left: 1px solid rgba(var(--iti-electric-rgb), .35);
}

.hero-copy__actions {
  display: flex;
  gap: var(--iti-s-3);
  margin-top: var(--iti-s-6);
  flex-wrap: wrap;
}

/* -- Rotator controls -- */

.hero__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  pointer-events: none;
}
.hero__controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--iti-s-4);
  padding-bottom: var(--iti-s-5);
  pointer-events: none;
}
.hero__controls-inner > * { pointer-events: auto; }

.hero__dots { display: flex; gap: var(--iti-s-3); align-items: center; }
.hero__dot {
  width: 46px; height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .26);
  cursor: pointer;
  transition: background var(--iti-dur) var(--iti-ease),
              box-shadow var(--iti-dur) var(--iti-ease);
}
.hero__dot[aria-current="true"] {
  background: var(--iti-electric);
  box-shadow: 0 0 12px rgba(var(--iti-electric-rgb), .8);
}
.hero__dot:hover { background: rgba(255, 255, 255, .6); }

.hero__arrows { display: flex; gap: var(--iti-s-2); }
.hero__arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(4, 18, 31, .35);
  color: var(--iti-on-dark);
  cursor: pointer;
  clip-path: var(--iti-clip-sm);
  transition: background var(--iti-dur) var(--iti-ease),
              border-color var(--iti-dur) var(--iti-ease),
              color var(--iti-dur) var(--iti-ease);
}
.hero__arrow:hover {
  background: var(--iti-electric);
  box-shadow: var(--iti-electric-glow);
  border-color: var(--iti-electric);
  color: var(--iti-ink-900);
}

/* =========================================================
   2. RESEARCH UNITS  (dark band)
   ========================================================= */

/* A light ground here is what separates this band from the dark hero above
   it. The cards stay dark, so the section still reads as part of the same
   visual world. Texture comes from .iti-textured in iti-base.css. */
.units { background: var(--iti-surface); }

.units .iti-count__n { color: var(--iti-blue); }

.units__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--iti-s-4);
  margin-top: var(--iti-s-7);
}

.unit {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--iti-ink-800);
  border: 1px solid var(--iti-line-dark);
  color: var(--iti-on-dark);
  clip-path: var(--iti-clip);
  transition: background var(--iti-dur) var(--iti-ease),
              border-color var(--iti-dur) var(--iti-ease),
              transform var(--iti-dur) var(--iti-ease);
}
.unit:hover {
  background: var(--iti-ink-700);
  border-color: var(--iti-electric);
  transform: translateY(-4px);
  color: var(--iti-on-dark);
}

.unit__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--iti-ink-900);
}
.unit__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.05) brightness(.82);
  transition: transform .55s var(--iti-ease), filter .45s var(--iti-ease);
}
.unit:hover .unit__media img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1) brightness(1);
}

/* Cyan trace that draws in on hover — echoes the circuitry in the hero. */
.unit__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--iti-electric);
  box-shadow: 0 0 14px rgba(var(--iti-electric-rgb), .9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--iti-ease);
}
.unit:hover .unit__media::after { transform: scaleX(1); }

.unit__body {
  display: flex;
  align-items: center;
  gap: var(--iti-s-3);
  padding: var(--iti-s-4) var(--iti-s-4) calc(var(--iti-s-4) + 4px);
  flex: 1;
}
.unit__name {
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--iti-on-dark);   /* stated, not inherited — see iti-base.css */
}
.unit__chevron {
  margin-left: auto;
  flex: none;
  color: var(--iti-on-dark-faint);
  transition: transform var(--iti-dur) var(--iti-ease),
              color var(--iti-dur) var(--iti-ease);
}
.unit:hover .unit__chevron {
  transform: translateX(3px);
  color: var(--iti-electric);
}

/* -- The 8th tile: "learn more" --------------------------------------
   The only tile with no photograph, so it is drawn rather than filled:
   a lit panel with corner registration ticks and a chevron trail that
   runs on hover. Replaces the flat blue chevron image that sat here. */

.unit--cta {
  background-color: var(--iti-ink-800);   /* real colour under the gradient */
  background-image:
    radial-gradient(120% 120% at 15% 10%, var(--iti-ink-700) 0%, var(--iti-ink-900) 70%);
  border-color: var(--iti-ink-600);
}
.unit--cta:hover {
  border-color: var(--iti-electric);
  box-shadow: 0 0 26px rgba(var(--iti-electric-rgb), .22);
}

.unit--cta .unit__media {
  position: relative;
  background: transparent;
  display: grid;
  place-items: center;
}
.unit--cta .unit__media::after { display: none; }

/* Faint scan grid inside the tile */
.unit--cta .unit__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--iti-grid-line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to bottom, var(--iti-grid-line) 0 1px, transparent 1px 26px);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
}

/* Chevron trail: three strokes that stagger outward on hover */
.unit__cta-mark {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--iti-electric);
}
.unit__cta-mark svg { display: block; }
.unit__cta-mark svg:nth-child(1) { opacity: .28; }
.unit__cta-mark svg:nth-child(2) { opacity: .6; }
.unit__cta-mark svg:nth-child(3) { opacity: 1; filter: drop-shadow(0 0 8px rgba(var(--iti-electric-rgb), .85)); }
.unit__cta-mark svg { transition: transform .45s var(--iti-ease), opacity .45s var(--iti-ease); }
.unit--cta:hover .unit__cta-mark svg:nth-child(1) { transform: translateX(10px); opacity: .6; }
.unit--cta:hover .unit__cta-mark svg:nth-child(2) { transform: translateX(10px); opacity: 1; }
.unit--cta:hover .unit__cta-mark svg:nth-child(3) { transform: translateX(10px); opacity: 1; }

/* Corner registration ticks */
.unit--cta .unit__media .unit__cta-ticks::before,
.unit--cta .unit__media .unit__cta-ticks::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--iti-electric);
  opacity: .55;
  transition: opacity var(--iti-dur) var(--iti-ease);
}
.unit--cta .unit__media .unit__cta-ticks::before {
  top: 14px; left: 14px;
  border-right: 0; border-bottom: 0;
}
.unit--cta .unit__media .unit__cta-ticks::after {
  bottom: 14px; right: 14px;
  border-left: 0; border-top: 0;
}
.unit--cta:hover .unit__cta-ticks::before,
.unit--cta:hover .unit__cta-ticks::after { opacity: 1; }

.unit--cta .unit__name { font-weight: 600; color: var(--iti-on-dark); }
.unit--cta .unit__chevron { color: var(--iti-electric); }
.unit--cta:hover .unit__chevron { color: var(--iti-electric); }

@media (max-width: 1000px) { .units__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .units__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   3. SPIN-OFF COMPANIES
   The band is paper, the logo tiles are white, so the grid reads as a
   separate surface from the (white) units band above it.
   ========================================================= */

.spin__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}

.spin__figure {
  display: flex;
  align-items: baseline;
  gap: var(--iti-s-3);
  margin-bottom: var(--iti-s-4);
}
.spin__figure-n {
  font-family: var(--iti-font-mono);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--iti-blue);
  font-variant-numeric: tabular-nums;
}
.spin__figure-label {
  font-size: var(--iti-fs-xs);
  font-weight: 600;
  letter-spacing: var(--iti-track-label);
  text-transform: uppercase;
  color: var(--iti-text-faint);
}

/* Separate chamfered chips with real gaps, not a collapsed table grid.
   The logo files are opaque PNGs on solid white (none has an alpha
   channel), so the chips have to stay light — the futuristic treatment
   lives in the chip, not the ground. Logos are shown in full colour;
   the old greyscale filter is gone. */
.spin__logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: var(--iti-s-3);
}
.spin__logo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: var(--iti-s-5) var(--iti-s-4);
  background: var(--iti-surface);
  border: 1px solid var(--iti-line);
  clip-path: var(--iti-clip-sm);
  transition: border-color var(--iti-dur) var(--iti-ease),
              transform var(--iti-dur) var(--iti-ease),
              box-shadow var(--iti-dur) var(--iti-ease);
}
.spin__logo:hover {
  border-color: var(--iti-electric-dim);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(6, 25, 44, .12);
}

/* Cyan rail that draws across the top edge on hover */
.spin__logo::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--iti-electric);
  box-shadow: var(--iti-electric-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--iti-ease);
}
.spin__logo:hover::after { transform: scaleX(1); }

/* Corner registration tick, same device as the "learn more" tile */
.spin__logo::before {
  content: "";
  position: absolute;
  right: 10px; bottom: 10px;
  width: 10px; height: 10px;
  border: 1px solid var(--iti-electric-dim);
  border-left: 0;
  border-top: 0;
  opacity: 0;
  transition: opacity var(--iti-dur) var(--iti-ease);
}
.spin__logo:hover::before { opacity: 1; }

.spin__logo img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform var(--iti-dur) var(--iti-ease);
}
.spin__logo:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
  .spin__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   4. INFRASTRUCTURE (dark band)
   ========================================================= */

.infra__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--iti-s-5);
  margin-top: var(--iti-s-7);
}

.infra-card {
  display: flex;
  flex-direction: column;
  background: var(--iti-ink-800);
  border: 1px solid var(--iti-line-dark);
  color: var(--iti-on-dark);
  clip-path: var(--iti-clip);
  transition: border-color var(--iti-dur) var(--iti-ease),
              transform var(--iti-dur) var(--iti-ease);
}
.infra-card:hover {
  border-color: var(--iti-electric);
  transform: translateY(-4px);
  color: var(--iti-on-dark);
}

.infra-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.infra-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.9);
  transition: transform .6s var(--iti-ease), filter .45s var(--iti-ease);
}
.infra-card:hover .infra-card__media img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}
.infra-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 36, 60, .85) 100%);
}

.infra-card__body {
  display: grid;
  gap: var(--iti-s-3);
  padding: clamp(1.25rem, .8rem + 1.4vw, 2rem);
}
.infra-card__title {
  font-size: var(--iti-fs-h3);
  font-weight: 600;
  color: var(--iti-on-dark);
}
.infra-card__text {
  font-size: var(--iti-fs-sm);
  color: var(--iti-on-dark-muted);
}
.infra-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--iti-s-2);
  margin-top: var(--iti-s-1);
  font-size: var(--iti-fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--iti-electric);
}
.infra-card__more svg { transition: transform var(--iti-dur) var(--iti-ease); }
.infra-card:hover .infra-card__more svg { transform: translateX(4px); }

@media (max-width: 760px) {
  .infra__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   5. ANNOUNCEMENTS
   Laid out as a log: a cyan spine down the left with a node per entry,
   each entry a chamfered record card carrying its date, category, title
   and abstract. The photograph is framed like a monitor feed.
   ========================================================= */

.news__grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  /* stretch, so the photograph runs the full height of the log beside it
     instead of stopping short at its own aspect ratio */
  align-items: stretch;
  margin-top: var(--iti-s-7);
}

/* ---- the photograph, framed as a feed ---- */
.news__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  background: var(--iti-ink-900);
  clip-path: var(--iti-clip);
}
.news__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.55) contrast(1.05) brightness(.9);
}
/* cool cast + vignette, so the photo reads as part of the same world */
.news__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 18, 31, .10) 0%, rgba(4, 18, 31, .78) 100%),
    linear-gradient(0deg, rgba(var(--iti-electric-rgb), .16), rgba(var(--iti-electric-rgb), .16));
  mix-blend-mode: multiply;
}
/* corner registration ticks */
.news__figure::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 14px; top: 14px;
  width: 20px; height: 20px;
  border-left: 1px solid var(--iti-electric);
  border-top: 1px solid var(--iti-electric);
  opacity: .85;
}
.news__figure-scan {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--iti-electric-rgb), .85), transparent);
  animation: news-scan 5.5s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes news-scan {
  0%   { top: -2px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---- the log ----
   Dark slates rather than white cards: they pair with the cooled
   photograph on the left and let the cyan carry the section. Each slate is
   chamfered, has a rail down its lit edge, and a sweep that crosses it on
   hover. ---- */
.news__list {
  position: relative;
  display: grid;
  gap: var(--iti-s-4);
  padding-left: 30px;
}
/* the spine */
.news__list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(var(--iti-electric-rgb), .5) 8%,
    rgba(var(--iti-electric-rgb), .5) 92%,
    transparent 100%);
}

/* The node and its connector sit OUTSIDE the card, so they cannot live on
   .news-item: that element is chamfered with clip-path, and a clip-path
   clips an element's own pseudo-elements too — the node was being cut away
   exactly like the third-level submenu was. They hang off this unclipped
   wrapper instead. */
.news-entry { position: relative; }

.news-entry::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -29px;
  top: 30px;
  width: 9px; height: 9px;
  background: var(--iti-paper);
  border: 1px solid var(--iti-electric-dim);
  transform: rotate(45deg);
  transition: background var(--iti-dur) var(--iti-ease),
              box-shadow var(--iti-dur) var(--iti-ease);
}
.news-entry:hover::before {
  background: var(--iti-electric);
  box-shadow: 0 0 14px rgba(var(--iti-electric-rgb), .95);
}
.news-entry::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 34px;
  width: 20px;
  height: 1px;
  background: rgba(var(--iti-electric-rgb), .45);
}

/* Accessibility: the card is not one big link. The heading carries the
   only link, so its accessible name is the announcement title rather than
   the whole card; the link is then stretched over the slate so the card
   still behaves as a single target. */
.news-item__link { color: inherit; text-decoration: none; }
.news-item__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.news-item__link:focus-visible { outline: none; }
/* Keyboard only. :focus-within has no -visible counterpart — it asks
   "is focus inside me", which a mouse click answers too, so clicking a
   card used to leave it ringed. :has() asks whether the link inside is
   focused the way a keyboard focuses it. */
.news-entry:has(a:focus-visible) .news-item { outline: 2px solid var(--iti-electric); outline-offset: 2px; }

.news-item {
  position: relative;
  display: block;
  overflow: hidden;
  padding: var(--iti-s-5) var(--iti-s-6) var(--iti-s-5) calc(var(--iti-s-6) + 4px);
  background: var(--iti-surface);
  border: 1px solid var(--iti-line);
  color: var(--iti-text);
  clip-path: var(--iti-clip);
  transition: border-color var(--iti-dur) var(--iti-ease),
              transform var(--iti-dur) var(--iti-ease),
              box-shadow var(--iti-dur) var(--iti-ease);
}
.news-entry:hover .news-item,
.news-entry:focus-within .news-item {
  border-color: var(--iti-electric-dim);
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(6, 25, 44, .13);
  color: var(--iti-text);
}

/* lit edge */
.news-item__rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--iti-electric-dim);
  opacity: .6;
  transform: scaleY(.35);
  transform-origin: top;
  transition: transform .45s var(--iti-ease), opacity .45s var(--iti-ease);
}
.news-entry:hover .news-item__rail,
.news-entry:focus-within .news-item__rail {
  transform: scaleY(1);
  opacity: 1;
}

/* sweep that crosses the slate on hover */
.news-item__sweep {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(var(--iti-electric-rgb), .13), transparent);
  opacity: 0;
  transform: translateX(-120%);
}
.news-entry:hover .news-item__sweep { opacity: 0; }
@keyframes news-sweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(320%); }
}

/* meta row: category left, date stamp right */
.news-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--iti-s-4);
  margin-bottom: var(--iti-s-4);
  padding-bottom: var(--iti-s-3);
  border-bottom: 1px solid var(--iti-line);
}
.news-item__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: var(--iti-track-label);
  text-transform: uppercase;
  color: var(--iti-ember-ink);
}
.news-item__tag::before { content: "["; opacity: .6; }
.news-item__tag::after  { content: "]"; opacity: .6; }

/* Reads as running text, and carries a Greek month name the mono face has
   no glyphs for, so it stays in the body face. Matches the listing. */
.news-item__stamp {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--iti-text-muted);
}

.news-item__title {
  font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--iti-text);
  transition: color var(--iti-dur) var(--iti-ease);
}
.news-item__title a { color: inherit; }
.news-entry:hover .news-item__title,
.news-entry:focus-within .news-item__title { color: var(--iti-blue); }

.news-item__excerpt {
  margin-top: var(--iti-s-3);
  font-size: var(--iti-fs-sm);
  line-height: 1.6;
  color: var(--iti-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__go {
  display: inline-flex;
  align-items: center;
  gap: var(--iti-s-2);
  margin-top: var(--iti-s-4);
  font-size: var(--iti-fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iti-blue);
}
.news-item__go svg { transition: transform var(--iti-dur) var(--iti-ease); }
.news-entry:hover .news-item__go svg { transform: translateX(5px); }

.news__footer { margin-top: var(--iti-s-6); padding-left: 30px; }

@media (max-width: 860px) {
  .news__grid { grid-template-columns: 1fr; }
  .news__figure { max-width: 330px; height: auto; min-height: 0; }
  .news__figure img { aspect-ratio: 465 / 625; height: auto; }
}
@media (max-width: 560px) {
  .news__list { padding-left: 20px; }
  .news__list::before { left: 3px; }
  .news-entry::before { left: -19px; }
  .news-entry::after { left: -12px; width: 12px; }
  .news-item { padding: var(--iti-s-4) var(--iti-s-4) var(--iti-s-4) var(--iti-s-5); }
  .news-item__meta { flex-wrap: wrap; gap: var(--iti-s-2); }
  .news__footer { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .news__figure-scan { animation: none; opacity: 0; }
  .news-entry:hover .news-item__sweep { animation: none; opacity: 0; }
  .news-item__rail { transition: none; }
}
