/* 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; }

/* 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(247,242,233,.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(247,242,233,.82);
  border-bottom: 1px solid rgba(247,242,233,.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: swipeable horizontal carousel instead of a stacked list */
  .ng-reels-grid {
    display: flex !important;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }
  .ng-reels-grid::-webkit-scrollbar { display: none; }
  .ng-reels-grid > * { flex: 0 0 64%; scroll-snap-align: center; }
}

/* ---------- components ---------- */
/* Hostages search — accessible field with icon, clear button, soft focus ring */
.ng-searchbox { position: relative; display: inline-flex; align-items: center;
  min-width: 300px; background: var(--paper-2); border-radius: var(--radius-sm);
  transition: box-shadow .18s ease, background .18s ease; }
.ng-searchbox:hover { background: var(--paper-deep); }
.ng-searchbox:focus-within { background: var(--white); box-shadow: 0 0 0 4px rgba(242,183,5,.30); }
.ng-searchbox-icon { position: absolute; left: 15px; color: var(--graphite); pointer-events: none; }
.ng-search { min-width: 0; flex: 1; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: transparent; border: 0; outline: none; padding: 14px 14px 14px 44px; border-radius: var(--radius-sm); }
.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; margin-right: 7px;
  width: 30px; height: 30px; flex: none; border: 0; border-radius: var(--radius-full);
  background: var(--white); color: var(--graphite); font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease; }
.ng-searchbox-clear:hover { background: var(--ink); color: var(--paper); }

/* "Every face is a whole world" — faded wall of faces behind the band */
.ng-faces-band { position: relative; isolation: isolate; overflow: hidden; }
.ng-faces-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("assets/crowd-faces.jpg");
  background-size: cover; background-position: center 32%;
  opacity: .13; filter: grayscale(1) contrast(1.06);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 72%, transparent 100%); }
.ng-faces-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(125% 92% at 50% 38%, rgba(253,251,246,.62), rgba(253,251,246,0) 58%); }
.ng-faces-inner { position: relative; z-index: 1; }

/* ===== COMING SOON — compact poster teaser (orange quilted pattern, for a black silhouette) ===== */
.ng-coming { position: relative; background: #ef7a1a;
  padding: clamp(32px,4.5vw,52px) var(--pad-x); text-align: center; overflow: hidden;
  border-top: 1px solid rgba(20,17,15,.16); border-bottom: 1px solid rgba(20,17,15,.16); }
/* quilted-argyle pattern, slowly sliding up forever, fading into the orange at the edges */
.ng-coming::before { content: ''; position: absolute; left: 0; right: 0; top: -160px; bottom: -160px;
  z-index: 0; pointer-events: none; opacity: .85;
  background: url("coming-pattern.svg") repeat; background-size: 160px 160px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  animation: ng-coming-rise 16s linear infinite; }
@keyframes ng-coming-rise { from { background-position: 0 0; } to { background-position: 0 -160px; } }
@media (prefers-reduced-motion: reduce) { .ng-coming::before { animation: none; } }
.ng-coming-inner { position: relative; z-index: 1;
  display: grid; grid-template-columns: auto auto; align-items: center;
  justify-content: center; gap: clamp(20px,4vw,52px);
  max-width: 840px; margin: 0 auto; text-align: left; }
.ng-coming-copy { display: flex; flex-direction: column; gap: 8px; }
.ng-coming-kicker { font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 0; color: var(--ink); margin: 0; align-self: flex-start; width: fit-content;
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
  background: rgba(20,17,15,.12); }
.ng-coming-title { font-family: var(--font-display); text-transform: uppercase; line-height: .86;
  font-size: clamp(40px, 6.4vw, 76px); letter-spacing: .01em; margin: 0; color: var(--ink); }
.ng-coming-sub { margin: 0; font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(14px,1.7vw,16px); line-height: 1.55; color: rgba(20,17,15,.72); max-width: 34ch; }
.ng-coming-slot-wrap { margin: 0; display: flex; align-items: center; justify-content: center; }
.ng-coming-silhouette { display: block; width: auto; height: clamp(150px, 22vw, 210px);
  filter: drop-shadow(0 8px 18px rgba(40,18,0,.32)); }
@media (max-width: 600px) {
  .ng-coming-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .ng-coming-silhouette { height: clamp(132px, 34vw, 170px); }
}

/* ===== Hostages page motion ===== */
@keyframes ng-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ng-rise { opacity: 0; animation: ng-rise .52s cubic-bezier(.22,.61,.36,1) both; }
@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; }
.ng-filter-btn { transition: background .2s ease, color .2s ease,
  transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
.ng-filter-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,17,15,.12); }
.ng-filter-btn:active { transform: translateY(0) scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .ng-rise, .ng-profile-backdrop, .ng-profile-card { animation: none; opacity: 1; transform: none; }
  .ng-filter-btn { transition: 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(auto-fill, minmax(300px, 1fr)); gap: 22px; }
@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; }
}
