/* Real Earth — styles
   Palette derived from RealEarth.png:
   - paper #fdfcfa, sage land #568f83, ocean navy #35586c
*/

:root {
  /* Brand palette */
  --ink-900: #1a2c3b;     /* deepest navy */
  --ink-800: #2a4760;     /* primary brand navy */
  --ink-700: #35586c;     /* logo ocean blue */
  --ink-600: #4d6f80;
  --ink-500: #6e8590;
  --ink-400: #97aab2;
  --ink-300: #c2cdd2;
  --ink-200: #dde4e7;
  --ink-100: #ebeff1;
  --ink-50:  #f3f5f6;

  --sage-900: #2a4c44;
  --sage-700: #3d6b62;
  --sage-600: #4d8478;     /* deeper sage */
  --sage-500: #568f83;     /* logo land green */
  --sage-300: #8db5ab;
  --sage-100: #d2e2dd;
  --sage-50:  #eaf2ef;

  --gold-700: #9a7728;     /* warm earth accent (eyebrows) */
  --gold-600: #b8923e;

  --paper:      #fdfcfa;
  --paper-soft: #f5f0e6;
  --paper-warm: #efe8d8;
  --bg:         #fdfcfa;
  --bg-soft:    #f5f0e6;
  --bg-card:    #ffffff;

  --danger:    #9b2218;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(26, 44, 59, .05), 0 1px 3px rgba(26, 44, 59, .04);
  --shadow:    0 6px 16px rgba(26, 44, 59, .07), 0 2px 4px rgba(26, 44, 59, .04);
  --shadow-lg: 0 24px 48px rgba(26, 44, 59, .12), 0 8px 16px rgba(26, 44, 59, .07);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;

  --container: 1120px;

  /* Text-size scale (controlled by Configuració) */
  --text-scale: 1;
}

/* Dark theme */
html[data-theme="dark"] {
  --ink-900: #f5f5f4;
  --ink-800: #e8ebed;
  --ink-700: #c8d2d7;
  --ink-600: #a5b1b7;
  --ink-500: #7d8a91;
  --ink-400: #5e6b72;
  --ink-300: #3f4a51;
  --ink-200: #2b343a;
  --ink-100: #323d47;  /* bumped from #1f262c — borders now visible against bg-card */
  --ink-50:  #161b20;

  --sage-600: #6ba596;
  --sage-500: #82bdb0;
  --sage-300: #4d8478;
  --sage-100: #2a4c44;

  --gold-700: #d4b070;
  --gold-600: #c9a85a;

  --paper:      #11161b;
  --paper-soft: #161c22;
  --paper-warm: #1c2228;
  --bg:         #11161b;
  --bg-soft:    #161c22;
  --bg-card:    #232c35;  /* bumped from #1a2128 — clearer separation from bg */

  --shadow:     0 6px 16px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .35);
  --shadow-sm:  0 2px 6px rgba(0, 0, 0, .35);
  --shadow-lg:  0 24px 48px rgba(0, 0, 0, .55), 0 8px 16px rgba(0, 0, 0, .35);
}

/* RESET + base */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  font-size: calc(16px * var(--text-scale));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

html.splash-active,
body.splash-active,
html.modal-open,
body.modal-open { overflow: hidden; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

a { color: var(--ink-800); text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sage-600);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
  font-family: var(--font-serif);
}
h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
  padding: 0 0 10px;
  border-bottom: 2px solid var(--sage-600);
  margin: 0 0 22px;
}

/* SPLASH */
.splash {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .7s ease;
}
.splash.is-hidden { opacity: 0; pointer-events: none; }
.splash-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: splashIn .6s ease-out both;
}
.splash-seal { width: 220px; height: 220px; }
.splash-seal img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(26, 44, 59, .18))
          drop-shadow(0 3px 6px rgba(26, 44, 59, .12));
}
html[data-theme="dark"] .splash-seal img {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55))
          drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}
.splash-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .02em;
  color: var(--ink-900);
}
.splash-tag {
  color: var(--ink-600);
  font-size: .95rem;
  letter-spacing: .03em;
  max-width: 360px;
}
.splash-hint {
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  text-align: center;
  font-size: .78rem;
  color: var(--ink-500);
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes splashIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hintPulse {
  0%, 100% { opacity: .35; }
  50% { opacity: .85; }
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--ink-100);
}
.header-row {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-900); font-weight: 600;
  font-family: var(--font-serif); font-size: 1.15rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--paper);
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--ink-100);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { letter-spacing: .01em; white-space: nowrap; }

.site-nav {
  display: flex; gap: 18px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.site-nav a {
  font-size: .93rem;
  color: var(--ink-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--sage-500);
  text-decoration: none;
}

/* Configuració: a desktop només icona engranatge (per estalviar espai
   a la barra superior i que totes les seccions quepin en una línia).
   A mòbil dropdown es manté com a text. */
.nav-settings { display: inline-flex; align-items: center; gap: 0; padding: 4px 2px !important; }
.nav-settings .nav-settings-label { display: none; }
.nav-settings .nav-settings-icon { display: inline-block; }
.nav-settings:hover { border-bottom-color: transparent !important; }
.nav-settings:hover .nav-settings-icon { color: var(--sage-600); }

.lang-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: 0; background: transparent;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-600);
}
.lang-btn.is-active {
  background: var(--ink-800);
  color: var(--paper);
}
.lang-btn:disabled {
  opacity: .35; cursor: not-allowed;
}
.lang-more {
  font-size: 1rem;
  font-weight: 700;
  padding: 5px 10px;
  line-height: 1;
}

/* Lang popover — anchored dynamically under the «+» button that opens it.
   Position is computed in JS via getBoundingClientRect of the trigger. */
.lang-popover {
  position: fixed;
  top: 64px;          /* fallback; JS sets exact values on open */
  right: 12px;
  z-index: 60;
  min-width: 280px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.lang-popover[hidden] { display: none; }
.lang-popover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lang-popover-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink-800);
  font: inherit;
  font-size: .93rem;
  line-height: 1.2;
  transition: background .12s ease, color .12s ease;
}
.lang-popover-item:hover { background: var(--bg-soft); }
.lang-popover-item.is-active {
  background: var(--ink-800);
  color: var(--paper);
}
.lang-popover-item.is-active .lang-popover-code { color: var(--paper); opacity: .8; }
.lang-popover-native { font-weight: 600; }
.lang-popover-code { font-size: .72rem; letter-spacing: .04em; color: var(--ink-500); }

/* Footer langs strip — "Disponible en …" with all native names */
.langs-strip {
  margin: 22px 0 8px;
  padding: 14px 0;
  border-top: 1px dashed var(--ink-100);
  font-size: .85rem;
  color: var(--ink-700);
  line-height: 1.7;
}
.langs-strip-label {
  font-weight: 600;
  color: var(--ink-800);
  margin-right: 8px;
}
.langs-strip-list { display: inline; }
.langs-strip-item {
  background: transparent;
  border: 0;
  padding: 0 2px;
  font: inherit;
  color: var(--ink-700);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .12s, border-color .12s;
}
.langs-strip-item:hover { color: var(--ink-900); border-bottom-color: var(--sage-500); }
.langs-strip-item.is-active {
  color: var(--ink-900);
  font-weight: 700;
}
.langs-strip-sep { color: var(--ink-300); user-select: none; }

@media (max-width: 600px) {
  .lang-popover {
    right: 8px;
    left: 8px;
    min-width: 0;
    max-width: none;
  }
  .lang-popover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hamburger toggle — visible only on mobile, opens .site-nav as a dropdown */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: 4px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle:focus-visible { outline: 2px solid var(--sage-500); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* SECTIONS */
.section {
  padding: 84px 0;
  /* Anchor scroll offset — el header sticky té ~64px d'alçada, així que
     els enllaços #seccio s'aturen 76px abans perquè el contingut quedi
     just sota el header (i no tapat per ell). */
  scroll-margin-top: 76px;
}
section[id] {
  scroll-margin-top: 76px;
}
.section-alt { background: var(--bg-soft); }
.section-intro {
  font-size: 1.08rem;
  color: var(--ink-700);
  max-width: 640px;
  margin-bottom: 36px;
}

/* HERO */
.hero {
  padding: 36px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, var(--sage-50), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 80%, var(--paper-warm), transparent 65%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 18px; }
.hero h1 {
  margin-bottom: 18px;
  color: var(--ink-900);
}
.hero .lead {
  font-size: 1.18rem;
  color: var(--ink-700);
  max-width: 540px;
  margin-bottom: 14px;
}
.hero .philo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--sage-700);
  max-width: 540px;
  margin-bottom: 28px;
  border-left: 3px solid var(--sage-500);
  padding-left: 14px;
}
.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-globe {
  position: relative;
  display: flex; justify-content: flex-end; align-items: center;
  padding-right: 4%;
}
.hero-globe img {
  width: 100%;
  height: auto;            /* override the height attribute so aspect ratio is preserved */
  max-width: 420px;
  filter: drop-shadow(0 22px 32px rgba(26, 44, 59, .22))
          drop-shadow(0 6px 10px rgba(26, 44, 59, .14));
  animation: floaty 8s ease-in-out infinite;
}
html[data-theme="dark"] .hero-globe img {
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .55))
          drop-shadow(0 6px 12px rgba(0, 0, 0, .35));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--ink-800);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-900); }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-300);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-500); }
.btn-secondary {
  background: var(--sage-50);
  color: var(--sage-700);
  border-color: var(--sage-300);
}
.btn-secondary:hover { background: var(--sage-100); }

/* SOBRE / ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

/* "Com citar" — bloc desplegable d'atribució amb exemples copia-i-enganxa */
.cite-block {
  margin-top: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.cite-block > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--sage-700);
  padding: 6px 0;
  user-select: none;
}
.cite-block > summary::-webkit-details-marker { display: none; }
.cite-block > summary::before {
  content: "+";
  display: inline-block;
  width: 20px; height: 20px;
  line-height: 18px;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .15s ease;
}
.cite-block[open] > summary::before { content: "−"; }
.cite-block > summary:hover { text-decoration: underline; }
.cite-block > summary:focus-visible {
  outline: 2px solid var(--sage-700);
  outline-offset: 2px;
  border-radius: 4px;
}
.cite-body {
  margin-top: 14px;
  padding: 18px 22px;
  background: var(--bg-card);
  border-left: 3px solid var(--sage-700);
  border-radius: 4px;
}
.cite-body > p:first-child {
  font-size: .92rem;
  color: var(--ink-700);
  margin: 0 0 14px;
  line-height: 1.55;
}
.cite-list {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  align-items: baseline;
}
.cite-list dt {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-500, var(--ink-700));
  font-weight: 600;
}
.cite-list dd {
  margin: 0;
}
.cite-list code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .9rem;
  background: var(--ink-100);
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--ink-900);
  user-select: all;
}
.cite-note {
  font-size: .85rem !important;
  color: var(--ink-500, var(--ink-700)) !important;
  font-style: italic;
  margin: 6px 0 0 !important;
}
@media (max-width: 720px) {
  .cite-list { grid-template-columns: 1fr; gap: 4px; }
  .cite-list dt { margin-top: 8px; }
}

/* "Què aporta" — bullets en grid 2 columnes */
.aporta-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.aporta-list li {
  position: relative;
  padding: 16px 18px 16px 36px;
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.aporta-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-700);
}
.aporta-list h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.aporta-list p {
  font-size: .92rem;
  color: var(--ink-700);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .aporta-list { grid-template-columns: 1fr; }
}

/* "Per a premsa" — card amb text + acccions */
.premsa-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.premsa-text .eyebrow { margin-bottom: 8px; }
.premsa-text h2 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.premsa-text p {
  font-size: .95rem;
  color: var(--ink-700);
  margin: 0;
  line-height: 1.55;
}
.premsa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.premsa-actions .btn {
  text-align: center;
  white-space: normal;
}
@media (max-width: 720px) {
  .premsa-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.about-card p {
  font-size: .92rem;
  color: var(--ink-700);
  margin: 0;
}
.about-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--sage-50);
  color: var(--sage-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* NOVETATS — log d'iteracions pròpies */
.novetats-feed {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}
.novetat {
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
}
.novetat-image {
  display: block;
  background: var(--ink-900);
  text-decoration: none;
  overflow: hidden;
}
.novetat-image:hover { text-decoration: none; }
.novetat-image img {
  width: 100%; height: auto;
  display: block;
  transition: transform .5s ease;
}
.novetat-image:hover img { transform: scale(1.02); }

.novetat-content {
  padding: 28px 32px 32px;
}
.novetat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 14px;
}
.novetat-meta time {
  color: var(--sage-700);
  font-weight: 700;
}
.novetat-meta .novetat-license {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage-50);
  color: var(--sage-700);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .7rem;
}
.novetat-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.novetat-lead {
  font-size: 1.04rem;
  color: var(--ink-700);
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-style: italic;
}
/* Fitxa — taula compacta clau:valor visible per defecte */
.novetat-fitxa {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-100);
}
.novetat-fitxa > div {
  display: grid;
  grid-template-columns: minmax(110px, 30%) 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
}
.novetat-fitxa dt {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0;
  align-self: center;
}
.novetat-fitxa dd {
  font-size: .95rem;
  color: var(--ink-800);
  margin: 0;
  align-self: center;
}

/* Gallery de variants amb descàrrega PNG + WebP */
.novetat-gallery-title {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin: 28px 0 6px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-100);
}

/* Sub-grup dins la galeria (ex: «Variants artístiques») */
.variant-group-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  margin: 22px 0 8px;
}

/* Plantilles base — bloc plegable al final de la galeria */
.variant-group-templates {
  margin-top: 28px;
  padding: 4px 0;
}
.variant-group-templates > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-700);
  padding: 8px 0;
  user-select: none;
}
.variant-group-templates > summary::-webkit-details-marker { display: none; }
.variant-group-templates > summary::before {
  content: "+";
  display: inline-block;
  width: 22px; height: 22px;
  line-height: 20px;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  font-size: .95rem;
}
.variant-group-templates[open] > summary::before { content: "−"; }
.variant-group-templates > summary:hover { text-decoration: underline; }
.variant-group-templates .variant-group-intro {
  font-size: .92rem;
  color: var(--ink-700);
  margin: 4px 0 14px;
  line-height: 1.5;
}
.novetat-gallery-intro {
  font-size: .9rem;
  color: var(--ink-600);
  margin: 0 0 16px;
}
.novetat-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 8px;
}
.novetat-gallery-item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.novetat-gallery-item:hover {
  border-color: var(--sage-300);
  box-shadow: var(--shadow-sm);
}
.novetat-gallery-item > a {
  display: block;
  background: var(--ink-900);
  text-decoration: none;
  overflow: hidden;
}
.novetat-gallery-item > a:hover { text-decoration: none; }
.novetat-gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}
.novetat-gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}
.variant-name {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-800);
  text-align: center;
}
.variant-downloads {
  display: flex;
  gap: 6px;
}
.btn-dl {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  color: var(--ink-700);
  background: transparent;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-dl:hover {
  background: var(--sage-50);
  border-color: var(--sage-500);
  color: var(--sage-700);
  text-decoration: none;
}

/* Plegable "Veure detall tècnic" */
.novetat-more {
  margin-top: 22px;
  border-top: 0;
}
.novetat-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-800);
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}
.novetat-more > summary::-webkit-details-marker { display: none; }
.novetat-more > summary::before {
  content: "";
  width: 14px;
  height: 14px;
  background: none;
  border: 0;
  flex: 0 0 14px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  background-color: currentColor;
  transition: transform .2s ease;
}
.novetat-more[open] > summary::before { transform: rotate(180deg); }
.novetat-more > summary:hover {
  background: var(--sage-50);
  border-color: var(--sage-300);
  color: var(--sage-700);
}
.novetat-more[open] > summary {
  background: var(--sage-50);
  border-color: var(--sage-300);
  color: var(--sage-700);
}
.novetat-more > .novetat-body {
  margin-top: 20px;
  padding-top: 4px;
  animation: novetatExpand .25s ease-out;
}
.novetat-collapse {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 20px 0 4px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.novetat-more[open] > .novetat-collapse { display: inline-flex; }
.novetat-collapse::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='18 15 12 9 6 15'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='18 15 12 9 6 15'/></svg>") center/contain no-repeat;
  background-color: currentColor;
}
.novetat-collapse:hover {
  background: var(--bg-soft);
  border-color: var(--ink-300);
  color: var(--ink-800);
}
@keyframes novetatExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.novetat-body {
  font-size: .95rem;
  color: var(--ink-700);
  line-height: 1.65;
}
.novetat-body h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin: 24px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}
.novetat-body h4:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.novetat-body p { margin: 0 0 10px; }
.novetat-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.novetat-body li { margin-bottom: 6px; }
.novetat-body strong { color: var(--ink-900); }
.novetat-body code {
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: .88em;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink-800);
}

/* Subsection headings (used inside Antecedents to split historical
   artifacts from modern-projection demos). */
.subsection-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ink-900);
  margin: 60px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage-500);
  display: inline-block;
}
.subsection-title:first-of-type { margin-top: 36px; }
.subsection-intro {
  font-size: 1rem;
  color: var(--ink-700);
  max-width: 720px;
  margin: 0 0 4px;
}
.subsection-intro em {
  font-style: italic;
  color: var(--sage-700);
  font-weight: 500;
}

/* INICIATIVES — chronological cards (newest first) */
.timeline {
  position: relative;
  margin-top: 36px;
  display: grid;
  gap: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 90px;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0,
    var(--sage-300) 8%,
    var(--sage-300) 92%,
    transparent 100%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  position: relative;
}
.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-700);
  text-align: right;
  /* Text comença més avall perquè quedi clarament per sota del punt
     de la línia temporal i no s.encavalqui. */
  padding-top: 36px;
  position: relative;
}
.timeline-year::after {
  content: "";
  position: absolute;
  /* Punt a la part superior, marca el moment a la línia temporal;
     deixa ~12px de respir abans del text que comença a 36px. */
  top: 14px; right: -7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sage-500);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 220px 1fr;
}
.timeline-card-image {
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.timeline-card-image:hover { text-decoration: none; }
.timeline-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.timeline-card-image:hover img {
  transform: scale(1.04);
}
.timeline-card-image.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      var(--sage-50) 0 12px,
      var(--paper-soft) 12px 24px);
  color: var(--ink-500);
  font-size: .82rem;
  letter-spacing: .04em;
  text-align: center;
  padding: 24px;
}
.timeline-card-body {
  padding: 22px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.timeline-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0;
  color: var(--ink-900);
}
.timeline-author {
  font-size: .85rem;
  color: var(--sage-700);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
}
.timeline-card-body p {
  font-size: .95rem;
  color: var(--ink-700);
  margin: 4px 0 0;
}
.timeline-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.timeline-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--sage-50);
  color: var(--sage-700);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.timeline-tag.tag-warn { background: #fce8d8; color: #8a4a16; }

/* CONFIGURACIÓ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.setting-card {
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.setting-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}
.setting-card p {
  font-size: .85rem;
  color: var(--ink-600);
  margin: 0;
}
.setting-controls {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 3px;
  flex-wrap: wrap;
}
.seg-btn {
  border: 0; background: transparent;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-600);
  letter-spacing: .03em;
}
.seg-btn.is-active {
  background: var(--ink-800);
  color: var(--paper);
}
.seg-btn:disabled {
  opacity: .35; cursor: not-allowed;
}
.seg-btn-more {
  font-size: 1rem;
  padding: 5px 12px;
  line-height: 1;
}

/* FOOTER */
.site-footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-100);
  padding: 40px 0 20px;
  color: var(--ink-700);
}
.footer-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink-200);
}
.footer-brand {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink-900);
  font-weight: 700;
}
.footer-brand span {
  font-size: .9rem;
  color: var(--ink-600);
  max-width: 320px;
}
.footer-links, .footer-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .92rem;
}
.footer-links h4, .footer-meta h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
  margin: 0 0 8px;
}
.footer-links a, .footer-meta a {
  color: var(--ink-700);
  font-size: .92rem;
}
.footer-legal {
  padding-top: 18px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
}
.footer-legal-links {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
}
.footer-legal-link {
  border: 0; background: transparent;
  font: inherit;
  font-size: .82rem;
  color: var(--ink-700);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--sage-500);
  text-underline-offset: 3px;
}
.footer-legal-link:hover { color: var(--ink-900); text-decoration-thickness: 2px; }
.footer-sep { color: var(--ink-300); }
.footer-rights { color: var(--ink-500); margin: 0; }

/* Wrapper unificat dels badges (XKNO + NDF). Apilats a mòbil, en
   paral·lel a desktop. Patró comú a tots els projectes XKNO. */
.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 8px;
}
@media (min-width: 768px) {
  .footer-badges { flex-direction: row; align-items: stretch; }
  .footer-badges > * { flex: 1 1 0; }
}

/* XKNO + NDF: mateixa estructura visual (img 56x56 + text en 2-3 línies). */
.xkno-link, .ndf-seal-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.xkno-link { padding-left: 26px; }  /* moure icon XKNO 10px a la dreta */
.xkno-link:hover, .ndf-seal-badge:hover {
  border-color: var(--sage-300);
  background: var(--sage-50);
  text-decoration: none;
}
.xkno-link picture { display: contents; }
.xkno-link img, .ndf-seal-badge img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  object-fit: contain;
}
.xkno-link p, .xkno-link > span, .ndf-seal-badge > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-600);
}
.xkno-link strong, .ndf-seal-badge strong {
  color: var(--ink-900);
  font-weight: 700;
}
.ndf-seal-badge .ndf-line { opacity: 0.85; }

/* MODALS (legal kit) */
.dl-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.dl-modal[hidden] { display: none; }
.dl-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 44, 59, .58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: dlFade .18s ease;
}
.dl-modal-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 22px 22px;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  animation: dlIn .22s ease-out;
}
.legal-modal-card { max-width: 680px; }
.dl-modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px;
  border: 0; background: transparent;
  color: var(--ink-700);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
}
.dl-modal-close:hover, .dl-modal-close:focus-visible {
  background: var(--bg-soft); color: var(--ink-900); outline: 0;
}

.modal-head {
  position: sticky;
  top: -26px;       /* exactly the card's padding-top so head clamps at edge */
  margin: -26px -22px 16px;
  padding: 22px 22px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
  /* Cobertura plena per evitar veure text passant per darrere quan scrolls */
  box-shadow: 0 6px 12px -8px rgba(0,0,0,.18);
  z-index: 2;
}
/* Tema fosc: l'ombra ha de ser una mica més marcada perquè es vegi */
html[data-theme="dark"] .modal-head {
  box-shadow: 0 8px 16px -8px rgba(0,0,0,.55);
}
.modal-head h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
  color: var(--ink-900);
  padding-right: 40px;
}

.legal-modal-body { color: var(--ink-700); font-size: .94rem; line-height: 1.6; }
.legal-modal-body p { margin: 0 0 12px; }
.legal-modal-body h4 {
  margin: 18px 0 6px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 700;
  color: var(--ink-900); letter-spacing: .01em;
}
.legal-modal-body ul, .legal-modal-body ol { margin: 0 0 12px; padding-left: 22px; }
.legal-modal-body li { margin-bottom: 6px; }
.legal-modal-body a {
  color: var(--ink-800);
  text-decoration: underline;
  text-decoration-color: var(--sage-600);
  text-underline-offset: 3px;
}
.legal-modal-body strong { color: var(--ink-900); }
.legal-modal-updated {
  margin: 18px 0 14px; padding-top: 12px;
  border-top: 1px solid var(--ink-200);
  font-size: .78rem; font-style: italic; color: var(--ink-500);
}

@keyframes dlFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes dlIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  /* Mida tipogràfica unificada al mòbil: bloquegem els clamps a la mida
     mínima perquè portrait i landscape vegin EXACTAMENT els mateixos
     tamanys (sense que el clamp escali amb la viewport width). */
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .hero .lead { font-size: 1.05rem; }
  .lead { font-size: 1.05rem; }

  .hero { padding: 28px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-globe { order: -1; justify-content: center; padding-right: 0; }
  .hero-globe img { max-width: 200px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .lead { margin-bottom: 10px; }
  .hero .philo { margin-bottom: 18px; }
  .section { padding: 60px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .novetat-content { padding: 22px 22px 26px; }
  .novetat-content h3 { font-size: 1.35rem; }
  .novetat-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .novetat-gallery { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .timeline-item { grid-template-columns: 78px 1fr; gap: 12px; }
  .timeline-year {
    text-align: left;
    padding-left: 28px;
    padding-top: 14px;
    font-size: 1.25rem;
    line-height: 1.1;
    white-space: normal;       /* wraps "des. 1972" -> two lines */
  }
  .timeline-year::after { left: 6px; right: auto; top: 18px; width: 12px; height: 12px; }
  .timeline-card { grid-template-columns: 1fr; }
  .timeline-card-image { min-height: 160px; }
}
@media (max-width: 600px) {
  /* Push the lang switch to the right edge; the hamburger sits to its right. */
  .lang-switch { margin-left: auto; }
  .header-row { gap: 12px; position: relative; }
  .nav-toggle { display: inline-flex; }

  /* Footer badges (XKNO + NDF): unifiquem a mòbil — mateixa mida d'icona. */
  .xkno-link, .ndf-seal-badge {
    padding: 14px 16px;
    gap: 14px;
  }
  .xkno-link { padding-left: 26px; }
  .xkno-link img, .ndf-seal-badge img {
    width: 56px; height: 56px;
    flex: 0 0 56px;
  }

  /* Mobile nav: a dropdown panel revealed when the hamburger is open */
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100);
    padding: 8px 20px 16px;
    margin: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
    z-index: 49;
  }
  .site-header.is-nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-100);
    font-size: 1rem;
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:hover { border-bottom-color: var(--ink-100); }

  /* Al dropdown mòbil del hamburger sí mostrem el text «Configuració»
     i amaguem l'icona engranatge (que només té sentit en barra horitzontal). */
  .nav-settings { padding: 12px 0 !important; }
  .nav-settings .nav-settings-label { display: inline; }
  .nav-settings .nav-settings-icon { display: none; }

  .splash-seal { width: 170px; height: 170px; }
  .modal-head { top: -1.2rem; }
}

/* Accessibility — focus rings */
:focus-visible {
  outline: 3px solid var(--sage-500);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
