:root {
  --hdr: 5.9rem;          /* sticky header height on phones; 4rem on desktop */
  color-scheme: light;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --ink: #0e1b29;
  --muted: #52606d;
  --line: #d5dde4;
  --blue: #0e4a8c;        /* Finnish flag blue from the FS logo */
  --blue-deep: #0a3566;
  --mat: #14a3a0;         /* cutting-mat teal from the product photos */
  --band: #104777;        /* the blue of the FS logo (hero and page-head bands) */
  --band-fg: #ffffff;     /* the logo's white */
  --band-muted: #d0d0d0;  /* the logo's light grey (the ring) */
  --logo-grey: #959595;   /* the logo's darker grey */
  --navy: #0b2540;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 1.25rem;
  /* one machine-sewn stitch per 15px tile, vector detail (twisted plies, fibres, needle holes) shows on zoom; generated by tools/finsling_stitch.py */
  --stitch-blue: url("/fs/img/stitch/blue.svg");
  --stitch-mat: url("/fs/img/stitch/mat.svg");
  --stitch-white: url("/fs/img/stitch/white.svg");
  --stitch-white-v: url("/fs/img/stitch/white-v.svg");
  --stitch-blue-v: url("/fs/img/stitch/blue-v.svg");
  --stitch-dark: url("/fs/img/stitch/dark.svg");
  --stitch-dark-v: url("/fs/img/stitch/dark-v.svg");
  --stitch-mat-v: url("/fs/img/stitch/mat-v.svg");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mat); outline-offset: 3px; }
.wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }


header.top { background: var(--surface); position: sticky; top: 0; z-index: 10; }
header.top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--stitch-blue) repeat-x; }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.brand, .lang { min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand .mark { display: block; width: 2.6rem; height: 2.6rem; flex: none; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em; }
/* the old logo's motto (SIMPLE - DURABLE - EFFECTIVE) beside the name, wide screens only (see the 1000px query) */
.motto { display: none; font: 600 0.95rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* phones: the menu is a second row under the logo; desktop puts it inline (see the 860px query) */
nav.main { display: flex; order: 3; flex-basis: 100%; gap: 1.5rem; padding-bottom: 0.7rem; overflow-x: auto; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { flex: none; text-decoration: none; font-weight: 500; color: var(--muted); }
nav.main a:hover { color: var(--blue); }
.lang { position: relative; display: flex; align-items: center; }
.lang .flag { display: none; position: absolute; left: 0.7rem; width: 1.4rem; height: 0.95rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(14, 27, 41, 0.22); background-size: cover; background-position: center; pointer-events: none; }
.lang .flag[data-flag="en"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23012169'/><path d='M0 0l60 40M60 0L0 40' stroke='%23fff' stroke-width='8'/><path d='M0 0l60 40M60 0L0 40' stroke='%23C8102E' stroke-width='3'/><path d='M30 0v40M0 20h60' stroke='%23fff' stroke-width='13'/><path d='M30 0v40M0 20h60' stroke='%23C8102E' stroke-width='8'/></svg>"); }
.lang .flag[data-flag="fi"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23fff'/><rect x='8' width='4' height='20' fill='%23003580'/><rect y='8' width='30' height='4' fill='%23003580'/></svg>"); }
.lang .flag[data-flag="sv"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'><rect width='16' height='10' fill='%23006AA7'/><rect x='5' width='2' height='10' fill='%23FECC02'/><rect y='4' width='16' height='2' fill='%23FECC02'/></svg>"); }
.lang .flag[data-flag="de"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'><rect width='5' height='1' fill='%23000'/><rect y='1' width='5' height='1' fill='%23DD0000'/><rect y='2' width='5' height='1' fill='%23FFCE00'/></svg>"); }
.lang .flag[data-flag="es"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'><rect width='6' height='4' fill='%23AA151B'/><rect y='1' width='6' height='2' fill='%23F1BF00'/></svg>"); }
.lang .flag[data-flag="fr"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='1' height='2' fill='%23002395'/><rect x='1' width='1' height='2' fill='%23fff'/><rect x='2' width='1' height='2' fill='%23ED2939'/></svg>"); }
.lang select {
  appearance: none; -webkit-appearance: none; min-height: 2.4rem; padding: 0 1.9rem 0 0.8rem; border: 1px solid var(--line); border-radius: 0.4rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230e1b29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.65rem center / 0.75rem;
  color: var(--ink); font: 600 0.95rem/1 var(--body); cursor: pointer;
}
.lang select:hover { border-color: var(--blue); }
.lang.svgflags .flag { display: block; }
.lang.svgflags select { padding-left: 2.6rem; }
/* cart: count from the shop's fs_cart_n cookie (inline script); same button as in the shop's header */
.hcart { display: flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; padding: 0 0.7rem; border-radius: 0.4rem; background: var(--blue); color: #fff; text-decoration: none; font: 600 0.95rem/1 var(--body); flex: none; }
.hcart:hover { background: var(--blue-deep); }
.hcart svg { flex: none; }
.hcart-label { display: none; }
.hcart-n { min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 1rem; background: #fff; color: var(--blue); font-size: 0.8rem; display: grid; place-items: center; }
.hcart-n.is-empty { background: rgba(255, 255, 255, 0.2); color: #fff; }
@media (min-width: 560px) { .hcart-label { display: inline; } }

.hero {
  overflow: hidden;   /* lets the photo bleed to the browser edge without causing sideways scroll */
  color: var(--band-fg); background-color: var(--band);   /* the logo blue */
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;   /* the cutting-mat grid from their product photos */
}
.hero .wrap { display: grid; gap: 2rem; padding-block: 2.5rem 0; }
.hero-copy { padding-bottom: 0.5rem; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 9.5vw, 4.6rem); line-height: 0.98; margin: 0 0 1.1rem; letter-spacing: 0.005em; }
.lead { font-size: 1.08rem; color: var(--band-muted); max-width: 38rem; margin: 0 0 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 600 1rem/1 var(--body); text-decoration: none; border-radius: 0.2rem; border: 2px solid transparent;
}
.btn.primary { position: relative; background: #fff; color: var(--ink); }
.btn.primary:hover { background: var(--band-muted); color: var(--ink); }
.btn.ghost { border-color: var(--logo-grey); color: var(--band-fg); }
.btn.ghost:hover { border-color: #fff; }
.hero-photo { margin: 0 calc(var(--gutter) * -1); }
.car { position: relative; height: 100%; background: var(--mat); }
/* blend the bright photo into the dark hero: fade from the hero colour at the edge it shares with the text */
.car::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, var(--band) 0, rgba(16, 71, 119, 0.55) 7%, rgba(16, 71, 119, 0) 26%); }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.car > .shot { display: block; }
.slide img, .car > .shot { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(0.88) brightness(0.93); }   /* .shot: a single photo with no carousel (company page) */
.carbar { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem var(--gutter) 0.7rem; z-index: 2; background: linear-gradient(to top, rgba(16, 71, 119, 0.8), rgba(16, 71, 119, 0)); color: #fff; }
.carbar a { font: 700 1.3rem/1.1 var(--display); text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.carbar a:hover { text-decoration: underline; }
.dots { display: flex; gap: 0.15rem; }
.dots button { width: 1.6rem; height: 1.6rem; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(255,255,255,0.55); }
.dots button[aria-current="true"]::before { background: #fff; transform: scale(1.3); }
.arrow { position: absolute; top: 50%; translate: 0 -50%; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(16, 71, 119, 0.5); border: 1px solid rgba(255,255,255,0.3); color: #fff; z-index: 2; backdrop-filter: blur(4px); font: 700 1.4rem/1 var(--body); cursor: pointer; display: none; }
.arrow.prev { left: 0.75rem; } .arrow.next { right: 0.75rem; }
.arrow:hover { background: rgba(16, 71, 119, 0.8); }

/* announcement band under the hero (banner.js fills it from /fs-data/banner.json; hidden when empty) */
.banner { position: relative; background: var(--blue); color: #fff; }
.banner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--stitch-white) repeat-x; }   /* a seam between it and the blue hero above */
.banner-box { display: flex; align-items: center; gap: 0.6rem 0.9rem; flex-wrap: wrap; padding-block: calc(0.75rem + 6px) 0.75rem; text-decoration: none; color: inherit; }
.banner-img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 0.2rem; flex: none; background: rgba(255, 255, 255, 0.15); }
.banner-body { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.banner-title { font: 700 1.25rem/1.1 var(--display); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.banner-text { font-size: 0.95rem; line-height: 1.4; color: #d9e6f4; overflow-wrap: anywhere; }
.banner-cta { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.4rem; padding: 0.45rem 1rem; border-radius: 0.2rem; background: #fff; color: var(--blue); font: 600 0.95rem/1 var(--body); }
.banner-cta::after { content: "→"; }
a.banner-box:hover .banner-cta { background: var(--band-muted); color: var(--ink); }
a.banner-box:hover .banner-title { text-decoration: underline; text-underline-offset: 0.15em; }

.stitch { height: 6px; background: var(--stitch-blue) repeat-x; }
.proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; gap: 0; }
.proof article { display: flex; gap: 1rem; align-items: center; padding-block: 1.2rem; }
.proof article + article { border-top: 1px solid var(--line); }
.proof img { width: 3.6rem; height: auto; flex: none; }
.proof h2 { font: 700 1.35rem/1.1 var(--display); margin: 0 0 0.2rem; }
.proof p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

section.block { padding-block: 3rem; }
section.emblem { padding-block: 3.5rem 4.25rem; text-align: center; }
.emblem img { display: block; margin: 0 auto; width: clamp(11rem, 38vw, 17rem); height: auto; filter: drop-shadow(0 0.7rem 1.1rem rgba(14, 27, 41, 0.28)); }
.head { margin-bottom: 1.6rem; }
h2.title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1; margin: 0; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); }
.card { background: var(--surface); position: relative; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--mat); }
.card .info { padding: 0.8rem 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.card h3 { font: 700 1.25rem/1.05 var(--display); margin: 0; }
/* the product link sits on the name and stretches over the whole card, so the card opens the product and the Read more button can still sit inside it */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .what { color: var(--muted); font-size: 0.9rem; line-height: 1.35; margin: 0; }
.card .price { font-weight: 600; color: var(--blue); margin-top: auto; padding-top: 0.6rem; }
.card .tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0.1rem 0 0; }
.card .pitch { color: var(--ink); font-size: 0.92rem; line-height: 1.45; margin: 0.4rem 0 0; }
.card .more { display: none; }
.card .more[aria-expanded="false"] [data-i18n="less"], .card .more[aria-expanded="true"] [data-i18n="more"] { display: none; }
/* phones: one product per row, photo on top at full width; the pitch shows two lines and opens with Read more */
@media (max-width: 559px) {
  .grid.rows { grid-template-columns: minmax(0, 1fr); }
  .grid.rows .card .info { padding: 0.9rem 1rem 1rem; }
  .grid.rows .card h3 { font-size: 1.45rem; }
  .grid.rows .card .pitch { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .grid.rows .card .pitch.open { display: block; }
  .grid.rows .card .more:not([hidden]) { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0 -0.5rem; padding: 0.55rem 0.5rem; border: 0; background: none; font: inherit; font-size: 0.92rem; font-weight: 600; line-height: 1; color: var(--blue); cursor: pointer; }
  .grid.rows .card .more::after { content: ""; width: 0.4rem; height: 0.4rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.12rem) rotate(45deg); transition: transform 0.15s; }
  .grid.rows .card .more[aria-expanded="true"]::after { transform: translateY(0.1rem) rotate(-135deg); }
  .grid.rows .card .more:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
  .grid.rows .card .price { padding-top: 0.3rem; }
  .grid.rows .card.shopall a { min-height: 5.5rem; }
}
/* blue stitched frame on hover and keyboard focus; touch screens have no hover (a tap would leave it stuck on), so there it only follows focus */
.card:not(.shopall)::before, .card:not(.shopall)::after { content: ""; position: absolute; pointer-events: none; z-index: 1; visibility: hidden; }
.card:not(.shopall)::after { inset: 0.45rem; background: var(--stitch-blue) top left / 15px 6px, var(--stitch-blue) bottom left / 15px 6px; background-repeat: round no-repeat; }
.card:not(.shopall)::before { inset: calc(0.45rem + 9px) 0.45rem; background: var(--stitch-blue-v) top left / 6px 15px, var(--stitch-blue-v) top right / 6px 15px; background-repeat: no-repeat round; }
.card:not(.shopall):has(h3 a:focus-visible)::before, .card:not(.shopall):has(h3 a:focus-visible)::after { visibility: visible; }
@media (hover: hover) {
  .card:not(.shopall):hover::before, .card:not(.shopall):hover::after { visibility: visible; }
  .card:hover h3 { color: var(--blue); }
  .card.shopall a:hover { background: var(--blue-deep); }
}
.card h3 a:focus-visible { outline: none; }   /* the stitched frame shows focus instead */
.card.shopall { background: var(--blue); }
.card.shopall a { display: flex; flex-direction: column; flex: 1; text-decoration: none; justify-content: flex-end; padding: 1.1rem; min-height: 9rem; color: #fff; }
.card.shopall span { font: 700 1.6rem/1.05 var(--display); }
.card.shopall a { position: relative; }
.card.shopall a::before, .card.shopall a::after { content: ""; position: absolute; pointer-events: none; }
/* white stitched frame: rows run the full width, side columns stop short of them so the corners do not overlap */
.card.shopall a::after { inset: 0.5rem; background: var(--stitch-white) top left / 15px 6px, var(--stitch-white) bottom left / 15px 6px; background-repeat: round no-repeat; }
.card.shopall a::before { inset: calc(0.5rem + 9px) 0.5rem; background: var(--stitch-white-v) top left / 6px 15px, var(--stitch-white-v) top right / 6px 15px; background-repeat: no-repeat round; }

.why { background: var(--surface); border-block: 1px solid var(--line); }
.why .cols > div { position: relative; padding-top: 1.1rem; }
.why .cols { display: grid; gap: 1.8rem; }
.why h3 { font: 700 1.5rem/1.08 var(--display); margin: 0 0 0.5rem; }
.why p { margin: 0; color: var(--muted); }

.quotes { display: grid; gap: 1.6rem; }   /* no stitch line between reviews any more, so the space separates them */
blockquote { margin: 0; }
blockquote p { margin: 0; font: 500 1.4rem/1.2 var(--display); }
blockquote[lang="fi"] p { font-size: 1.2rem; }
.note { color: var(--muted); font-size: 0.88rem; margin: 1rem 0 0; }

footer { position: relative; background: var(--navy); color: var(--band-muted); }
footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--stitch-white) repeat-x; }
footer .wrap { padding-block: 2rem 2.4rem; display: grid; gap: 1.2rem; font-size: 0.95rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
footer a { color: var(--band-fg); }
footer strong { color: var(--band-fg); }

@media (min-width: 560px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
  .card h3 { font-size: 1.45rem; }
  .card .info { padding: 1rem 1.1rem 1.2rem; }
}
@media (min-width: 860px) {
  :root { --gutter: 2rem; --hdr: 4rem; }
  header.top .wrap { flex-wrap: nowrap; gap: 1rem; }
  nav.main { order: 0; flex-basis: auto; gap: 1.6rem; padding-bottom: 0; overflow: visible; }
  .brand, .lang { min-height: 4rem; }
  /* the photo column runs the full height of the hero (top to bottom, no gap) and ends at the content's right edge, in line with the header and product grid */
  .hero .wrap { grid-template-columns: minmax(0, 1fr) min(34rem, 52%); align-items: stretch; gap: 3rem; padding-block: 0; min-height: 34rem; }   /* photo column as wide as the hero is tall, so the square photo is never cropped */
  .hero-copy { padding-block: 4rem; align-self: start; }   /* heading starts at the same height in every language */
  .hero-photo { position: relative; min-height: 26rem; margin: 0; }
  .car { position: absolute; inset: 0; height: auto; }   /* fills the column; the text decides the hero height */
  /* the photos are square: show the whole photo on the right of the column
     and fade its edges into the hero grid (long fade on the text side, short on the right), instead of cropping the sling ends off the top and bottom */
  .car { background: transparent; inset: 50% 0 auto auto; transform: translateY(-50%); width: 100%; aspect-ratio: 1 / 1; }   /* square frame vertically centred in the column (a taller hero in some languages leaves equal room above and below), so the arrows, name and hem sit on the photo */
  .car::before { display: none; }
  .slide { display: flex; justify-content: flex-end; }
  .car > .shot { margin-left: auto; }
  .slide img, .car > .shot { min-height: 0; width: auto; max-width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 90%, transparent 100%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 90%, transparent 100%); mask-composite: intersect; }
  .arrow { display: block; }
  .carbar { padding-inline: 1rem; }
  .proof .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof article + article { border-top: 0; border-left: 1px solid var(--line); padding-left: 1.6rem; }
  .proof article { padding-block: 1.8rem; padding-right: 1rem; }
  .why .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }   /* five reviews: three, then two */
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1000px) {
  /* the motto beside the name; narrower screens have no room next to the menu */
  .brand:has(+ .motto) { margin-right: 0; }
  .motto { display: block; margin-right: auto; padding-left: 1rem; border-left: 1px solid var(--line); translate: 0 0.25rem; }   /* down onto the name's baseline (centring alone leaves the small caps sitting high) */
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card.shopall span { font-size: 1.9rem; }
}
/* phones: logo, language and cart on one row */
@media (max-width: 559px) {
  header.top .wrap { gap: 0 0.5rem; }
  .hcart { padding: 0 0.55rem; }
  .lang select { padding-right: 1.6rem; background-position: right 0.5rem center; }
}
@media (max-width: 400px) {
  .brand .mark { width: 2.2rem; height: 2.2rem; }
  .brand span { font-size: 1.4rem; }
  .lang select { font-size: 0.88rem; padding-left: 0.6rem; }
  .lang.svgflags select { padding-left: 2.3rem; }
  .lang .flag { left: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card .more::after { transition: none; } }


/* homepage hero: the hunter photo with the FS logo printed on it, fading to the hunter from behind and back.
   Below 1200px it works like the old carousel did on phones: the text first, the photo under it, fading in from the band at its top edge. From 1200px: the text in a fixed column on the left,
   the photo filling everything to its right, its left edge fading into the blue. */
.photo-hero .hero-photo { position: relative; }
.photo-hero .hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 100% 50%; filter: saturate(0.92); }   /* the logo photo: crop from the left only, never the printed logo and text */
/* the logo photo, then slowly over to the hunter from behind and back again (on every screen size) */
.photo-hero .hero-photo img.fade { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 60% 45%; opacity: 0; animation: hero-fade 16.5s ease-in-out 4s infinite; }
.photo-hero .hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--band) 0, rgba(16, 71, 119, 0.55) 7%, rgba(16, 71, 119, 0) 26%); }
@media (min-width: 560px) {
  .photo-hero .hero-photo img { aspect-ratio: 16 / 9; }
}
@media (min-width: 860px) {   /* 860-1199px: still stacked, overriding the two-column hero above */
  .hero.photo-hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 3rem 0; }
  .photo-hero .hero-copy { padding-block: 0 0.5rem; }
  .photo-hero .hero-photo { min-height: 0; margin: 0 calc(var(--gutter) * -1); }
  .photo-hero .hero-photo img { max-height: 62vh; }
}
@media (min-width: 1200px) {
  /* text column fixed at 30rem on the left edge of the content; the photo fills everything to its right, out to the browser edge,
     and the hero is as tall as the photo at its own 3:2 shape, so the logo and text printed on it are not cropped */
  .hero.photo-hero { position: relative; --side: max(var(--gutter), (100vw - 72rem) / 2 + var(--gutter)); }
  .hero.photo-hero .wrap { grid-template-columns: 30rem minmax(0, 1fr); gap: 3.5rem; min-height: calc((100vw - var(--side) - 33.5rem) / 1.5); padding-block: 2.5rem; }
  /* the text starts on the same line as the header's logo and the content below (Teemu, 2026-11-18); the photo still runs to the browser edge */
  .photo-hero .hero-copy { grid-column: 1; align-self: center; padding-block: 0; }
  .photo-hero h1 { font-size: 3.9rem; }
  .photo-hero .hero-photo { position: absolute; inset: 0 0 0 calc(var(--side) + 30.5rem); margin: 0; }   /* starts 3rem into the gap next to the text; that part is all fade */
  .photo-hero .hero-photo > img { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; object-position: 100% 50%; }   /* if the text makes the hero taller, crop only from the left (the hunter's back), never the printed logo and text */
  .photo-hero .hero-photo::after { display: none; }
  /* no hard edge between the blue panel and the photo: the photo's left edge fades out, so the blue and its grid show through */
  .photo-hero .hero-photo { -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.25) 4rem, rgba(0,0,0,0.7) 9rem, #000 15rem); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.25) 4rem, rgba(0,0,0,0.7) 9rem, #000 15rem); }
  .photo-hero .hero-photo img.fade { object-position: 50% 45%; }
}
/* three photos in turn: the logo photo, the hunter from behind, then the upright AR photo, and back to the logo photo (16.5 s round: each photo 4 s, then a 1.5 s cross-fade) */
@keyframes hero-fade { 0%, 100% { opacity: 0; } 9.09%, 33.33% { opacity: 1; } 42.42% { opacity: 0; } }
@keyframes hero-fade-base { 0%, 4.55%, 75.76%, 100% { opacity: 1; } 9.09%, 66.67% { opacity: 0; } }   /* the logo photo leaves during the second half of the hunter photo's fade-in and is gone when that is fully in: with a fade on each photo, it would otherwise show through the hunter photo's fade as a ghost */
@keyframes hero-fade-ar { 0%, 33.33%, 75.76%, 100% { opacity: 0; } 42.42%, 66.67% { opacity: 1; } }
/* the upright AR photo, made as wide as the other two (tools/hero_ar_extend.py: its blurred background continued to the left, 2.4:1):
   it fills the frame like they do, cropped from the left only, so the rifle, sling and vest always show at full height on the right */
.photo-hero .hero-photo > img.ar { object-position: 100% 50%; animation-name: hero-fade-ar; }
.photo-hero .hero-photo > img:not(.fade) { animation: hero-fade-base 16.5s ease-in-out 4s infinite; }   /* the logo photo steps aside while the AR photo is on (no ghost through its fade) */
@media (prefers-reduced-motion: reduce) { .photo-hero .hero-photo > img { animation: none !important; } }
@media (min-width: 1200px) {
  /* desktop: every photo fades into the blue the same way, measured from its own left edge (the upright AR photo used to start
     further right than the other two); 18rem since 2026-11-18 */
  .photo-hero .hero-photo { --hero-fade: linear-gradient(to right, transparent 0, rgba(0,0,0,0.25) 5rem, rgba(0,0,0,0.7) 11rem, #000 18rem); -webkit-mask-image: none; mask-image: none; }
  .photo-hero .hero-photo > img, .photo-hero .hero-photo > img.ar { -webkit-mask-image: var(--hero-fade); mask-image: var(--hero-fade); }
}   /* only the logo photo, standing still */
