/* Responsive layer for the heARTist website UI kit.
   Collapsible layout grids live HERE (not inline) so they can change at breakpoints.
   Breakpoints: 920px (nav + 2-col grids), 720/600/640px (fine-grain). */

:root {
  --pad-x: clamp(18px, 4.5vw, 28px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a, button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

/* global smoothness: anything with an inline transition keeps its own timing;
   links/icons get a calm default so hovers never feel abrupt */
a, .ng-nav-link, svg { transition: color .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- containers ---------- */
.ng-wrap { max-width: 1180px; margin: 0 auto; }

/* Seamless bands — no hairline rule between color sections (paper↔white↔ink).
   Inner content dividers (timeline rows, tables, article rules) are untouched. */
main > section, main > div { border-top: 0 !important; border-bottom: 0 !important; }

/* modern card hover — soft lift, no hard outline */
.ng-card { transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s; }
a:focus-visible, button:focus-visible, .ng-card:focus-visible { outline: 2px solid var(--marker-red); outline-offset: 3px; }
article.ng-card:hover, .ng-card.is-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,17,15,.14); }

/* ---------- top bar ---------- */
.ng-topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad-x); height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ng-nav-desktop { display: flex; align-items: center; gap: 28px; }
.ng-topbar-mobile { display: none; align-items: center; gap: 10px; }
.ng-burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(251,251,250,.3); border-radius: var(--radius-sm);
  color: var(--paper); cursor: pointer; padding: 0; }
.ng-drawer { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 49;
  background: rgba(20,20,20,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 14px var(--pad-x) 36px; overflow-y: auto; display: none; flex-direction: column; }
.ng-drawer-link { display: flex; align-items: center; justify-content: space-between; padding: 17px 2px;
  font-family: var(--font-sans); font-weight: 700; font-size: 21px; color: rgba(251,251,250,.82);
  border-bottom: 1px solid rgba(251,251,250,.08); cursor: pointer; text-decoration: none; }
.ng-drawer-link.is-active { color: var(--paper); }
.ng-drawer-link.is-active::after { content: ''; width: 22px; height: 4px;
  background: var(--marker-red); border-radius: 2px; }

@media (max-width: 920px) {
  .ng-topbar-inner { height: 64px; }
  .ng-nav-desktop { display: none; }
  .ng-topbar-mobile { display: flex; }
  .ng-drawer { display: flex; }
}

/* ---------- collapsible grids ---------- */
.ng-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center;
  max-width: 1180px; margin: 0 auto; }
.ng-hero-photo { justify-self: end; position: relative; width: 100%; max-width: 460px; }
.ng-about-teaser { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center;
  max-width: 1080px; margin: 0 auto; }
.ng-about-hero { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center;
  max-width: 1180px; margin: 0 auto; }
.ng-speak-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
  max-width: 1120px; margin: 0 auto; }
.ng-story-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px;
  max-width: 1120px; margin: 0 auto; }
.ng-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 980px; margin: 0 auto; }
.ng-tl-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; }
.ng-talk-row { display: grid; grid-template-columns: 120px 1fr auto; column-gap: 16px; align-items: center; }
.ng-profile-grid { display: grid; grid-template-columns: 200px 1fr; }
.ng-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 1180px; margin: 0 auto; }
.ng-facts > * { background: var(--paper-2); border-radius: var(--radius-md); }
.ng-spread { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; flex: 1; min-height: 0; }

@media (max-width: 920px) {
  .ng-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .ng-hero-photo { justify-self: center; max-width: 400px; }
  /* Mobile: lead with the words — drop the portrait + signature to save space */
  .ng-hero-photo { display: none; }
  .ng-about-teaser, .ng-about-hero, .ng-speak-hero {
    grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .ng-split-photo { order: 2; width: 100%; max-width: 400px; margin: 0 auto; }
  .ng-story-grid { grid-template-columns: 1fr; gap: 36px; }
  .ng-facts { grid-template-columns: repeat(3, 1fr); }
  .ng-br-d { display: none; }
  .ng-books-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ng-reels-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 720px) {
  .ng-quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ng-tl-row { grid-template-columns: 1fr; gap: 8px; }
  .ng-talk-row { grid-template-columns: minmax(64px, 84px) 1fr auto; column-gap: 12px; }
  .ng-facts { grid-template-columns: 1fr; }
  .ng-profile-grid { grid-template-columns: 128px 1fr; }
  .ng-spread { grid-template-columns: 1fr; gap: 16px; }
  .ng-spread > div:first-child { min-height: 120px; }
  /* Reels: a simple 2-up grid that scrolls WITH the page — no nested
     horizontal carousel (which used to hijack the page's vertical scroll). */
  .ng-reels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ---------- components ---------- */
/* Hostages search: a ruled line, the way a form on paper is ruled */
.ng-searchbox { position: relative; display: inline-flex; align-items: center; min-width: 280px;
  border-bottom: 1px solid var(--line); transition: border-color .18s ease; }
.ng-searchbox:hover { border-bottom-color: var(--graphite); }
.ng-searchbox:focus-within { border-bottom-color: var(--ink); }
.ng-search { min-width: 0; flex: 1; font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; outline: none; padding: 9px 0; }
.ng-search::placeholder { color: var(--graphite); }
.ng-search::-webkit-search-decoration, .ng-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.ng-searchbox-clear { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  flex: none; border: 0; background: none; color: var(--graphite); cursor: pointer; }
.ng-searchbox-clear:hover { color: var(--ink); }

/* ===== NEXT APPEARANCE strip (home) ===== */
.ng-next { background: var(--ink); color: var(--paper); padding: clamp(22px,3.4vw,30px) var(--pad-x);
  border-bottom: 1px solid var(--line); }
.ng-next-inner { max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; gap: clamp(16px,3vw,30px); }
.ng-next-poster { display: block; width: 96px; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.ng-next-poster img { display: block; width: 100%; height: auto; }
.ng-event-poster { display: block; width: 118px; align-self: flex-start; line-height: 0;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 6px 16px rgba(20,17,15,.16); }
.ng-event-poster img { display: block; width: 100%; height: auto; }
.ng-next-date { display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 84px; padding: 12px 8px; border-radius: var(--radius-md);
  background: var(--marker-red); color: #fff; text-align: center; font-family: var(--font-sans); }
.ng-next-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ng-next-kicker { font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  color: rgba(251,251,250,.62); }
.ng-next-title { margin: 0; font-size: clamp(21px,2.8vw,30px); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.ng-next-place { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(251,251,250,.78); }
.ng-next-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .ng-next-inner { grid-template-columns: auto auto minmax(0,1fr); row-gap: 18px; }
  .ng-next-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ng-next-inner { grid-template-columns: auto minmax(0,1fr); }
  .ng-next-poster { width: 74px; }
}

/* ===== Hostages: a printed register, not a dashboard ===== */
.ng-index-wrap { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: clamp(16px,2.5vw,32px); align-items: start; }
.ng-index-rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.ng-index-rail-btn { border: 0; background: none; cursor: pointer; padding: 0; text-align: left;
  font-family: var(--font-sans); font-weight: 600; font-size: 12px; color: var(--graphite);
  transition: color .15s ease; }
.ng-index-rail-btn:hover:not(:disabled) { color: var(--marker-red); }
.ng-index-rail-btn:disabled { opacity: .3; cursor: default; }
.ng-reg-tabs { display: flex; gap: clamp(16px,2.6vw,30px); flex-wrap: wrap; }
.ng-reg-tab { border: 0; background: none; cursor: pointer; padding: 4px 0 7px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--graphite);
  border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease; }
.ng-reg-tab:hover { color: var(--ink); }
.ng-reg-tab.is-on { color: var(--ink); border-bottom-color: var(--marker-red); }
.ng-reg-tab span { margin-left: 7px; font-size: 13px; font-weight: 400; color: var(--graphite); }
.ng-index-count { margin: 0 0 14px; font-family: var(--font-sans); font-size: 13.5px; color: var(--graphite); }
.ng-index-group { margin-bottom: 10px; }
.ng-index-letter { position: sticky; top: 68px; z-index: 2; margin: 0;
  font-family: var(--font-sans); font-weight: 700; font-size: 20px; line-height: 1.3;
  color: var(--ink); background: var(--paper);
  padding: 16px 0 8px; border-bottom: 1px solid var(--ink); }
.ng-index-list { list-style: none; margin: 0; padding: 0; }
.ng-index-row { width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  display: grid; grid-template-columns: minmax(160px,1.05fr) minmax(90px,.55fr) minmax(0,1.75fr) 116px;
  align-items: baseline; column-gap: 20px; padding: 14px 0 13px;
  border-bottom: 1px solid var(--line); font-family: var(--font-sans); }
.ng-index-row:hover .ng-index-name, .ng-index-row:focus-visible .ng-index-name { color: var(--marker-red); }
.ng-index-row:focus-visible { outline: none; }
.ng-index-name { font-size: 16.5px; font-weight: 600; color: var(--ink); transition: color .15s ease; }
.ng-index-age { font-weight: 400; color: var(--graphite); }
.ng-index-place { font-size: 14px; color: var(--graphite); }
.ng-index-note { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-index-status { font-size: 13px; font-weight: 500; text-align: right; }
@media (max-width: 980px) {
  .ng-index-row { grid-template-columns: minmax(0,1fr) auto; row-gap: 3px; column-gap: 14px; }
  .ng-index-note { display: none; }
  .ng-index-place { grid-column: 1; grid-row: 2; }
  .ng-index-status { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 560px) {
  .ng-index-wrap { grid-template-columns: minmax(0,1fr); }
  .ng-index-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 8px; }
  .ng-index-rail-btn { font-size: 13.5px; }
}

@keyframes ng-pop { from { opacity: 0; transform: translateY(10px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes ng-fade { from { opacity: 0; } to { opacity: 1; } }
.ng-profile-backdrop { animation: ng-fade .26s ease both; }
.ng-profile-card { animation: ng-pop .34s cubic-bezier(.22,.61,.36,1) both; }
@media (prefers-reduced-motion: reduce) {
  .ng-rise, .ng-profile-backdrop, .ng-profile-card { animation: none; opacity: 1; transform: none; }
}
.ng-ticker-label { padding: 0 22px; font-size: 12.5px; gap: 10px; }
.ng-reel-overlay { padding: 40px 24px; }
.ng-reel-frame { height: min(82vh, 760px); }
.ng-reel-arrow.is-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ng-reel-arrow.is-next { right: 24px; top: 50%; transform: translateY(-50%); }
.ng-booklet { height: 560px; }

@media (max-width: 640px) {
  .ng-searchbox { min-width: 0; width: 100%; }
  .ng-ticker-label { font-size: 11px; padding: 0 12px; gap: 7px; }
  .ng-thumb-note { display: none; }
  .ng-reel-overlay { padding: 16px 12px 96px; }
  .ng-reel-arrow.is-prev { left: calc(50% - 58px); right: auto; top: auto; bottom: 22px; transform: none; }
  .ng-reel-arrow.is-next { left: calc(50% + 10px); right: auto; top: auto; bottom: 22px; transform: none; }
  .ng-reel-frame { height: auto; width: min(88vw, calc(72vh * 9 / 16)); }
  .ng-booklet { height: auto; aspect-ratio: 3 / 4; }
}

/* ---------- Appearances: events ---------- */
.ng-event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ng-event-card { display: grid; grid-template-columns: 96px 1fr; align-items: stretch; }
@media (max-width: 860px) { .ng-event-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .ng-event-card { grid-template-columns: 1fr; }
  .ng-event-date { flex-direction: row !important; gap: 8px; padding: 10px 16px !important; justify-content: flex-start !important; }
  .ng-event-date span:nth-child(2) { font-size: 22px !important; margin: 0 !important; }
}

/* ---------- News / press ---------- */
.ng-news-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.ng-news-feature-img { min-height: 340px; }
.ng-news-feature-read { max-width: 760px; }
.ng-news-feature-read .ng-news-body { column-count: 2; column-gap: 40px; }
.ng-news-feature-read .ng-news-body p:first-child::first-letter {
  font-size: 3.1em; font-weight: 700; line-height: .8; float: left; padding: 4px 10px 0 0; color: var(--marker-red); }
.ng-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(24px,3vw,34px) clamp(20px,2.4vw,28px); }
@media (max-width: 900px) { .ng-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .ng-news-grid { grid-template-columns: 1fr; } }
.ng-press-lead { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(20px,3vw,36px);
  align-items: start; cursor: pointer; padding-bottom: clamp(26px,4vw,36px); border-bottom: 1px solid var(--line); }
.ng-press-lead-img { position: relative; max-width: 460px; }
.ng-press-card { cursor: pointer; background: var(--white); overflow: hidden;
  display: flex; flex-direction: column; }
.ng-press-card:hover .ng-press-title, .ng-press-lead:hover .ng-press-title { color: var(--marker-red-ink); }
.ng-press-title { transition: color .16s ease; }
@media (max-width: 820px) { .ng-press-lead { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .ng-news-feature { grid-template-columns: 1fr; }
  .ng-news-feature-img { min-height: 260px; aspect-ratio: 16 / 10; }
  .ng-news-feature-read { max-width: none; }
  .ng-news-feature-read .ng-news-body { column-count: 1; }
}

/* ---------- Foundation ---------- */
.ng-fdn-mission { display: grid; grid-template-columns: 1.05fr .85fr; gap: clamp(28px,5vw,60px); align-items: center; }
.ng-fdn-videowrap { display: flex; justify-content: center; }
.ng-fdn-status { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: start; }
.ng-fdn-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,34px); }
@media (max-width: 860px) {
  .ng-fdn-mission { grid-template-columns: 1fr; gap: 38px; }
  .ng-fdn-status { grid-template-columns: 1fr; gap: 26px; }
  .ng-fdn-pillars { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- The sword: unveiling band (home) ---------- */
.ng-sword { position: relative; background: var(--ink); color: var(--paper); overflow: hidden;
  padding: clamp(56px,8vw,108px) var(--pad-x); border-bottom: 1px solid var(--line); }
.ng-sword::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(64% 76% at 20% 50%, rgba(206,166,86,.11), rgba(206,166,86,.03) 48%, transparent 76%); }
.ng-sword-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: auto 1px minmax(0,1fr); gap: clamp(28px,5vw,64px); align-items: center; }
.ng-sword-rule { align-self: stretch; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(216,184,119,.26) 18%, rgba(216,184,119,.26) 82%, transparent); }
.ng-sword-fig { position: relative; justify-self: center; height: clamp(400px, 58vw, 680px);
  opacity: 0; transform: translateY(56px) rotate(-2deg);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.16,.84,.3,1); }
.ng-sword-fig.is-in { opacity: 1; transform: none; }
.ng-sword-fig img { display: block; height: 100%; width: auto; aspect-ratio: 971 / 1620;
  filter: drop-shadow(0 34px 54px rgba(0,0,0,.6)); }
.ng-sword-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask-image: url(assets/sword-tute.webp); mask-image: url(assets/sword-tute.webp);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background: linear-gradient(180deg, transparent 38%, rgba(255,246,222,.72) 50%, transparent 62%); }
.ng-sword-fig.is-in .ng-sword-shine { animation: ng-sword-sweep 2s .45s ease-out both; }
@keyframes ng-sword-sweep { 0% { opacity: 0; transform: translateY(-75%); } 14% { opacity: 1; } 100% { opacity: 0; transform: translateY(85%); } }
.ng-sword-credit { margin-top: 28px; font-family: var(--font-sans); font-size: 15px; color: rgba(251,251,250,.6); }
@media (max-width: 760px) {
  .ng-sword-inner { grid-template-columns: minmax(0,1fr); gap: clamp(24px,4vw,32px); justify-items: center; text-align: center; }
  .ng-sword-rule { display: none; }
  .ng-sword-fig { height: clamp(330px, 68vw, 460px); }
}
@media (prefers-reduced-motion: reduce) {
  .ng-sword-fig { opacity: 1; transform: none; transition: none; }
  .ng-sword-fig.is-in .ng-sword-shine { animation: none; }
}

/* ---------- The map: Latin America band (home) ---------- */
.ng-lat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px,2vw,20px); }
.ng-lat-card { background: var(--paper); border-radius: var(--radius-md);
  padding: clamp(18px,2.4vw,24px); height: 100%; display: flex; flex-direction: column; gap: 6px; }
.ng-lat-card.is-more { align-items: center; justify-content: center; background: var(--paper-2); }
.ng-lat-plus { font-family: var(--font-sans); font-weight: 700; font-size: 34px; line-height: 1;
  color: var(--graphite); }
.ng-lat-country { margin: 10px 0 0; font-family: var(--font-sans); font-size: 20px; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink); }
.ng-lat-who { margin: 0; font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--marker-red); }
.ng-lat-line { margin: 6px 0 0; font-family: var(--font-sans); font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.ng-flag { display: block; width: 46px; height: 31px; border-radius: 3px; position: relative;
  overflow: hidden; box-shadow: 0 1px 3px rgba(20,17,15,.18); }
.ng-flag-ar { background: linear-gradient(180deg, #74acdf 0 33.3%, #fff 33.3% 66.6%, #74acdf 66.6% 100%); }
.ng-flag-ar::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #f6b40e; }
.ng-flag-br { background: #009c3b; }
.ng-flag-br::before { content: ''; position: absolute; inset: 4px 7px; background: #ffdf00;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ng-flag-br::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #002776; }
.ng-flag-cl { background: linear-gradient(180deg, #fff 0 50%, #d52b1e 50% 100%); }
.ng-flag-cl::before { content: ''; position: absolute; left: 0; top: 0; width: 15.5px; height: 15.5px; background: #0039a6; }
.ng-flag-cl::after { content: ''; position: absolute; left: 5.5px; top: 5.5px; width: 5px; height: 5px;
  border-radius: 50%; background: #fff; }
@media (max-width: 960px) { .ng-lat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .ng-lat-grid { grid-template-columns: minmax(0,1fr); } }
