#jurawelt { scroll-margin-top: 8rem; }
#jurawelt .publication-inner {
  --column-gap: clamp(20px, 3vw, 44px);
}
.company-publications #jurawelt h2 { margin: 0 0 5px; }
#jurawelt .publication-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--column-gap);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
#jurawelt .publication-articles li { margin: 0; padding: 0; }
#jurawelt .publication-articles a {
  display: block;
  color: #193c58;
  text-decoration: none;
}
#jurawelt .publication-articles .publication-tile {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
}
#jurawelt .publication-articles strong { font-size: 1.125rem; line-height: 1.4; }
#jurawelt .publication-articles a:hover strong { text-decoration: underline; text-underline-offset: .18em; }
#jurawelt .publication-articles a:focus-visible { outline: 2px solid #245a80; outline-offset: 4px; }
@media (max-width: 700px) {
  #jurawelt .publication-inner > p { margin-top: 10px; }
  #jurawelt .publication-articles { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
}

@property --gacp-light {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --gmp-light {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --gdp-light {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* Match the pictogram ink and paper in the corresponding publication SVG. */
#jurawelt .publication-tile[src*="/gacp-kachel"],
#kontakt .company-origin-gears > g:has([data-teeth="16"]) {
  --ink: #205b48;
  --paper: #e7f2ec;
  --pulse: var(--gacp-light, 0);
}
#jurawelt .publication-tile[src*="/gmp-kachel"],
#kontakt .company-origin-gears > g:has([data-teeth="28"]) {
  --ink: #244c71;
  --paper: #e9eef4;
  --pulse: var(--gmp-light, 0);
}
#jurawelt .publication-tile[src*="/gdp-kachel"],
#kontakt .company-origin-gears > g:has([data-teeth="20"]) {
  --ink: #384a73;
  --paper: #edf0f8;
  --pulse: var(--gdp-light, 0);
}

#jurawelt .publication-tile {
  color: var(--ink);
  box-shadow:
    0 0 0 1.5px rgb(from currentColor r g b / calc(.55 * var(--pulse))),
    0 0 12px 2px rgb(from currentColor r g b / calc(.26 * var(--pulse)));
}
html body .company-page #kontakt .company-origin-gears {
  opacity: 1;
}
#kontakt .company-origin-gears > g {
  animation: none;
  color: var(--ink);
  /* The paper-coloured rim separates the dark ink from the graphite ground.
     Lengths inside the SVG filter are in artwork coordinates. */
  filter:
    drop-shadow(0 0 4px rgb(from var(--paper) r g b / calc(.42 + .32 * var(--pulse))))
    drop-shadow(0 0 16px rgb(from currentColor r g b / calc(.85 * var(--pulse))));
}
#kontakt .company-origin-gear > path[stroke="currentColor"] {
  stroke-width: 10;
}

/* A single clock above both sections also drives the reparented mobile gears. */
@media (prefers-reduced-motion: no-preference) {
  .company-page { animation: publication-pairs 18s ease-in-out infinite; }
}
@keyframes publication-pairs {
  0%, 33.333%, 66.667%, 100% { --gacp-light: 0; --gmp-light: 0; --gdp-light: 0; }
  16.667% { --gacp-light: 1; --gmp-light: 0; --gdp-light: 0; }
  50%     { --gacp-light: 0; --gmp-light: 1; --gdp-light: 0; }
  83.333% { --gacp-light: 0; --gmp-light: 0; --gdp-light: 1; }
}

/* Icon contours use the same phase as the frame and the matching wheel. */
#jurawelt .publication-articles a { position: relative; }
#jurawelt .publication-articles a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 785 / 427;
  pointer-events: none;
  background: var(--symbol-outline) center / contain no-repeat;
  opacity: var(--symbol-light, 0);
  filter: drop-shadow(0 0 1px var(--symbol-ink)) drop-shadow(0 0 2.5px var(--symbol-ink));
}
#jurawelt a:has(> .publication-tile[src*="/gacp-kachel"]) {
  --symbol-ink: #205b48;
  --symbol-light: var(--gacp-light, 0);
  --symbol-outline: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20785%20427.0%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%22488%22%20y%3D%22117.0%22%20width%3D%22233%22%20height%3D%22193%22%20viewBox%3D%220%200%20512%20512%22%20fill%3D%22none%22%20overflow%3D%22visible%22%20stroke%3D%22%23205b48%22%20stroke-width%3D%228%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M64%2096H0c0%20123.7%20100.3%20224%20224%20224v144c0%208.8%207.2%2016%2016%2016h32c8.8%200%2016-7.2%2016-16V320C288%20196.3%20187.7%2096%2064%2096zm384-64c-84.2%200-157.4%2046.5-195.7%20115.2%2027.7%2030.2%2048.2%2066.9%2059%20107.6C424%20243.1%20512%20147.9%20512%2032h-64z%22%2F%3E%3C%2Fsvg%3E%3C%2Fsvg%3E");
}
#jurawelt a:has(> .publication-tile[src*="/gmp-kachel"]) {
  --symbol-ink: #244c71;
  --symbol-light: var(--gmp-light, 0);
  --symbol-outline: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20785%20427.0%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%22488%22%20y%3D%22117.0%22%20width%3D%22233%22%20height%3D%22193%22%20viewBox%3D%220%200%20640%20512%22%20fill%3D%22none%22%20overflow%3D%22visible%22%20stroke%3D%22%23244c71%22%20stroke-width%3D%228%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M512.1%20191l-8.2%2014.3c-3%205.3-9.4%207.5-15.1%205.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6%200-11.2-4.3-12.2-10.3-2-12-2.1-24.6%200-37.1%201-6%206.2-10.4%2012.2-10.4h16.5c3.6-10.1%209-19.4%2015.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9%202.8-15.7%209.5-7.9%2020.4-14.2%2032.1-18.6%205.7-2.1%2012.1.1%2015.1%205.4l8.2%2014.3c10.5-1.9%2021.2-1.9%2031.7%200L552%206.3c3-5.3%209.4-7.5%2015.1-5.4%2011.8%204.4%2022.6%2010.7%2032.1%2018.6%204.6%203.8%205.8%2010.5%202.8%2015.7l-8.2%2014.3c6.9%208%2012.3%2017.3%2015.9%2027.4h16.5c6%200%2011.2%204.3%2012.2%2010.3%202%2012%202.1%2024.6%200%2037.1-1%206-6.2%2010.4-12.2%2010.4h-16.5c-3.6%2010.1-9%2019.4-15.9%2027.4l8.2%2014.3c3%205.2%201.9%2011.9-2.8%2015.7-9.5%207.9-20.4%2014.2-32.1%2018.6-5.7%202.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4%201.9-21.2%201.9-31.7%200zm-10.5-58.8c38.5%2029.6%2082.4-14.3%2052.8-52.8-38.5-29.7-82.4%2014.3-52.8%2052.8zM386.3%20286.1l33.7%2016.8c10.1%205.8%2014.5%2018.1%2010.5%2029.1-8.9%2024.2-26.4%2046.4-42.6%2065.8-7.4%208.9-20.2%2011.1-30.3%205.3l-29.1-16.8c-16%2013.7-34.6%2024.6-54.9%2031.7v33.6c0%2011.6-8.3%2021.6-19.7%2023.6-24.6%204.2-50.4%204.4-75.9%200-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74%20403c-10%205.8-22.9%203.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2%2010.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4%200-63.4L12%20205.8c-10.1-5.8-14.6-18.1-10.5-29%208.9-24.2%2026-46.4%2042.2-65.8%207.4-8.9%2020.2-11.1%2030.3-5.3l29.1%2016.8c16-13.7%2034.6-24.6%2054.9-31.7V57.1c0-11.5%208.2-21.5%2019.6-23.5%2024.6-4.2%2050.5-4.4%2076-.1%2011.5%202%2020%2011.9%2020%2023.6v33.6c20.3%207.2%2038.9%2018%2054.9%2031.7l29.1-16.8c10-5.8%2022.9-3.6%2030.3%205.3%2016.2%2019.4%2033.2%2041.6%2042.1%2065.8%204%2010.9.1%2023.2-10%2029.1l-33.7%2016.8c3.9%2021%203.9%2042.5%200%2063.5zm-117.6%2021.1c59.2-77-28.7-164.9-105.7-105.7-59.2%2077%2028.7%20164.9%20105.7%20105.7zm243.4%20182.7l-8.2%2014.3c-3%205.3-9.4%207.5-15.1%205.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6%200-11.2-4.3-12.2-10.3-2-12-2.1-24.6%200-37.1%201-6%206.2-10.4%2012.2-10.4h16.5c3.6-10.1%209-19.4%2015.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9%202.8-15.7%209.5-7.9%2020.4-14.2%2032.1-18.6%205.7-2.1%2012.1.1%2015.1%205.4l8.2%2014.3c10.5-1.9%2021.2-1.9%2031.7%200l8.2-14.3c3-5.3%209.4-7.5%2015.1-5.4%2011.8%204.4%2022.6%2010.7%2032.1%2018.6%204.6%203.8%205.8%2010.5%202.8%2015.7l-8.2%2014.3c6.9%208%2012.3%2017.3%2015.9%2027.4h16.5c6%200%2011.2%204.3%2012.2%2010.3%202%2012%202.1%2024.6%200%2037.1-1%206-6.2%2010.4-12.2%2010.4h-16.5c-3.6%2010.1-9%2019.4-15.9%2027.4l8.2%2014.3c3%205.2%201.9%2011.9-2.8%2015.7-9.5%207.9-20.4%2014.2-32.1%2018.6-5.7%202.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4%201.9-21.2%201.9-31.7%200zM501.6%20431c38.5%2029.6%2082.4-14.3%2052.8-52.8-38.5-29.6-82.4%2014.3-52.8%2052.8z%22%2F%3E%3C%2Fsvg%3E%3C%2Fsvg%3E");
}
#jurawelt a:has(> .publication-tile[src*="/gdp-kachel"]) {
  --symbol-ink: #384a73;
  --symbol-light: var(--gdp-light, 0);
  --symbol-outline: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20785%20427.0%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%22488%22%20y%3D%22117.0%22%20width%3D%22233%22%20height%3D%22193%22%20viewBox%3D%220%200%20576%20512%22%20fill%3D%22none%22%20overflow%3D%22visible%22%20stroke%3D%22%23384a73%22%20stroke-width%3D%228%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M159.88%2C175.82h64v64a16%2C16%2C0%2C0%2C0%2C16%2C16h64a16%2C16%2C0%2C0%2C0%2C16-16v-64h64a16%2C16%2C0%2C0%2C0%2C16-16v-64a16%2C16%2C0%2C0%2C0-16-16h-64v-64a16%2C16%2C0%2C0%2C0-16-16h-64a16%2C16%2C0%2C0%2C0-16%2C16v64h-64a16%2C16%2C0%2C0%2C0-16%2C16v64A16%2C16%2C0%2C0%2C0%2C159.88%2C175.82ZM568.07%2C336.13a39.91%2C39.91%2C0%2C0%2C0-55.93-8.47L392.47%2C415.84H271.86a16%2C16%2C0%2C0%2C1%2C0-32H350.1c16%2C0%2C30.75-10.87%2C33.37-26.61a32.06%2C32.06%2C0%2C0%2C0-31.62-37.38h-160a117.7%2C117.7%2C0%2C0%2C0-74.12%2C26.25l-46.5%2C37.74H15.87a16.11%2C16.11%2C0%2C0%2C0-16%2C16v96a16.11%2C16.11%2C0%2C0%2C0%2C16%2C16h347a104.8%2C104.8%2C0%2C0%2C0%2C61.7-20.27L559.6%2C392A40%2C40%2C0%2C0%2C0%2C568.07%2C336.13Z%22%2F%3E%3C%2Fsvg%3E%3C%2Fsvg%3E");
}
