/* noismore.com — styles */

@font-face { font-family: "Lay Grotesk"; src: url("/assets/fonts/LayGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lay Grotesk"; src: url("/assets/fonts/LayGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lay Grotesk"; src: url("/assets/fonts/LayGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Analo Grotesk"; src: url("/assets/fonts/AnaloGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+100-24F, U+259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+100-24F, U+259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Breakpoints match the original Framer site:
   XL ≥1500 · L 900–1499 (base) · M 600–899 · S 450–599 · XS <450.
   Values inside each band are fixed pixels, measured on noismore.com. */
:root {
  --red: #ff0000;
  --green: #03ff00;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --yellow: #ffff00;

  --lay: "Lay Grotesk", Arial, sans-serif;
  --analo: "Analo Grotesk", "Courier New", monospace;

  /* L: 900–1499px */
  --gap: 4px;
  --header-h: 141px; --header-pad: 30px; --header-title: 60px; --flag: 81px;
  --tile-pad: 30px; --home-statement: 61px; --home-title: 60px; --intro-title: 60px; --home-sub: 30px; --home-number: 40px;
  --arrow: 80px; --arrow-font: 60px; --arrow-display: flex;
  --cols: 4; --marquee-lg: 60px;
  --detail-cols: 4; --marquee-md: 45px;
  --info-pad: 10px; --info-title: 21px; --info-text: 13px; --info-gap: 16px;
  --nav-h: 57px; --nav-text: 21px;
  --label: 15px; --text-small: 16px; --text-large: 45px;
  --block-pad: 30px; --block-gap: 30px; --large-pad: 30px; --large-gap: 30px;
}
/* XL: ≥1500px */
@media (min-width: 1500px) {
  :root {
    --header-h: 160px; --header-title: 100px; --flag: 100px;
    --home-statement: 110px; --home-title: 100px; --intro-title: 110px; --home-sub: 50px; --home-number: 50px;
    --arrow: 120px; --arrow-font: 100px;
    --cols: 5;
    --marquee-md: 60px;
    --info-pad: 25px; --info-title: 34px; --info-text: 20px; --info-gap: 27px;
    --nav-h: 78px; --nav-text: 38px;
    --text-large: 60px;
  }
}
/* M: 600–899px */
@media (min-width: 600px) and (max-width: 899.98px) {
  :root {
    --gap: 3px;
    --header-h: 91px; --header-pad: 15px; --header-title: 40px; --flag: 61px;
    --tile-pad: 20px; --home-statement: 40px; --home-title: 35px; --intro-title: 35px; --home-sub: 18px; --home-number: 30px;
    --arrow-display: none;
    --cols: 3;
    --marquee-md: 30px;
    --info-pad: 5px; --info-title: 14px; --info-text: 9px; --info-gap: 5px;
    --nav-h: 51px; --nav-text: 16px;
    --text-large: 30px;
  }
}
/* S: 450–599px */
@media (min-width: 450px) and (max-width: 599.98px) {
  :root {
    --gap: 2px;
    --header-h: 66px; --header-pad: 10px; --header-title: 30px; --flag: 46px;
    --tile-pad: 10px; --home-statement: 30px; --home-title: 24px; --intro-title: 24px; --home-sub: 16px; --home-number: 20px;
    --arrow-display: none;
    --cols: 2;
    --detail-cols: 2; --marquee-md: 40px;
    --info-pad: 14px; --info-title: 20px; --info-text: 13px; --info-gap: 15px;
    --nav-h: 68px; --nav-text: 30px;
    --text-large: 40px;
    --block-pad: 14px; --block-gap: 12px; --large-pad: 10px; --large-gap: 10px;
  }
}
/* XS: <450px */
@media (max-width: 449.98px) {
  :root {
    --gap: 2px;
    --header-h: 81px; --header-pad: 10px; --header-title: 18px; --flag: 61px;
    --tile-pad: 10px; --home-statement: 18px; --home-title: 18px; --intro-title: 18px; --home-sub: 10px; --home-number: 12px;
    --arrow-display: none;
    --cols: 2;
    --detail-cols: 2; --marquee-md: 40px;
    --info-pad: 14px; --info-title: 16px; --info-text: 10px; --info-gap: 14px;
    --nav-h: 54px; --nav-text: 18px;
    --text-large: 40px;
    --large-pad: 10px; --large-gap: 10px;
  }
}
/* listing grids keep a 4px gap at every width */
.page-listing { --gap: 4px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--lay);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, p { margin: 0; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { display: flex; align-items: center; background: var(--white); color: var(--black); margin-bottom: var(--gap); }
.site-header__link { flex: 1; min-width: 0; display: flex; align-items: center; height: var(--header-h); padding: 0 var(--header-pad); }
.site-header__title { font-size: var(--header-title); line-height: 1; font-weight: 500; }
.site-header__flag-link { flex: none; display: block; margin-right: var(--header-pad); }
.site-header__flag { width: var(--flag); height: var(--flag); object-fit: cover; }

/* hover: white bars and buttons invert to black */
@media (hover: hover) {
  .site-header:has(.site-header__link:hover) { background: var(--black); color: var(--white); }
  a.detail-nav__item:hover { background: var(--black); color: var(--white); }
  .scroll-arrow:hover { background: var(--black); color: var(--white); border-color: var(--white); }
}

/* ---------- tiles ---------- */
.tile { position: relative; display: block; overflow: hidden; background: var(--c); color: var(--fg); }
.tile--red     { --c: var(--red);     --fg: var(--white); }
.tile--green   { --c: var(--green);   --fg: var(--black); }
.tile--blue    { --c: var(--blue);    --fg: var(--white); }
.tile--black   { --c: var(--black);   --fg: var(--white); }
.tile--white   { --c: var(--white);   --fg: var(--black); }
.tile--cyan    { --c: var(--cyan); }
.tile--magenta { --c: var(--magenta); }
.tile--yellow  { --c: var(--yellow); }

/* hover: the tile turns white and the text takes the tile's colour */
@media (hover: hover) {
  a.tile:hover { background: var(--white); color: var(--c); }
  a.tile--white:hover { background: var(--black); color: var(--white); }
}

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.home__big { aspect-ratio: 1; padding: var(--tile-pad); display: flex; flex-direction: column; }
.home__statement { font-size: var(--home-statement); line-height: 1; }
.home__title { font-size: var(--home-title); line-height: 1; }
.home__sub { font-family: var(--analo); font-size: var(--home-sub); line-height: 1.3; margin-top: var(--tile-pad); }
.home__title--intro { font-size: var(--intro-title); }
.home__support { line-height: 1.2; }
.home__credits { display: flex; flex-direction: column; gap: var(--home-sub); margin-top: var(--tile-pad); font-family: var(--analo); font-size: var(--home-sub); line-height: 1; }
.home__credits .credit { display: flex; flex-direction: column; }
.home__quad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); aspect-ratio: 1; }
.home__quad .tile { aspect-ratio: auto; }
.home__quad { container-type: inline-size; }
/* credits keep the tile text size, shrinking just enough that each line fits its small tile */
.home__credit { display: flex; flex-direction: column; padding: var(--tile-pad); font-family: var(--analo); line-height: 1;
  font-size: var(--home-sub); line-height: 1.3; }
/* "spin": while the quad is hovered, its four colours jump one tile clockwise every ~105ms
   (same as the Framer original). Sequence seen from the top-left tile: cyan → yellow → black → magenta. */
@keyframes quad-spin {
  0%   { background: var(--cyan);    color: var(--black); }
  25%  { background: var(--yellow);  color: var(--black); }
  50%  { background: var(--black);   color: var(--white); }
  75%  { background: var(--magenta); color: var(--black); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home__quad:hover > .tile { animation: quad-spin 420ms step-end infinite; }
  .home__quad:hover > .tile:nth-child(2) { animation-delay: -315ms; } /* top-right starts magenta */
  .home__quad:hover > .tile:nth-child(3) { animation-delay: -105ms; } /* bottom-left starts yellow */
  .home__quad:hover > .tile:nth-child(4) { animation-delay: -210ms; } /* bottom-right starts black */
}

/* ---------- listings ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.tile--marquee { aspect-ratio: 1; display: flex; align-items: center; }

/* ---------- marquee ---------- */
.marquee { display: block; width: 100%; overflow: hidden; white-space: nowrap; }
.marquee-size--lg .marquee { font-size: var(--marquee-lg); line-height: 1.2; }
.marquee-size--md .marquee { font-size: var(--marquee-md); line-height: 1.2; }
.marquee__track { display: inline-flex; animation: marquee var(--marquee-duration, 20s) linear infinite; will-change: transform; }
.marquee__track > span { padding-right: 0.3em; }
.marquee__track--hover { display: none; }
@media (hover: hover) {
  .has-hover:hover .marquee__track { display: none; }
  .has-hover:hover .marquee__track--hover { display: inline-flex; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- detail pages ---------- */
.detail { display: flex; flex-direction: column; gap: var(--gap); }
.detail-top { display: grid; grid-template-columns: repeat(var(--detail-cols), 1fr); gap: var(--gap); }
.tile--image { aspect-ratio: 1; }
.tile--image img { width: 100%; height: 100%; object-fit: cover; }
.tile--info { aspect-ratio: 1; padding: var(--info-pad); font-family: var(--analo); overflow: auto; }
.info__title { font-size: var(--info-title); line-height: 1.2; white-space: pre-line; }
.info__text { font-size: var(--info-text); line-height: 1.2; margin-top: var(--info-gap); white-space: pre-line; }
.info__title--question { white-space: pre-line; }

.detail-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.detail-nav__item {
  display: flex; align-items: center; height: var(--nav-h); padding: 0 16px;
  background: var(--white); font-family: var(--analo); font-size: var(--nav-text); line-height: 1.2;
}
.detail-nav__item--next { justify-content: flex-end; }
.lbl-mobile { display: none; }
@media (max-width: 449.98px) { .lbl-desktop { display: none; } .lbl-mobile { display: inline; } }

.block { background: var(--white); padding: var(--block-pad); }
.block__label { font-family: var(--analo); font-size: var(--label); line-height: 1.2; margin-bottom: var(--block-gap); }
.block:has(.block__text--large) { padding: var(--large-pad); }
.block:has(.block__text--large) .block__label { margin-bottom: var(--large-gap); }
.block__text { white-space: pre-line; }
.block__text--small { font-family: var(--lay); font-weight: 400; font-size: var(--text-small); line-height: 1.2; }
.block__text--large { font-size: var(--text-large); line-height: 1.2; }
.block__text a { text-decoration: underline; }
.press { list-style: none; margin: 0; padding: 0; white-space: normal; display: flex; flex-direction: column; gap: 0.3em; }
.press__row { display: flex; align-items: baseline; gap: 0.4em; }
.press__toggle { all: unset; cursor: pointer; flex: 0 1 auto; }
.press__toggle--static { cursor: default; }
.press__toggle:focus-visible, .press__link:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.press__arrow { display: inline-block; transition: transform .15s; }
.press__toggle[aria-expanded="true"] .press__arrow { transform: rotate(90deg); }
.press__link { flex: none; text-decoration: none; }
.press__panel { margin: 0.6em 0 0.9em 1.25em; max-width: 60em; display: flex; flex-direction: column; gap: 0.6em; }
.press__quote { font-family: var(--analo); font-size: var(--label); }
.press__panel .press__quote + .press__quote { margin-top: -0.3em; }
.press__panel[hidden] { display: none; }
.social__totals { display: flex; flex-direction: column; line-height: 1.35; }
.social { list-style: none; margin: 0.3em 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6em; }
.social__item { display: flex; gap: 0.4em; align-items: baseline; }
@media (hover: hover) { .press__link:hover { opacity: 0.5; } }

/* ---------- exhibition ---------- */
.exhibition { display: flex; flex-direction: column; gap: var(--gap); }
.video { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--black); overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(56px, var(--arrow)); height: max(56px, var(--arrow)); display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--black); border: 1px solid var(--black);
  font-size: calc(max(56px, var(--arrow)) * 0.45); line-height: 1; padding-left: 0.12em;
}
@media (hover: hover) { .video:hover .video__play { background: var(--black); color: var(--white); border-color: var(--white); } }
.photo { width: 100%; height: auto; aspect-ratio: 1440 / 958; object-fit: cover; }

/* ---------- scroll arrow (home + exhibition, desktop/tablet) ---------- */
.scroll-arrow {
  position: fixed; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: var(--arrow); height: var(--arrow); display: var(--arrow-display); align-items: center; justify-content: center;
  background: var(--white); color: var(--black); border: 1px solid var(--black);
  font-size: var(--arrow-font); line-height: 1; z-index: 50; transition: opacity .2s;
}
.scroll-arrow.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- boards (exhibition screens) ---------- */
.page-board, .page-old-home { background: var(--white); }
.board { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-weight: 700; position: relative; }
.board h1 { font-size: 40px; line-height: 1.2; text-align: center; }
.board__langs { display: flex; flex-direction: column; gap: 10px; }
.board__nav { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(600px, 100%); display: flex; align-items: center; justify-content: space-between; }
.board__nav a, .board__nav span { font-family: var(--lay); font-weight: 500; font-size: 42px; color: #212121; width: 40px; text-align: center; }

/* ---------- old home ---------- */
.old-home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 46px 20px; text-align: center; gap: 0; }
.old-home__bold { font-weight: 700; font-size: 24px; line-height: 1.2; }
.old-home img { margin: 84px 0 84px; width: 112px; height: auto; }
.old-home__button { margin-top: 99px; font-size: 16px; line-height: 1.2; border: 1px solid var(--black); padding: 10px 12px; }
.old-home__footer { margin-top: 100px; font-size: 16px; line-height: 1.2; white-space: pre-line; }

/* ---------- custom cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a { cursor: none; }
  .cursor {
    display: block; position: fixed; left: 0; top: 0; width: 182px; height: auto;
    pointer-events: none; z-index: 9999; opacity: 0; transform: translate(-200px, -200px);
  }
  body.has-cursor .cursor.is-visible { opacity: 1; }
}


/* page titles in Previous/Next stay on one line, cut with … when the button is too narrow */
.detail-nav__item { min-width: 0; }
.detail-nav__item .lbl-desktop { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* headline tile (Intro / The Exhibition pages) */
.tile--hero { aspect-ratio: 1; padding: var(--tile-pad); container-type: inline-size; display: flex; align-items: flex-start; }
.tile--hero { overflow: hidden; }
.hero { width: 100%; min-width: 0; font-size: var(--marquee-md); line-height: 1.2; font-weight: 500; }

/* catalogue photos: square tiles in the same grid as the detail tiles */
.gallery { display: grid; grid-template-columns: repeat(var(--detail-cols), 1fr); gap: var(--gap); }
.gallery__item { display: block; aspect-ratio: 1; overflow: hidden; background: var(--white); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .gallery__item:hover img { opacity: .85; } }

/* the black grid lives only where there is content: below the last tiles the page simply ends,
   closed by one black line (the same width as the gaps) */
.site-header { margin-bottom: 0; border-bottom: var(--gap) solid var(--black); }
main.home, main.grid, main.detail { background: var(--black); border-bottom: var(--gap) solid var(--black); }
.grid__filler { background: var(--white); }

/* second label inside one block (Numbers): same space above it as below a label */
.block__label--next { margin-top: var(--block-gap); }

/* catalogue gallery: empty cells of the last row stay black */
.gallery .grid__filler { background: var(--black); }

/* scroll arrow: no box, no border; always the inverse of whatever is behind it */
.scroll-arrow { background: transparent; border: 0; color: var(--white); mix-blend-mode: difference; }
@media (hover: hover) { .scroll-arrow:hover { background: transparent; color: var(--white); border-color: transparent; opacity: .6; } }

/* bigger arrow, drawn as a line so it sits exactly on the page's centre line */
.scroll-arrow { width: calc(var(--arrow) * 1.6); height: calc(var(--arrow) * 1.6); bottom: 16px; }
.scroll-arrow svg { width: 50%; height: 75%; display: block; }
/* arrow line exactly as thick as the dividing lines between tiles */
.scroll-arrow svg { overflow: visible; }
.scroll-arrow path { stroke-width: var(--gap); vector-effect: non-scaling-stroke; stroke-linecap: square; }
