/* Sakopsim.lv: the bag roll. Fonts are declared in theme.json. */


:root {
  --sack: #1d3fc4;
  --sack-fold: #122a8a;
  --sack-deep: #0d1f66;
  --ink: #f2f4f8;
  --ink-soft: #c9d4ff;
  --ink-faint: #b8c6f6;
  --glove: #d7f23a;
  --glove-press: #c3dd25;

  --font: "Archivo", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
  --knot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12.5c-3.6 0-6.5-2.4-6.5-5.4 0-1.6 1.6-2.4 3-1.6 1.5.9 2.6 3 3.5 5 .9-2 2-4.1 3.5-5 1.4-.8 3 0 3 1.6 0 3-2.9 5.4-6.5 5.4Z'/%3E%3Cpath d='M10.2 12.6 9 20.5h6l-1.2-7.9'/%3E%3C/svg%3E");
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--sack);
  /* polyethylene: broad soft folds, no hard bands */
  background-image:
    radial-gradient(120% 60% at 15% 0%, rgb(255 255 255 / 0.08), transparent 60%),
    linear-gradient(172deg, transparent 0 38%, rgb(255 255 255 / 0.035) 44%, transparent 52%),
    linear-gradient(8deg, transparent 0 62%, rgb(8 20 80 / 0.18) 70%, transparent 80%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* crease grain sits on a fixed layer so scrolling never repaints it */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--glove); color: var(--sack-deep); }

html { scrollbar-color: var(--ink-faint) var(--sack-fold); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--sack-fold); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 6px; border: 3px solid var(--sack-fold); }

:focus-visible { outline: 3px solid var(--glove); outline-offset: 3px; border-radius: 2px; }
.sack :focus-visible, .award__tag :focus-visible { outline-color: var(--sack-deep); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link.screen-reader-text:focus { background: var(--glove); color: var(--sack-deep); font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- print on plastic ---------- */
.h2, .hero__title, .story__quote p, .foot__sign, .kit__name, .finds li, .tally__n, .pressm-item__outlet, .btdon-bank__heading {
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  word-spacing: 0.1em;
  /* one-ink flexo: a hair of spread around each stroke */
  text-shadow: 0 0 0.6px rgb(242 244 248 / 0.55);
}

.h2 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1;
  text-wrap: balance;
  max-width: 18ch;
}

.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}

.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- buttons ---------- */
.btn, .wp-block-button .wp-block-button__link, .raplace-submit, .raplace-locate, .raplace-pick, .btdon-link, .btdon-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.4rem;
  font: inherit; font-weight: 800; font-stretch: 85%; font-size: 1.0625rem;
  letter-spacing: 0.01em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:active, .wp-block-button .wp-block-button__link:active, .raplace-submit:active, .raplace-locate:active, .raplace-pick:active, .btdon-link:active, .btdon-copy:active { transform: translateY(1px) scale(0.985); }
.btn--action, .wp-block-button:not(.is-style-ghost) .wp-block-button__link, .raplace-submit, .btdon-link {
  background: var(--glove); color: var(--sack-deep);
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.6);
}
.btn--action:hover, .wp-block-button:not(.is-style-ghost) .wp-block-button__link:hover, .raplace-submit:hover, .btdon-link:hover { background: var(--glove-press); box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.7); }
.btn--ghost, .wp-block-button.is-style-ghost .wp-block-button__link, .raplace-locate, .raplace-pick, .btdon-copy { background: transparent; color: var(--ink); border-color: rgb(242 244 248 / 0.55); }
.btn--ghost:hover, .wp-block-button.is-style-ghost .wp-block-button__link:hover, .btdon-copy:hover { border-color: var(--ink); background: rgb(242 244 248 / 0.08); }
.btn--sm, .wp-block-button.is-small .wp-block-button__link, .raplace-locate, .raplace-pick { min-height: 42px; padding: 0 1rem; font-size: 0.9375rem; }
.btn--wide, .raplace-submit { width: 100%; }
.btn i { font-size: 1.2em; }

/* the one next step at the end of every bag */
.next { margin-top: clamp(2.5rem, 5vw, 4rem); }
.next a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.125rem; text-decoration: none;
  border-bottom: 2px solid var(--glove); padding-bottom: 2px;
}
.next a::after {
  content: "\e03e"; font-family: "Phosphor-Bold"; font-weight: normal; line-height: 1;
  color: var(--glove); transition: transform 200ms var(--ease-out);
}
.next a[target="_blank"]::after { content: "\e092"; }
.next a:hover::after { transform: translateY(3px); }
.next a[target="_blank"]:hover::after { transform: translate(2px, -2px); }

/* ---------- nav ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 30; }
.nav {
  background: rgb(18 42 138 / 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgb(242 244 248 / 0.1);
}
.nav__inner {
  max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 2rem;
}
.wordmark { margin: 0; }
.wordmark a {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-weight: 900; font-stretch: 70%; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.01em;
}
.wordmark a::before { content: ""; width: 26px; height: 26px; background: var(--ink); -webkit-mask: var(--knot) center / contain no-repeat; mask: var(--knot) center / contain no-repeat; }
.nav__links { margin-left: auto; }
.nav__links .wp-block-navigation__container { gap: 1.75rem; }
.nav__links a, .nav__links .wp-block-navigation-item__content { text-decoration: none; font-weight: 600; font-size: 1rem; opacity: 0.85; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--glove); text-decoration-thickness: 2px; }
.social-icons { display: flex; gap: 0.25rem; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); font-size: 1.35rem; opacity: 0.85; }
.social-icons a:hover { opacity: 1; background: rgb(242 244 248 / 0.08); }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); }

@media (max-width: 900px) {
  .nav__inner .nav__links, .nav__inner .nav__social { display: none; }
  .nav__inner .nav__cta { margin-left: auto; }
}

/* ---------- bag sections + perforation ---------- */
.bag { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem); }

.bag:not(.bag--end)::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background:
    radial-gradient(circle at 7px 7px, var(--sack-fold) 3.2px, transparent 3.6px) 0 0 / 22px 14px repeat-x;
  opacity: 0.9;
}
.bag:not(.bag--end)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, rgb(242 244 248 / 0.35) 0 8px, transparent 8px 22px);
  background-position: 11px 0;
}

/* alternate bags sit one fold deeper so the roll reads as separate sheets */
.story, .award, .report, .press { background: linear-gradient(180deg, rgb(13 31 102 / 0.28), rgb(13 31 102 / 0.12)); }

/* ---------- creased photo windows ---------- */
.wp-block-image:not(.is-style-flat) {
  position: relative; margin: 0;
  transform: rotate(-1.2deg);
}
.wp-block-image:not(.is-style-flat) img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.85); }
.wp-block-image:has(figcaption)::after { display: none; }
.wp-block-image:not(.is-style-flat)::after {
  /* a fold catching the light across the print */
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.16) 47%, transparent 54%);
  mix-blend-mode: soft-light;
}
.wp-block-image.crease--right { transform: rotate(1.4deg); }
.wp-block-image figcaption { margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 5vw, 4.5rem); min-height: calc(100dvh - 68px); display: flex; align-items: center; }
.hero__social { margin-top: 1.25rem; margin-left: -0.6rem; }
.hero__social a { width: 44px; height: 44px; font-size: 1.5rem; color: var(--ink-soft); opacity: 1; }
.hero__social a:hover { color: var(--ink); background: rgb(242 244 248 / 0.08); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__title { line-height: 1; letter-spacing: -0.015em; }
.hero__num {
  display: block; font-size: clamp(7rem, 19vw, 15rem); line-height: 0.8;
  letter-spacing: -0.035em; margin-left: -0.04em;
}
.hero__line { display: block; font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1; }
.hero__sub { margin-top: 1.75rem; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.45; color: var(--ink-soft); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.wp-block-image.hero__photo { align-self: center; }
.hero__photo img { aspect-ratio: 4 / 5; object-position: 30% 50%; }

@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__inner { gap: 1.75rem; }
  .wp-block-image.hero__photo { order: -1; transform: rotate(-1deg); max-width: 520px; }
  .hero__photo img { aspect-ratio: 16 / 9; object-position: 30% 35%; }
  .hero__sub { margin-top: 1.25rem; }
  .hero__ctas { margin-top: 1.5rem; }
}

/* ---------- story ---------- */
.story__quote { margin: 0; padding: 0; border: 0; }
.story__quote p { font-size: clamp(2.75rem, 7.5vw, 6rem); line-height: 1; text-wrap: balance; max-width: 15ch; }
.story__quote cite { display: block; margin-top: 1.25rem; color: var(--ink-soft); font-size: 1rem; font-style: normal; }
.story__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: start;
}
.story__photo { max-width: 380px; justify-self: end; margin-top: -6rem; }
.story__photo img { aspect-ratio: 447 / 640; object-position: 50% 30%; }

.habits {
  padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 2px dashed rgb(242 244 248 / 0.3);
}
.habit { display: flex; gap: 0.9rem; padding: 1.5rem 1.5rem 0 0; }
.habit + .habit { padding-left: 1.5rem; border-left: 2px dashed rgb(242 244 248 / 0.3); }
.habit .icon { flex: none; font-size: 1.75rem; color: var(--ink); margin-top: 2px; }
.habit p { color: var(--ink-soft); }
.habit strong { color: var(--ink); display: block; }

@media (max-width: 820px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__photo { margin-top: 0; justify-self: start; max-width: 300px; }
  .habits { grid-template-columns: 1fr; }
  .habit, .habit + .habit { padding: 1.25rem 0; border-left: 0; }
  .habit + .habit { border-top: 2px dashed rgb(242 244 248 / 0.3); }
}

/* ---------- map ---------- */
.mapsec__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: start;
}
.mapsec .kmlpm-map {
  height: clamp(380px, 58vh, 560px); border-radius: var(--radius);
  background: var(--sack-fold);
  box-shadow: 0 0 0 2px rgb(242 244 248 / 0.25), 0 24px 50px -24px rgb(0 0 0 / 0.85);
}
.kmlpm-map__fallback { padding: 1rem; color: var(--ink-soft); }
.kmlpm-legend { gap: 1.5rem; font-weight: 600; }
.kmlpm-legend .knot-pin { filter: none; }
.kmlpm-legend .knot-pin svg { width: 22px; height: 22px; }
.kmlpm-legend .knot-pin svg + svg { margin-left: -12px; }
.note { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-faint); max-width: 60ch; }
.ownmap { transform: rotate(1.2deg); }
.ownmap img { aspect-ratio: 1196 / 796; }

.tally {
  list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px dashed rgb(242 244 248 / 0.3);
}
.tally li { padding: 1.25rem 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.25rem; }
.tally__when { font-weight: 700; font-size: 0.9375rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.tally__n { font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.tally__what { color: var(--ink-soft); max-width: 24ch; }

@media (max-width: 900px) {
  .mapsec__grid { grid-template-columns: 1fr; }
  .ownmap { max-width: 560px; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
}

/* leaflet in one ink: dark tiles screened onto the sack */
.leaflet-container { font-family: var(--font); background: var(--sack-fold); }
.kmlpm-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(0.9) contrast(1.5); }
.kmlpm-map .leaflet-tint-pane { mix-blend-mode: screen; pointer-events: none; }
.leaflet-control-attribution { background: rgb(13 31 102 / 0.8) !important; color: var(--ink-soft) !important; font-size: 11px; }
.leaflet-control-attribution a { color: var(--ink) !important; }
.leaflet-bar a { background: var(--sack-deep); color: var(--ink); border-color: rgb(242 244 248 / 0.2); }
.leaflet-bar a:hover { background: var(--sack-fold); color: var(--ink); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ink); color: var(--sack-deep); border-radius: var(--radius); box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.8); }
.leaflet-popup-content { margin: 12px 16px; font-size: 0.9375rem; line-height: 1.4; }
.leaflet-popup-content strong { display: block; font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: 1.125rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--sack-deep); }

.knot-pin { display: flex; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.6)); }
.knot-pin svg { width: 28px; height: 28px; fill: var(--glove); flex: none; }
.knot-pin svg + svg { margin-left: -14px; }
.kmlpm-marker.is-dropping > .knot-pin { animation: none; }
.kmlpm-marker.is-dropping .knot-pin svg { animation: tie 700ms var(--ease-out) both; }
.kmlpm-marker.is-dropping .knot-pin svg + svg { animation-delay: 140ms; }
@keyframes tie {
  0% { transform: scale(0.2) rotate(-70deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* ---------- finds strip (the only marquee) ---------- */
.finds {
  overflow: hidden; padding: 1.25rem 0;
  background: var(--sack-deep);
  border-block: 2px dashed rgb(242 244 248 / 0.25);
}
.finds__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; gap: 0; animation: roll 48s linear infinite; }
.finds li { font-size: clamp(1.5rem, 3vw, 2.25rem); white-space: nowrap; padding-inline: 1.25rem; }
.finds li::after {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-left: 2.5rem; vertical-align: 0.12em;
  border: 2px solid var(--ink-faint); border-radius: 50%;
}
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .finds__track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
}

/* ---------- award: a tie tag ---------- */
.award__grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.award__photo { max-width: 420px; }
.award__photo img { aspect-ratio: 473 / 640; object-position: 50% 40%; }
.award__tag {
  position: relative; padding: clamp(2rem, 4vw, 3rem);
  background: var(--ink); color: var(--sack-deep);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.85);
}
.award__tag::before {
  /* punched eyelet */
  content: ""; position: absolute; top: 22px; right: 58px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sack); box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.45), 0 0 0 4px #d9deec;
}
.award { overflow: hidden; }
.award__grid { position: relative; }
.award__grid::before {
  /* the tag's string, running up off the sheet */
  content: ""; position: absolute; pointer-events: none; z-index: 1;
  width: 160px; height: 120px; right: calc(var(--gutter) + 20px); top: -90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Cpath d='M150 4c-30 10-28 40-58 52s-40 18-46 58' fill='none' stroke='%23f2f4f8' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
@media (max-width: 820px) { .award__grid::before { display: none; } }
.award__tag .h2 { color: var(--sack-deep); text-shadow: none; }
.award__tag .lead, .award__tag p { color: #23306e; }
.award__tag p:not(.lead):not(.next) { margin-top: 1rem; max-width: 52ch; }
.award__tag .h2::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 1rem; background: var(--sack); -webkit-mask: var(--knot) center / contain no-repeat; mask: var(--knot) center / contain no-repeat; }
.award__tag .next a { color: var(--sack-deep); border-bottom-color: var(--sack); }
.award__tag .next a::after { color: var(--sack); }

@media (max-width: 820px) {
  .award__grid { grid-template-columns: 1fr; }
  .award__photo { max-width: 300px; }
}

/* ---------- kit ---------- */
.kit__items {
  padding: 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.5rem);
}
.kit__item { display: flex; align-items: center; gap: 1rem; }
.kit__obj {
  display: grid; place-items: center; width: clamp(84px, 10vw, 120px); aspect-ratio: 1;
  border: 2px solid var(--ink); border-radius: var(--radius);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  position: relative;
}
.kit__name { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }

.steps {
  padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: step;
}
.step { counter-increment: step; padding-top: 1rem; border-top: 2px solid rgb(242 244 248 / 0.5); position: relative; }
.step::before {
  content: counter(step); position: absolute; top: -0.9rem; left: 0;
  background: var(--sack); padding-right: 0.5rem;
  font-weight: 900; font-stretch: 62%; font-size: 1.25rem; color: var(--ink-faint);
}
.steps h3 { font-size: 1.375rem; font-weight: 800; font-stretch: 80%; line-height: 1.15; text-wrap: balance; }
.steps p { margin-top: 0.5rem; color: var(--ink-soft); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kit__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .kit__item { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .kit__obj { width: 100%; }
  .kit__name { font-size: 1.5rem; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- report: the visitor's sack ---------- */
.report__grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.report__photo { max-width: 360px; margin-top: 2.5rem; }
.report__photo img { aspect-ratio: 597 / 700; object-position: 50% 30%; }

.sack {
  position: relative;
  background: linear-gradient(170deg, #f6f7fb 0%, #e6eaf5 100%);
  color: var(--sack-deep);
  border-radius: 10px 10px var(--radius) var(--radius);
  padding: 3.25rem clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9), inset 0 -8px 20px -10px rgb(0 0 0 / 0.12);
}
.sack::before {
  /* gathered neck: pleats pulled into the knot */
  content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 70%; height: 46px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(13 31 102 / 0.07) 0 2px, transparent 2px 22px);
  mask-image: radial-gradient(60% 100% at 50% 0, #000 30%, transparent 75%);
}
.sack::after {
  /* contents settling at the bottom of the bag, rising as the visitor fills it */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 88%;
  border-radius: 0 0 var(--radius) var(--radius); pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(29 63 196 / 0.12));
  transform-origin: bottom; transform: scaleY(calc(var(--raplace-filled, 0) * 0.25));
  transition: transform 600ms var(--ease-out);
}
.sack > * { position: relative; z-index: 1; }
.sack__neck {
  position: absolute !important; top: -26px; left: 50%; translate: -50% 0;
  width: 56px; height: 56px; display: grid; place-items: center;
}
.sack__neck svg { width: 56px; height: 56px; fill: #f6f7fb; filter: drop-shadow(0 -2px 2px rgb(0 0 0 / 0.25)); }
.sack.is-sent .sack__neck svg { animation: tie 700ms var(--ease-out); }

.raplace-field { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.raplace-field label, .raplace-field legend { display: block; font-weight: 800; font-size: 1rem; margin-bottom: 0.5rem; padding: 0; }
.raplace-field input[type="text"], .raplace-field input[type="email"], .raplace-field input[type="file"], .raplace-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--sack-deep);
  background: #fff; border: 2px solid #6f7fc0; border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 50px;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.raplace-field textarea { resize: vertical; min-height: 110px; }
.raplace-field input[type="file"] { padding: 0.6rem 0.85rem; cursor: pointer; }
.raplace-field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; color: var(--sack-deep); background: transparent;
  border: 2px solid #6f7fc0; border-radius: var(--radius); padding: 0.35rem 0.8rem; margin-right: 0.75rem; cursor: pointer;
}
.raplace-field input::placeholder, .raplace-field textarea::placeholder { color: #55639a; }
.raplace-field input:focus, .raplace-field textarea:focus { outline: none; border-color: var(--sack); box-shadow: 0 0 0 3px rgb(29 63 196 / 0.25); }
.raplace-field input[aria-invalid="true"] { border-color: #b3261e; }
.raplace-field__row { display: flex; gap: 0.5rem; }
.raplace-field__row input { flex: 1; }
.raplace-locate::before { font-family: "Phosphor-Bold"; content: "\e1d6"; font-size: 1.2em; }
.raplace-pick::before { font-family: "Phosphor-Bold"; content: "\e31a"; font-size: 1.2em; }
.raplace-locate, .raplace-pick { color: var(--sack-deep); border-color: #6f7fc0; flex: none; }
.raplace-locate:hover, .raplace-pick:hover { border-color: var(--sack); background: rgb(29 63 196 / 0.06); }
.raplace-locate[aria-busy="true"], .raplace-pick[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.raplace-field__help { margin-top: 0.4rem; font-size: 0.875rem; color: #3b4a85; }
.raplace-field__error { margin-top: 0.4rem; font-size: 0.9375rem; font-weight: 700; color: #b3261e; }

.raplace-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.raplace-chips label { margin: 0; font-weight: 600; }
.raplace-chips input { position: absolute; opacity: 0; pointer-events: none; }
.raplace-chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 0.9rem;
  border: 2px solid #6f7fc0; border-radius: 999px; cursor: pointer; user-select: none;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.raplace-chips span:hover { border-color: var(--sack); }
.raplace-chips input:checked + span { background: var(--sack); border-color: var(--sack); color: var(--ink); }
.raplace-chips input:focus-visible + span { outline: 3px solid var(--sack); outline-offset: 2px; }

.sack .raplace-submit { border-color: var(--sack-deep); }
.raplace-status { margin-top: 1rem; font-weight: 700; min-height: 1.5em; color: var(--sack-deep); }
.raplace-status.is-error { color: #b3261e; }

@media (max-width: 900px) {
  .report__grid { grid-template-columns: 1fr; }
  .report__photo { display: none; }
  .sack { margin-top: 2rem; }
}


/* ---------- school ---------- */
.school__cta { margin-top: 2rem; }

/* ---------- press ---------- */
.pressm-list {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem);
}
.pressm-list .pressm-item { border-top: 2px dashed rgb(242 244 248 / 0.3); }
.pressm-item__main, .pressm-item--links { gap: 0.35rem 1rem; padding: 1.25rem 0 1.5rem; }
.pressm-item__main:hover .pressm-item__title { text-decoration: underline; text-decoration-color: var(--glove); text-decoration-thickness: 2px; }
.pressm-item__outlet { font-size: 1.25rem; }
.pressm-item__date { color: var(--ink-faint); opacity: 1; font-size: 0.9375rem; align-self: center; }
.pressm-item__title { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.45; max-width: 52ch; }
.pressm-item__links { margin-top: 0.25rem; }
.pressm-link { text-decoration-color: var(--glove); text-decoration-thickness: 2px; }

@media (max-width: 760px) { .pressm-list { grid-template-columns: 1fr; } }

/* ---------- support ---------- */
.support__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: end;
}
.support .btdon { gap: 2rem; }
.btdon-link::before { font-family: "Phosphor-Bold"; content: "\e1c2"; font-size: 1.2em; }
.btdon-copy::before { font-family: "Phosphor-Bold"; content: "\e1ca"; font-size: 1.2em; }
.btdon-copy.is-copied::before { content: "\e182"; }
.btdon-bank { border-top: 2px dashed rgb(242 244 248 / 0.35); padding-top: 1.5rem; }
.btdon-bank__heading { font-size: 1.5rem; }
.btdon-bank__body { margin: 1rem 0 1.5rem; }
.btdon-details { gap: 0.75rem; }
.btdon-details div { grid-template-columns: 7rem 1fr; }
.btdon-details dt { color: var(--ink-faint); font-size: 0.9375rem; opacity: 1; }
.btdon-details__iban { font-size: 1.1875rem; }
.btdon-qr { color: var(--ink-faint); }
.btdon-qr__code { border-radius: var(--radius); overflow: hidden; }
.btdon-copy.is-copied { border-color: var(--glove); color: var(--glove); }
.btdon-amounts legend { color: var(--ink-faint); font-size: 0.9375rem; opacity: 1; }
.btdon-amounts__preset { border-color: rgb(242 244 248 / 0.55); border-radius: var(--radius); font-weight: 700; }
.btdon-amounts__preset[aria-pressed="true"] { background: var(--glove); border-color: var(--glove); color: var(--sack, #1d3fc4); box-shadow: none; }
.btdon-amounts__other { color: var(--ink-faint); font-size: 0.9375rem; }
.btdon-amounts__other input { background: transparent; color: var(--ink); border: 1px solid rgb(242 244 248 / 0.55); border-radius: var(--radius); }
.btdon-amounts__other input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(242 244 248 / 0.2); }

@media (max-width: 820px) {
  .support__grid { grid-template-columns: 1fr; }
  .btdon-details div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- footer ---------- */
.foot { background: var(--sack-deep); padding: clamp(4rem, 8vw, 6rem) 0 2.5rem; border-top: 2px dashed rgb(242 244 248 / 0.25); }
.foot__sign { font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1; max-width: 16ch; text-wrap: balance; }
.foot__social {
  list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.foot__social a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.75rem;
  padding: 1rem 0 0.25rem; text-decoration: none;
  border-top: 2px dashed rgb(242 244 248 / 0.3);
}
.foot__social a:hover span { text-decoration: underline; text-decoration-color: var(--glove); text-decoration-thickness: 2px; }
.foot__social i { grid-row: 1 / 3; font-size: 2rem; align-self: center; }
.foot__social span { font-weight: 800; }
.foot__social small { color: var(--ink-faint); font-size: 0.875rem; }
.foot__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(242 244 248 / 0.15);
  font-size: 0.875rem; color: var(--ink-faint);
}
@media (max-width: 820px) { .foot__social { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@property --tear { syntax: "<percentage>"; inherits: false; initial-value: 115%; }
:root { --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0h96v9l-5 4-6-6-7 8-5-5-8 7-6-9-7 6-6-3-8 8-5-7-7 5-6-8-6 7-5-4-9 6z'/%3E%3C/svg%3E"); }

/* ---------- the tear: each bag rips off the roll as it arrives ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .bag > .wrap { transition: --tear 1000ms cubic-bezier(0.5, 0, 0.2, 1), transform 1000ms var(--ease-out); }
  .js .bag.is-pending > .wrap, .js .bag.is-tearing > .wrap {
    -webkit-mask-image: linear-gradient(#000 0 0), var(--torn);
    mask-image: linear-gradient(#000 0 0), var(--torn);
    -webkit-mask-size: 100% calc(var(--tear) - 14px), 96px 18px;
    mask-size: 100% calc(var(--tear) - 14px), 96px 18px;
    -webkit-mask-position: 0 0, 0 calc(var(--tear) - 15px);
    mask-position: 0 0, var(--tear-x, 0px) calc(var(--tear) - 15px);
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
  }
  .js .bag.is-pending > .wrap { --tear: 0%; transform: translateY(18px); }
  .js .bag.is-pending::before, .js .bag.is-pending::after { transform: scaleX(0); }
  .js .bag::before, .js .bag::after { transform-origin: left; transition: transform 1100ms var(--ease-out) 150ms; }

  .hero__title > span { animation: print 900ms var(--ease-out) both; }
  .hero__title > span:nth-child(2) { animation-delay: 90ms; }
  .hero__title > span:nth-child(3) { animation-delay: 180ms; }
  .hero__sub, .hero__ctas { animation: print 900ms var(--ease-out) 260ms both; }
  .hero__photo { animation: drop 1100ms var(--ease-out) 120ms both; }
}
@keyframes print {
  from { opacity: 0; filter: blur(6px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(24px) rotate(-4deg); }
  to { opacity: 1; transform: rotate(-1.2deg); }
}
@media (max-width: 820px) {
  @keyframes drop {
    from { opacity: 0; transform: translateY(24px) rotate(-4deg); }
    to { opacity: 1; transform: rotate(-1deg); }
  }
}

/* ---------- plain pages ---------- */
.page__body { margin-top: 2rem; }
.page__body > * + * { margin-top: 1.1em; }
.page__body h2, .page__body h3 { color: var(--ink); font-weight: 800; font-stretch: 80%; line-height: 1.15; margin-top: 2em; }
.wp-block-post-template { list-style: none; padding: 0; margin: 0; display: grid; gap: 3rem; }
.wp-block-post-title a { text-decoration: none; }
