/* ---- tokens.css ---- */
/* ==========================================================================
   Tokens — the only place raw design values live.
   Measured from Figma Mt83t0B1Vdt1WWAHKcp9vb, frame 4052:1388 "2027 - main".
   Names are chosen for what they become as Voog design-editor custom
   properties (VoogStyle declarations), so the port is a copy, not a rewrite.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONT
   "Marble Display" (East of Rome), Regular + Italic, the designer's files
   (licence: the designer's). Crimson Text remains only as a fallback.
   To change the face, replace these two @font-face blocks and --font-display.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Marble Display";
  src: url("../assets/marble-display-regular.woff2") format("woff2"),
       url("../assets/marble-display-regular.woff") format("woff");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Marble Display";
  src: url("../assets/marble-display-italic.woff2") format("woff2"),
       url("../assets/marble-display-italic.woff") format("woff");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* --- colour ----------------------------------------------------------- */
  --color-bg: #06090c;
  --color-fg: #ffffff;
  --color-muted: #c7c6bf;   /* pill border + label, meta, wordmark */
  --color-dim: #a6a6a8;     /* inactive index rows */
  --color-placeholder: #d9d9d9;
  --color-rule: rgb(255 255 255 / 0.22);
  --color-logo: #000000;        /* showreel mark at rest */
  --color-logo-pop: #7b61ff;    /* showreel mark on hover (Figma 4052:1446) */

  /* --- type ------------------------------------------------------------- */
  --font-display: "Marble Display", "Crimson Text",
    "Iowan Old Style", Palatino, Georgia, serif;

  --weight-light: 300;
  --weight-regular: 400;

  /* Figma sizes are the clamp() maxima, reached at the 1600 px design width (min at 390);
     the minima are ours. Before 2026-10-16 body/h2/h3 reached their max only near 2200 px. */
  --type-lead: clamp(1.75rem, 1.05rem + 1.94vw, 3rem);      /* 28 → 48 */
  --type-h2: clamp(1.5rem, 1.258rem + 0.992vw, 2.25rem);    /* 24 → 36, max at 1600 */
  --type-h3: clamp(1.125rem, 1.004rem + 0.496vw, 1.5rem);   /* 18 → 24, max at 1600 */
  --type-body: clamp(1.0625rem, 0.982rem + 0.331vw, 1.3125rem); /* 17 → 21, max at 1600 */
  --type-ui: clamp(1rem, 0.96rem + 0.165vw, 1.125rem);      /* 16 → 18, max at 1600 */
  --type-meta: 1rem;                                        /* 16, fixed */
  /* Body-text headings (.prose), Figma 4138:2105 specimen; min at 576px. */
  --type-prose-h1: clamp(2rem, 1.37rem + 1.76vw, 3.125rem);    /* 32 → 50 */
  --type-prose-h2: clamp(1.75rem, 1.33rem + 1.17vw, 2.5rem);   /* 28 → 40 */
  --type-prose-h3: clamp(1.375rem, 1.09rem + 0.78vw, 1.875rem); /* 22 → 30 */
  --type-prose-h4: clamp(1.1875rem, 1.01rem + 0.49vw, 1.5rem); /* 19 → 24 */

  --leading-tight: 1.2;
  --leading-normal: 1.4;
  --leading-ui: 1.556;  /* 28/18 */

  /* --- layout ----------------------------------------------------------- */
  --container-max: 1520px;
  --gutter-page: clamp(1.25rem, 2.5vw, 2.5rem);   /* 20 → 40 */
  --gutter-col: clamp(1.5rem, 3.49vw, 3.3125rem); /* 24 → 53 (53/1520) */

  /* --- media ------------------------------------------------------------ */
  --ratio-card: 1.4423;  /* 36:25 — every card in the design */
  --ratio-wide: 1.7778;  /* 16:9 — showreel only */
  --radius-media: clamp(1rem, 1.9vw, 1.875rem); /* 16 → 30 */

  /* --- components ------------------------------------------------------- */
  --radius-pill: 45px;
  --pill-pad-y: 0.5rem;
  --pill-pad-x: 1rem;

  /* --- rhythm ----------------------------------------------------------- */
  --space-section: clamp(4rem, 6.5vw, 6.5rem);
  --space-head-body: clamp(2rem, 5.5vw, 5.5rem); /* heading → grid, 88px */
  --space-cat-head: clamp(1.5rem, 2.4vw, 2.375rem); /* category head → grid, 38px */
  --space-media-caption: 1.25rem;                /* 20px */

  /* --- motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 320ms;
}

/* Light mode (Erkki 2026-11-10): a token swap, not a second stylesheet. Manual
   only — the header switch sets data-theme="light" on <html> and remembers it
   (sviiter-head, sviiter.js); the OS setting is ignored. No light frame in
   Figma: the design's three colours swap (#06090c ground <-> #ffffff text),
   the muted grey #c7c6bf darkened to keep contrast on white. Provisional until
   the designer picks the values — change them here only. */
:root[data-theme="light"] {
  --color-bg: #ffffff;
  --color-fg: #06090c;
  --color-muted: #6b6a64;
  --color-dim: #8a8a8c;
  --color-placeholder: #e6e5e0;
  --color-rule: rgb(6 9 12 / 0.22);
  color-scheme: light;
}

/* ---- base.css ---- */
/* ==========================================================================
   Base — reset, page frame, typography primitives, shared atoms.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-fg);
  color: var(--color-bg);
  border-radius: 0 0 0.5rem 0.5rem;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --- layout frame --------------------------------------------------------- */

.container {
  width: min(100% - (2 * var(--gutter-page)), var(--container-max));
  margin-inline: auto;
}

/* --- type roles ----------------------------------------------------------- */

.t-lead {
  font-size: var(--type-lead);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
  text-wrap: pretty;
}

.t-h2 {
  font-size: var(--type-h2);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
}

.t-h3 {
  font-size: var(--type-h3);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
  text-wrap: pretty;  /* not balance: it breaks lines early instead of filling them (Erkki 2026-10-19) */
}

.t-body {
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  text-wrap: pretty;
}

.t-ui {
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
  font-weight: var(--weight-regular);
}

.t-meta {
  font-size: var(--type-meta);
  line-height: var(--leading-normal);
  color: var(--color-muted);
}

/* --- atom: pill ----------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pill-pad-y) var(--pill-pad-x);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: var(--type-meta);
  line-height: var(--leading-normal);
  white-space: nowrap;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.pill:hover,
.pill:focus-visible {
  color: var(--color-bg);
  background: var(--color-fg);
  border-color: var(--color-fg);
}

/* The one filled/active pill in the design (services index, "View more"). */
.pill--strong { color: var(--color-fg); border-color: var(--color-fg); }

/* --- atom: wide button ("See all projects", Figma 4242:2019) ---------------
   Full container width, 102 high at 1600, muted outline, radius 30, label 36. */

.btn-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(4.5rem, 6.375vw, 6.375rem);   /* 72 → 102 */
  padding: 1rem var(--pill-pad-x);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-media);
  color: var(--color-fg);
  font-size: var(--type-h2);
  line-height: var(--leading-tight);
  text-align: center;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.btn-wide:hover,
.btn-wide:focus-visible {
  color: var(--color-bg);
  background: var(--color-fg);
  border-color: var(--color-fg);
}

.s-allprojects { margin-top: var(--space-section); }

/* --- atom: media ---------------------------------------------------------- */

.media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
  aspect-ratio: var(--ratio-card);
}

.media--wide { aspect-ratio: var(--ratio-wide); }

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), opacity var(--dur) var(--ease);
}

a.media:hover > img,
a.media:focus-visible > img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .media > img { transition: none; }
  a.media:hover > img { transform: none; }
}

/* --- atom: meta line (date • category) ------------------------------------ */

.metaline {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.metaline__dot {
  width: 2px; height: 2px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}


/* ---- sections.css ---- */
/* ==========================================================================
   Sections — one block per section component in the Voog port.
   Section order matches the Figma frame top to bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Site header  (Figma y17)
   Static, not sticky: the design puts "Back to top" in the footer, which only
   makes sense without a persistent nav. Flagged for the designer.
   -------------------------------------------------------------------------- */

.site-header {
  padding-block: 1.0625rem;
  position: relative;
  z-index: 20;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-header__title {
  font-size: var(--type-body);               /* 21 / 28 — all 2027 frames since 4131:* */
  line-height: 1.3333;
  font-weight: var(--weight-regular);
  justify-self: start;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5.26vw, 5rem); /* 80px at 1520 */
}

.site-nav__link {
  font-size: var(--type-body);
  line-height: 1.3333;
  font-weight: var(--weight-regular);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current="page"] { color: var(--color-muted); }

.site-header__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Cart link: hidden until the Voog cart has items (nuuk global.js adds .visible). */
.cart_btn {
  display: none;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-fg);
  font: inherit;
  font-size: var(--type-meta);
  line-height: 1.75;
  cursor: pointer;
}
.cart_btn.visible { display: inline-flex; }
.cart_btn:hover { color: var(--color-muted); }
.cart_btn-count {
  min-width: 1.5rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--color-logo-pop);
  color: var(--color-fg);
  font-size: 0.8125rem;
  line-height: 1.5rem;
  text-align: center;
}
body .edy-ecommerce-shopping-cart-button { display: none; } /* Voog's own floating cart button */

.site-header__lang {
  justify-self: end;
  font-size: var(--type-meta);               /* 16 / 28 */
  line-height: 1.75;
  font-weight: var(--weight-regular);
}

.site-header__lang:hover { color: var(--color-muted); }

/* Light/dark switch, left of the language link (Figma 4262:1548): "Light",
   a 38x19 switch, "Dark". Off (dark mode): black, grey knob right; on (light
   mode): page colour (white), dark knob left — Erkki 2026-11-23, the purple was
   the only purple on the page. Needs JS, so it shows only with html.js. */
.site-header__theme {
  display: none;
  align-items: center;
  gap: 0.5625rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--type-meta);
  line-height: 1.3125;
  cursor: pointer;
}
.js .site-header__theme { display: inline-flex; }
.mode-switch {
  position: relative;
  width: 38px;
  height: 19px;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-pill);
  background: #000000;
  transition: background-color var(--dur) var(--ease);
}
.mode-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 20px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d9d9d9;
  transition: left var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
:root[data-theme="light"] .mode-switch { background: var(--color-bg); }   /* not purple: Erkki 2026-11-23 */
:root[data-theme="light"] .mode-switch::after { left: 3px; background: var(--color-fg); }
.site-header__theme:hover .mode-switch,
.site-header__theme:focus-visible .mode-switch { border-color: var(--color-fg); }
@media (prefers-reduced-motion: reduce) {
  .mode-switch, .mode-switch::after { transition: none; }
}

/* Edit mode only: hidden and untranslated pages under one "+N" item. */
.site-nav__more { position: relative; }
.site-nav__more summary { list-style: none; cursor: pointer; }
.site-nav__more summary::-webkit-details-marker { display: none; }
.site-nav__more summary::marker { content: ""; }
.site-nav__more summary { display: block; }
.site-nav__more-list {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 0.5rem;
  min-width: 14rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-rule);
  border-radius: 1rem;
  background: var(--color-bg);
  z-index: 25;
}
.site-nav__more-list .site-nav__link { font-size: var(--type-meta); white-space: nowrap; }
.site-nav__more-list small { color: var(--color-muted); }

.site-nav__lang-mobile { display: none; }

.site-header__burger {
  display: none;
  justify-self: end;
  width: 40px;
  height: 28px;
  position: relative;
}

.site-header__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.site-header__burger span:nth-child(1) { top: 9px; }
.site-header__burger span:nth-child(2) { top: 18px; }

[data-nav-open] .site-header__burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
[data-nav-open] .site-header__burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   2. Showreel  (Figma y64, 1520x855, 16:9)
   -------------------------------------------------------------------------- */

.s-showreel { margin-top: 1.1875rem; }

.s-showreel .media { background: var(--color-fg); }

/* Showreel video (site data sviiter_showreel.video_url), same box as the image. */
.s-showreel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sviiter mark over the showreel (Figma 4052:1446: 443 of 1520 wide, centred).
   Outline only, as in Figma. Black at rest; on hover it pops into the accent
   colour with a springy tilt. */
.s-showreel__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 29.15%;
  height: auto;
  color: var(--color-logo);
  transform: translate(-50%, -50%);
  transition:
    color 450ms var(--ease),
    transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 450ms var(--ease);
  pointer-events: none;
}
.s-showreel .media:hover .s-showreel__logo {
  color: var(--color-logo-pop);
  transform: translate(-50%, -50%) scale(1.07) rotate(-4deg);
  filter: drop-shadow(0 0 2.5rem rgb(123 97 255 / 0.55));
}
/* Edit-mode toggle sviiter_showreel.logo_still: the mark stays at rest. */
.s-showreel .media:hover .s-showreel__logo--still {
  color: var(--color-logo);
  transform: translate(-50%, -50%);
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .s-showreel__logo { transition: color 200ms linear; }
  .s-showreel .media:hover .s-showreel__logo { transform: translate(-50%, -50%); filter: none; }
}

/* --------------------------------------------------------------------------
   3 & 5. Statement  (Figma y1024 and y6670 — 48px lead, full container width)
   -------------------------------------------------------------------------- */

.s-statement { margin-top: clamp(3.5rem, 6.9vw, 6.5625rem); }

/* --------------------------------------------------------------------------
   4. Work category showcase  (Figma y1420-6526, five instances)
   -------------------------------------------------------------------------- */

.s-category { margin-top: var(--space-section); }

.s-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: var(--space-cat-head); /* #20: Figma 38, not 88 (that was heading top → image) */
}

.s-category__grid {
  display: grid;
  /* The asymmetric split, straight from the design: 1019 : 448 of 1520. */
  grid-template-columns: 1019fr 448fr;
  gap: var(--gutter-col);
  align-items: start;
}

.s-category__side {
  display: grid;
  gap: clamp(1.5rem, 2.76vw, 2.625rem);
}

/* #21: the second side image ends on the feature IMAGE's bottom edge (Figma
   4052:1388: both at y2216); its name hangs below, level with the feature
   text. Side column height = feature media height, from the grid's width
   (container query): (grid − gutter) × 1019/1467 ÷ card ratio. Both media
   flex around their 36:25 basis (object-fit: cover), so a two-line name or
   a narrow viewport crops a few px instead of breaking the alignment.
   Without cqw support the height is invalid → the plain stack above. */
@media (min-width: 1024px) {
  .s-category__grid { container-type: inline-size; }

  .s-category__side:has(> .case + .case) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc((100cqw - var(--gutter-col)) * 1019 / 1467 / var(--ratio-card));
  }
  .s-category__side:has(> .case + .case) > .case,
  .s-category__side:has(> .case + .case) > .case > .case__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
  .s-category__side:has(> .case + .case) .media { flex: 1 1 auto; min-height: 0; }
  .s-category__side:has(> .case + .case) > .case:last-child { position: relative; }
  .s-category__side:has(> .case + .case) > .case:last-child .case__name {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }
}

/* --- case: shared --- */

.case__link,
.post__link { display: block; }

/* --- case: feature --- */

.case--feature .case__text {
  display: grid;
  grid-template-columns: 331fr 626fr;
  gap: clamp(1rem, 2.37vw, 2.25rem);
  margin-top: var(--space-media-caption);
  align-items: start;
}

.case--feature .case__title { font-size: var(--type-h2); line-height: var(--leading-tight); }

/* --- case: secondary --- */

.case--sub .case__name {
  margin-top: var(--space-media-caption);
  font-size: var(--type-h3);
}

.case__link:hover .case__title,
.case__link:hover .case__name { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   6. Services index  (Figma y7052)
   The list deliberately overlaps the image by exactly one column gutter:
   image spans x40-593, list starts at x540. Reproduced with a single-cell
   grid and two overlapping children.
   -------------------------------------------------------------------------- */

.s-index { margin-top: var(--space-section); }

.s-index__inner {
  display: grid;
  align-items: start;
}

.s-index__media {
  grid-area: 1 / 1;
  width: 36.38%;   /* 553 / 1520 */
  align-self: start;
  transition: transform 450ms var(--ease);   /* follows the hovered row (sviiter.js) */
}
@media (prefers-reduced-motion: reduce) { .s-index__media { transition: none; } }

.s-index__list {
  grid-area: 1 / 1;
  width: 67.11%;       /* 1020 / 1520 */
  margin-left: 32.89%; /* 540 / 1520 */
  margin-top: 3.25rem; /* 7104 - 7052 */
  position: relative;
}

.idx__row {
  display: flex;
  padding-block: 1.875rem;
  color: var(--color-dim);
  transition: color var(--dur) var(--ease);
}

/* The whole row is the link to the category (static fallback: a span). */
.idx__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: inherit;
  text-decoration: none;
}

.idx__row:first-child { padding-top: 0; }
.idx__row + .idx__row { border-top: 1px solid var(--color-rule); }

.idx__row.is-current,
.idx__row:hover,
.idx__row:focus-within { color: var(--color-fg); }

/* Current row's pill = the design's strong pill. */
.idx__row.is-current .pill { color: var(--color-fg); border-color: var(--color-fg); }
a.idx__link:hover .pill,
a.idx__link:focus-visible .pill {
  color: var(--color-bg);
  background: var(--color-fg);
  border-color: var(--color-fg);
}

/* One image per row, stacked; the current one fades in (sviiter.js). */
.s-index__media .media > .idx__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 450ms var(--ease);
}
.s-index__media .media > .idx__img.is-current { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .s-index__media .media > .idx__img { transition: none; }
}

.idx__label {
  font-size: var(--type-h2);
  line-height: var(--leading-tight);
}

/* --------------------------------------------------------------------------
   7. Journal  (Figma y7732)
   -------------------------------------------------------------------------- */

.s-journal { margin-top: var(--space-section); }

.s-journal__head {
  display: grid;
  grid-template-columns: 35.53% 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem);
}

/* Flush right: the last pill ends on the container edge, like "View more" (Erkki 2026-11-13). */
.s-journal__topics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.3125rem;
  margin-inline: 0;
}

.s-journal__topics-label {
  font-size: var(--type-h3);
  color: var(--color-muted);
}

.s-journal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter-col);
}

.post__title {
  margin-top: 1.3125rem;
  font-size: var(--type-h3);
}

.post__meta { margin-top: 0.5rem; }

.post__link:hover .post__title { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   8. Trust — client logos + testimonial  (Figma y8545)
   -------------------------------------------------------------------------- */

.s-trust { margin-top: var(--space-section); }

.s-trust__logos {
  margin-top: clamp(2rem, 4.6vw, 4.375rem);
  overflow: hidden;
}

/* Infinite strip to the left: one track holding two identical lists; moving
   the track by -50% lands copy 2 exactly where copy 1 started. Each list
   ends with one gap (padding) so the seam keeps the rhythm. */
.logostrip-marquee { overflow: hidden; }

.logostrip__track {
  display: flex;
  width: max-content;
  animation: logostrip-scroll var(--logos-dur, 40s) linear infinite;
  will-change: transform;
}
/* Paused only off screen (sviiter.js); no pause on hover: the logos are not links (Robert 2026-11-23). */
.logostrip-marquee.is-offscreen .logostrip__track { animation-play-state: paused; }

@keyframes logostrip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logostrip {
  --logo-gap: clamp(2.5rem, 7.96vw, 7.5625rem);
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
  color: var(--color-muted);
}

/* Reduced motion: still, one copy, laid out as in Figma (overflows both edges). */
@media (prefers-reduced-motion: reduce) {
  .logostrip__track { animation: none; width: 112%; margin-left: -6%; }
  .logostrip { flex: 1; justify-content: space-between; padding-right: 0; }
  .logostrip--copy { display: none; }
}

/* Logos from the front_logos gallery: <img> sized by the file, flattened to
   one tone with a filter (a mask would need CORS from media.voog.com). */
.logostrip .logostrip__item--img {
  aspect-ratio: auto;
  background: none;
  -webkit-mask: none;
  mask: none;
}
.logostrip .logostrip__item--img img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(0.78);
}
:root[data-theme="light"] .logostrip .logostrip__item--img img { filter: brightness(0) invert(0.33); }

/* Masked, not <img>: an <img> renders its SVG in an isolated document, so the
   currentColor fills in the exported logos would resolve to black. */
.logostrip__item {
  flex: none;
  height: clamp(1.75rem, 2.6vw, 2.5rem);
  aspect-ratio: var(--logo-ar);
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease);
}
.logostrip__item:hover { opacity: 1; }

.logostrip__item--1 { --logo: url("../assets/sviiter-logo-1.svg"); --logo-ar: 42/42; }
.logostrip__item--2 { --logo: url("../assets/sviiter-logo-2.svg"); --logo-ar: 127/46; }
.logostrip__item--3 { --logo: url("../assets/sviiter-logo-3.svg"); --logo-ar: 129/30; }
.logostrip__item--4 { --logo: url("../assets/sviiter-logo-4.svg"); --logo-ar: 154/18; }
.logostrip__item--5 { --logo: url("../assets/sviiter-logo-5.svg"); --logo-ar: 76/50; }
.logostrip__item--6 { --logo: url("../assets/sviiter-logo-6.svg"); --logo-ar: 114/40; }
.logostrip__item--7 { --logo: url("../assets/sviiter-logo-7.svg"); --logo-ar: 72/44; }

.s-trust__quote {
  margin-top: clamp(2.5rem, 6.2vw, 5.9375rem);
  width: min(100%, 75%);
  margin-inline: auto;
  text-align: left;
}

.s-trust__attribution {
  margin-top: clamp(1.25rem, 2.2vw, 2.125rem);
  width: min(100%, 75%);
  margin-inline: auto;
  color: var(--color-muted);
  font-size: var(--type-ui);
}

/* --------------------------------------------------------------------------
   9. Footer  (Figma y9315)
   -------------------------------------------------------------------------- */

.site-footer { margin-top: var(--space-section); }

.site-footer__text {
  font-size: var(--type-body);
  line-height: var(--leading-ui);
  font-weight: var(--weight-regular);
}

.site-footer__contact { margin-top: 0.5rem; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2rem, 3.9vw, 3.9375rem);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 2.6vw, 2.5rem);
}

.site-footer__social a:hover,
.site-footer__backtotop:hover { color: var(--color-muted); }

.site-footer__wordmark {
  margin-top: clamp(1.5rem, 2.4vw, 2.25rem);
  width: 100%;
  aspect-ratio: 1599 / 226;
  background-color: var(--color-muted);
  -webkit-mask: url("../assets/sviiter-wordmark.svg") center bottom / 100% auto no-repeat;
  mask: url("../assets/sviiter-wordmark.svg") center bottom / 100% auto no-repeat;
}

/* ==========================================================================
   Interior views (2027): work index, work category, work item, journal index,
   journal article. Figma 4077:1424, 4131:1773, 4131:1881, 4131:1480, 4138:2017.
   Values measured off those frames; spacings are the Figma gaps at 1600.
   ========================================================================== */

/* --- shared type roles ---------------------------------------------------- */

.t-title {                       /* page titles: 48 / 1.4 light */
  font-size: var(--type-lead);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
  text-wrap: pretty;  /* not balance: it breaks lines early instead of filling them (Erkki 2026-10-19) */
}

.t-title-tight {                 /* "See projects other categories": 48 / 1.2 */
  font-size: var(--type-lead);
  line-height: var(--leading-tight);
  font-weight: var(--weight-light);
}

.t-intro {                       /* intro statements: 36 / 1.4 */
  font-size: var(--type-h2);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
  text-wrap: pretty;
}

/* --- shared grids --------------------------------------------------------- */

.grid-2 {                        /* 733 + 53 + 733 */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter-col);
  row-gap: clamp(2.5rem, 4.1vw, 4.0625rem);   /* 65 */
  align-items: start;
}

.grid-3 {                        /* 471 + 53 + 471 + 53 + 471 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter-col);
  row-gap: clamp(2.5rem, 4.75vw, 4.75rem);    /* 76 */
  align-items: start;
}

/* --- page head (title + optional intro) ---------------------------------- */

.s-pagehead { margin-top: clamp(3rem, 6.6vw, 6.625rem); }          /* title at y169 */
.s-pagehead__intro { margin-top: clamp(1.5rem, 2.6vw, 2.5625rem); } /* 41 */

.s-statement--top { margin-top: clamp(3rem, 6.3vw, 6.3125rem); }    /* work index lead at y164 */

/* --- work category -------------------------------------------------------- */

.s-projects { margin-top: var(--space-head-body); }

.project__link { display: block; }

.project__title {
  margin-top: 1.0625rem;                     /* 17 */
  font-size: var(--type-h2);
  line-height: var(--leading-tight);
  font-weight: var(--weight-light);
}

.project__desc { margin-top: clamp(1rem, 2vw, 2rem); }   /* 32 */

.project__link:hover .project__title { color: var(--color-muted); }

.s-others { margin-top: clamp(4rem, 8.5vw, 8.5rem); }    /* 136 */
.s-others .idx { margin-top: clamp(2rem, 5.1vw, 5.125rem); }   /* 82 */

.idx--links .idx__label { display: block; width: 100%; }
.idx--links .idx__row:last-child { padding-bottom: 0; }

/* --- work item ------------------------------------------------------------ */

.s-hero { margin-top: clamp(1.5rem, 3.1vw, 3.125rem); }  /* 50 */

.s-statement--project { margin-top: clamp(2.5rem, 4.1vw, 4.0625rem); }  /* 65 */

.s-brief { margin-top: clamp(2.5rem, 3.9vw, 3.875rem); }  /* 62 */

.s-brief__inner {                /* 440 tasks | 1019 intro, pinned to the edges */
  display: grid;
  grid-template-columns: minmax(0, 448fr) minmax(0, 1019fr);
  column-gap: var(--gutter-col);
  align-items: start;
}

.s-brief__tasks { padding-top: 0.8125rem; }             /* label sits 13 below the intro's cap line */

.s-brief__label {
  font-size: var(--type-h3);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
  color: var(--color-muted);
}

/* Task tags are authored as a plain list; each item renders as a pill. */
.pill-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3125rem;                            /* 21 */
  margin-top: 1.6875rem;                     /* 27 */
}

.pill-list li {
  padding: var(--pill-pad-y) var(--pill-pad-x);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: var(--type-meta);
  line-height: var(--leading-normal);
  white-space: nowrap;
}

.s-gallery { margin-top: clamp(3rem, 5.6vw, 5.625rem); } /* 90 */

.s-gallery__stack {
  display: grid;
  gap: clamp(1rem, 1.7vw, 1.6875rem);        /* 27 */
}

/* A media slot is a content area holding one image. */
.media-slot p,
.media-slot figure { margin: 0; }

.media-slot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio-wide);
  object-fit: cover;
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}

.s-columns { margin-top: clamp(3rem, 5.6vw, 5.625rem); } /* 90 */

/* Body-text headings: Figma type specimen 4138:2105 (H1 50 · H2 40 · H3 30 ·
   H4 24 · body 21, all line-height 1.4). H4 is "Bold" in Figma, but Marble
   Display has no bold file yet (#7, decided: wait, no faux bold) — regular
   until the file arrives, then font-weight: 700 here. */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
  text-wrap: pretty;  /* not balance: it breaks lines early instead of filling them (Erkki 2026-10-19) */
}
.prose h1 { font-size: var(--type-prose-h1); }
.prose h2 { font-size: var(--type-prose-h2); }
.prose h3 { font-size: var(--type-prose-h3); }
.prose h4 { font-size: var(--type-prose-h4); }

.prose p,
.prose ul,
.prose ol { font-size: var(--type-body); line-height: var(--leading-normal); }

/* One body line (21 × 1.4) between blocks and below a heading, as Figma's
   blank paragraphs. Above a heading more, since our paragraphs are already
   one line apart: two body lines for h1/h2, one and a half for h3/h4. */
.prose * + p,
.prose * + ul,
.prose * + ol { margin-top: 1.4em; }

.prose * + h1,
.prose * + h2 { margin-top: calc(var(--type-body) * 2.8); }

.prose * + h3,
.prose * + h4 { margin-top: calc(var(--type-body) * 2.1); }

/* Lists (#6): restore the markers the global reset removes — body text only. */
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.5em; }
.prose ul ul { list-style-type: circle; }
.prose ol ol { list-style-type: lower-alpha; }
.prose li { padding-left: 0.25em; }
.prose li + li,
.prose li > ul,
.prose li > ol { margin-top: 0.5em; }

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.prose a:hover { color: var(--color-muted); }

.s-palette { margin-top: clamp(2.5rem, 3.9vw, 3.875rem); }  /* 62 */

.s-palette__inner {              /* 680 statement | 696 list */
  display: grid;
  grid-template-columns: minmax(0, 680fr) minmax(0, 696fr);
  column-gap: clamp(2rem, 9vw, 8.875rem);
  align-items: start;
}

/* Accordion: h3 + following text; sviiter.js turns each h3 into a toggle. */
.accordion h3 {
  font-size: var(--type-h2);
  line-height: var(--leading-tight);
  font-weight: var(--weight-light);
  color: var(--color-dim);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-rule);
}

.accordion * + h3 { margin-top: 1.25rem; }

.accordion p {
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  margin-top: 1.25rem;
}

.accordion button.accordion__toggle {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: color var(--dur) var(--ease);
}

.accordion button.accordion__toggle:hover { color: var(--color-fg); }

/* The open item: its text shows before the rule, so the rule moves to the text. */
.accordion.is-enhanced h3.is-open { border-bottom: 0; padding-bottom: 0; }
.accordion.is-enhanced h3.is-open + p {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-rule);
}
.accordion.is-enhanced h3:not(.is-open) + p { display: none; }

.s-testimonial { margin-top: clamp(3.5rem, 6.6vw, 6.625rem); }  /* 106 */

.s-testimonial__inner {
  width: min(100%, 75%);                     /* 1140 / 1520 */
  margin-left: 12.5%;                        /* 190 / 1520 */
}

.s-testimonial__attribution {
  margin-top: clamp(1.25rem, 2.25vw, 2.25rem);  /* 36 */
  color: var(--color-muted);
  font-size: var(--type-ui);
}

.s-related { margin-top: var(--space-section); }

.s-related__label {
  font-size: var(--type-h3);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
  color: var(--color-muted);
  margin-bottom: clamp(1.25rem, 1.9vw, 1.9375rem);  /* 31 */
}

.card__link { display: block; }

.card__title {
  margin-top: 1.3125rem;                     /* 21 */
  font-size: var(--type-h3);
  line-height: var(--leading-normal);
  font-weight: var(--weight-light);
}

.card__link:hover .card__title { color: var(--color-muted); }

/* --- journal index -------------------------------------------------------- */

.s-journal--index { margin-top: clamp(3rem, 7.3vw, 7.3125rem); } /* heading at y180 */
.s-journal--index .s-journal__head { margin-bottom: 2.5rem; }    /* 40 */
/* Blog index topics: one line, flush right (Erkki 2026-11-13; was left, 10-19); scroll sideways
   when they don't fit. Right via an auto margin on the first item, so overflow still scrolls. */
.s-journal--index .s-journal__topics > :first-child { margin-left: auto; }
.s-journal--index .s-journal__topics {
  margin-inline: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.s-journal--index .s-journal__topics::-webkit-scrollbar { display: none; }
.s-journal--index .s-journal__topics > * { flex: none; }

.s-journal__add { margin-bottom: 2rem; }

.s-journal__band + .s-journal__band,
.s-journal__band + .posts-list { margin-top: clamp(3rem, 4.75vw, 4.75rem); }  /* 76, 80 */

.grid-3 .post__title { text-wrap: pretty; }

.posts-list { list-style: none; }

.post--row .post__link {
  display: grid;
  grid-template-columns: minmax(0, 1049fr) minmax(0, 471fr);   /* meta column starts at x1049 */
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.3125rem;
  border-bottom: 1px solid var(--color-rule);
}

.post--row:first-child .post__link { padding-top: 0; }

.post--row .post__title { margin-top: 0; }
.post--row .post__meta { margin-top: 0; }

/* --- journal article ------------------------------------------------------ */

.s-article__head {
  margin-top: clamp(3rem, 6.6vw, 6.625rem);    /* title at y169 */
  text-align: center;
}

.s-article__meta {
  justify-content: center;
  margin-top: 0.9375rem;                       /* 15 */
}

.s-article__meta a:hover { color: var(--color-fg); }

.s-article__tags { margin-top: 1rem; }

.s-article__column {
  width: min(100%, 67.04%);                    /* 1019 / 1520 */
  margin-inline: auto;
}

.s-article__lead { margin-top: clamp(4rem, 11vw, 10.9375rem); } /* 175 */

.prose--article { margin-top: clamp(1.5rem, 3.1vw, 3.125rem); } /* 50 */

/* Images break out of the 1019 column to the full container width.
   Voog inserts body images as .edy-texteditor-container > padding-ratio
   wrapper > absolutely positioned <picture>; width, radius and caption go on
   those wrappers, never on the <img> (Voog positions it inline). */
.prose--article {
  --breakout: min(100vw - (2 * var(--gutter-page)), var(--container-max));
}

.prose--article .edy-texteditor-container,
.prose--article > p > img,
.prose--article figure {
  display: block;
  width: var(--breakout) !important;
  max-width: none !important;
  margin-left: calc(50% - var(--breakout) / 2);
  margin-top: clamp(2rem, 4vw, 4rem);          /* ~64 */
  margin-bottom: clamp(2rem, 4vw, 4rem);
  overflow: visible !important;
}

.prose--article .edy-padding-resizer-wrapper,
.prose--article > p > img,
.prose--article figure img {
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}

/* Caption = the image title set in Voog's image dialog. */
.prose--article .edy-image-container-with-title::after,
.prose--article figcaption {
  display: block;
  margin-top: 0.9375rem;                       /* 15 */
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  color: var(--color-muted);
}

.prose--article .edy-image-container-with-title::after { content: attr(data-title); }

.prose--article figcaption a { color: inherit; }

/* --------------------------------------------------------------------------
   Responsive
   Only a 1600px desktop view was designed. Everything below is ours and needs
   designer sign-off — see docs/sviiter-front-page-design-spec.md.
   -------------------------------------------------------------------------- */

/* Tablet: the asymmetric showcase gives way; secondaries sit side by side. */
@media (max-width: 1023px) {
  .s-category__grid { grid-template-columns: 1fr; }
  .s-category__side { grid-template-columns: 1fr 1fr; gap: var(--gutter-col); }

  .s-index { display: block; }
  .s-index__media { width: 100%; }
  .s-index__list { width: 100%; margin-left: 0; margin-top: 2rem; }

  .s-journal__head { grid-template-columns: 1fr; }

  .s-trust__quote,
  .s-trust__attribution { width: 100%; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-brief__inner,
  .s-palette__inner { grid-template-columns: 1fr; row-gap: 2rem; }
  .s-testimonial__inner { width: 100%; margin-left: 0; }
  .s-article__column { width: 100%; }

  .logostrip {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .logostrip::-webkit-scrollbar { display: none; }
}

/* Mobile: single column, nav becomes an overlay. */
@media (max-width: 767px) {
  .site-nav,
  .site-header__lang { display: none; }

  .site-header__inner { grid-template-columns: 1fr auto auto; }
  .site-header__burger { display: block; }

  .site-nav.is-open { display: block; }

  .site-nav.is-open {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--color-bg);
    display: grid;
    place-content: center;
    animation: fade-in var(--dur) var(--ease);
  }

  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    gap: 1.75rem;
    text-align: center;
  }

  .site-nav.is-open .site-nav__link { font-size: var(--type-h2); }
  .site-nav__lang-mobile { display: block; }
  .site-nav__lang-mobile .site-nav__link { color: var(--color-muted); }

  /* Keep the header — and therefore the close button — above the overlay.
     The overlay is a descendant of .site-header, so it shares that stacking
     context: the title and burger need their own z-index to stay on top. */
  [data-nav-open] .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
  }

  [data-nav-open] .site-header__title,
  [data-nav-open] .site-header__burger {
    position: relative;
    z-index: 50;
  }

  .s-category__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .s-category__side { grid-template-columns: 1fr; }
  .case--feature .case__text { grid-template-columns: 1fr; gap: 0.75rem; }

  .s-journal__grid { grid-template-columns: 1fr; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .post--row .post__link { grid-template-columns: 1fr; gap: 0.25rem; }

  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Reveal on scroll — ours, not specified. Restrained, and off entirely for
   users who ask for reduced motion.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* Edit mode only: project field panel (work_item) and category settings button (work_category). */
.s-fields { margin-top: 2rem; }
.s-fields__inner { display: grid; gap: 0.75rem; padding-block: 1.25rem; border-block: 1px solid var(--color-rule); }
.s-fields__row { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; align-items: start; }
.s-fields__label { color: var(--color-muted); }
.s-fields__checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.settings-category { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   General page (page_sviiter: Contact, legal) and Voog forms.
   No Figma frame; built from the 2027 tokens. Voog form markup: .form_area >
   .form_fields > .form_field (.form_field_label + input) and .form_submit.
   -------------------------------------------------------------------------- */
.s-page { margin-top: var(--space-head-body); margin-bottom: var(--space-section); }

.form_fields { display: grid; gap: 1.75rem; }
.form_field_label,
.form_field > label:first-child {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
  font-size: var(--type-meta);
}
.form_field_textfield,
.form_field_textarea,
.form_field_select {
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-rule);
  border-radius: 0;
  background: transparent;
  color: var(--color-fg);
  font: inherit;
  font-size: var(--type-body);
  transition: border-color var(--dur) var(--ease);
}
.form_field_textarea { min-height: 8rem; resize: vertical; }
.form_field_textfield:focus,
.form_field_textarea:focus,
.form_field_select:focus { outline: none; border-bottom-color: var(--color-fg); }
.form_field_checkbox,
.form_field_radio { accent-color: var(--color-logo-pop); margin-right: 0.5rem; }
.form_submit { margin-top: 2rem; }
.form_submit input,
.form_submit button {
  padding: var(--pill-pad-y) calc(var(--pill-pad-x) * 1.5);
  border: 1px solid var(--color-fg);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-fg);
  font: inherit;
  font-size: var(--type-meta);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form_submit input:hover,
.form_submit button:hover { color: var(--color-bg); background: var(--color-fg); }
.form_error,
.form_field_error,
.form_field_with_errors .form_field_label { color: #ff8a7a; }
.form_notice { color: var(--color-fg); font-size: var(--type-body); }

/* --------------------------------------------------------------------------
   Store (product_list, auto_generated_product). List: Figma 4233:1460
   (2026-11); product page: no frame, 2027 parts.
   Voog renders the product widget, buy button, variant selects and cart;
   these rules restyle that markup (.edy-product-widget-*, .edy-buy-button-*).
   -------------------------------------------------------------------------- */
.s-store { margin-top: clamp(3rem, 7.3vw, 7.3125rem); margin-bottom: var(--space-section); } /* title at y180 */

/* Title left, "Discover categories" + pills flush right on the same row; grid 45 below. */
.s-store__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 2.8vw, 2.8125rem);
}
.s-store__intro { margin-bottom: clamp(2rem, 3.5vw, 3.5rem); }

/* widget filter bar (sort + search): hidden on the store page (Erkki 2026-11-13) */
.store-page .s-store .edy-product-widget-filters { display: none; }
.edy-product-widget-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--color-muted);
  font-size: var(--type-meta);
}
.edy-product-widget-filters-item { display: flex; align-items: center; gap: 0.75rem; }
.edy-product-widget-filters-item-flex-grow { flex: 1 1 16rem; }
.edy-product-widget-filter-search { flex: 1; }
.edy-product-widget-filter-sort,
.edy-product-widget-filter-search-input {
  width: 100%;
  padding: 0.375rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-rule);
  border-radius: 0;
  background: transparent;
  color: var(--color-fg);
  font: inherit;
}
.edy-product-widget-filter-sort option { color: #000; }

/* widget grid: columns from Voog's inline --product-widget-columns */
.edy-product-widget-grid,
.edy-product-widget-list {
  display: grid;
  grid-template-columns: repeat(var(--product-widget-columns, 3), minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3.3125rem) clamp(1rem, 2.1vw, 2rem);
}
@media (max-width: 767px) {
  .edy-product-widget-grid,
  .edy-product-widget-list { grid-template-columns: repeat(var(--product-widget-mobile-columns, 2), minmax(0, 1fr)); }
}
.edy-product-widget-item-wrap { min-width: 0; }
.edy-product-widget-item-top {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio-card);
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}
.edy-product-widget-item-top-inner { height: 100%; }
.edy-product-widget-item-image,
.edy-product-widget-item-alt-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 500ms var(--ease), transform 600ms var(--ease);
}
.edy-product-widget-item-alt-image { position: absolute; inset: 0; opacity: 0; }
.edy-with-alt-image:hover .edy-product-widget-item-alt-image { opacity: 1; }
.edy-product-widget-item:hover .edy-product-widget-item-image { transform: scale(1.03); }
.edy-product-widget-item-details-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: var(--space-media-caption);
}
.edy-product-widget-item-title { font-size: var(--type-body); line-height: 1.3333; }
.edy-product-widget-item-details { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.edy-product-widget-item-price { color: var(--color-muted); font-size: var(--type-meta); white-space: nowrap; }
.edy-product-widget-item-price-original { margin-right: 0.5rem; text-decoration: line-through; opacity: 0.6; }
.edy-product-widget-item-btn {
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.edy-product-widget-item-btn:hover { color: var(--color-bg); background: var(--color-fg); border-color: var(--color-fg); }
.edy-product-widget-item-out-of-stock { color: var(--color-muted); font-size: 0.875rem; }

/* Voog's products-widget.css loads after this file with 3-class selectors (black 14px/600
   title, price pulled up by margin-top:-28px, button hidden until hover). Scoped under the
   layout so these win: */
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap {
  color: var(--color-fg);
  font-size: var(--type-body);
  overflow: visible;
}
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-title,
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-title .edy-product-widget-item-link {
  margin: 0;
  color: var(--color-fg);
  font-size: var(--type-h3);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
}
.store-page .s-store .edy-product-widget-item:hover .edy-product-widget-item-title { color: var(--color-muted); }
.store-page .s-store .edy-product-widget-filters .edy-product-widget-filter-sort { color: var(--color-fg); font-size: var(--type-meta); }
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-details-wrap { width: 100%; }

/* Figma 4233:1697 card: square image (733), 21 below it the title (24) with
   "price · category" (16, muted) 10 under it on the left, "Look closer" pill on
   the right. Voog nests price + button in one column (.item-details); display:
   contents lets the grid place them separately. */
.store-page .s-store .edy-product-widget-grid,
.store-page .s-store .edy-product-widget-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 4.06vw, 4.0625rem) var(--gutter-col);   /* 65 · 53 */
}
@media (max-width: 767px) {
  .store-page .s-store .edy-product-widget-grid,
  .store-page .s-store .edy-product-widget-list { grid-template-columns: minmax(0, 1fr); }
}
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-top { aspect-ratio: 1; }
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-details-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title btn" "meta btn";
  align-items: start;
  column-gap: 1.5rem;
  row-gap: 0.625rem;
  margin-top: 1.3125rem;
}
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-wrap > .edy-product-widget-item-url { grid-area: title; }
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-details { display: contents; }
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-wrap > .edy-product-widget-item-url { flex: 1 1 0; min-width: 0; }
/* Voog sets the button/price column to width:100% (4 classes), which halves the title's
   width; size it to its content so the title gets the free width */
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-details {
  flex: 0 0 auto;
  width: auto;
  line-height: var(--leading-normal);
}
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-price span { color: inherit; }
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-price,
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-out-of-stock {
  grid-area: meta;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0;
  transform: none;
  color: var(--color-muted);
  font-size: var(--type-meta);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
}
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-btn,
.store-page .s-store .edy-product-widget-item:hover .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-btn {
  grid-area: btn;
  opacity: 1;
  transform: none;
  pointer-events: all;
  padding: var(--pill-pad-y) var(--pill-pad-x);
  line-height: var(--leading-normal);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--color-muted);
  font-family: inherit;
  font-size: var(--type-meta);
  font-weight: var(--weight-regular);
}
.store-page .s-store .edy-product-widget-item .edy-product-widget-item-details-flex-wrap .edy-product-widget-item-btn:hover {
  color: var(--color-bg);
  background: var(--color-fg);
  border-color: var(--color-fg);
}

/* product page */
.s-product { margin-top: clamp(2rem, 4vw, 3.5rem); margin-bottom: var(--space-section); }
.s-product__back { display: inline-block; margin-bottom: 1.5rem; color: var(--color-muted); }
.s-product__back:hover { color: var(--color-fg); }
.s-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.2vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .s-product__grid { grid-template-columns: 1fr; } }
.s-product__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.s-product__photo { margin: 0; aspect-ratio: 1; }   /* featured + gallery square (Erkki 2026-11-13) */
.s-product__photo--main { grid-column: 1 / -1; }
.s-product__details { position: sticky; top: 2rem; display: grid; gap: 1.75rem; }
@media (max-width: 900px) { .s-product__details { position: static; } }
.s-product__name { margin: 0; }
.s-product__price { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0; font-size: var(--type-h2); }
.s-product__price-original { color: var(--color-muted); font-size: var(--type-body); }
.s-product__stock { font-size: var(--type-meta); }
.s-product-more { margin-bottom: var(--space-section); }

/* Voog buy button + variants (product page and widget modal) */
.edy-buy-button-variants { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.edy-buy-button-variants .form_field_select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 0.75rem) 55%, calc(100% - 0.4rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.edy-buy-button-variants .form_field_select option { color: #000; }
.edy-buy-button-container .form_field { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.edy-buy-button,
.edy-product-widget-modal-btn-wrapper .custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--color-fg);
  border-radius: var(--radius-pill);
  background: var(--color-fg);
  color: var(--color-bg);
  font-size: var(--type-meta);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.edy-buy-button:hover,
.edy-product-widget-modal-btn-wrapper .custom-btn:hover { background: var(--color-logo-pop); border-color: var(--color-logo-pop); color: #ffffff; }
.edy-buy-button-disabled,
.edy-buy-button-disabled:hover,
.custom-btn-disabled {
  background: transparent;
  border-color: var(--color-rule);
  color: var(--color-muted);
  cursor: not-allowed;
}
/* Inactive (no variant chosen / unavailable): Voog sets .edy-buy-button-disabled + [disabled]
   + aria-disabled. A grey pill, so it still reads as a button. */
.s-product .edy-buy-button-container .edy-buy-button.edy-buy-button-disabled,
.s-product .edy-buy-button-container .edy-buy-button.edy-buy-button-disabled:hover,
.edy-product-widget-modal .custom-btn.custom-btn-disabled,
.edy-product-widget-modal .custom-btn.custom-btn-disabled:hover {
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--color-fg) 14%, transparent);
  color: var(--color-dim);
  cursor: not-allowed;
  opacity: 1;
}
.edy-buy-button-price-container { color: var(--color-muted); }
.edy-buy-button-price-original { margin-right: 0.5rem; text-decoration: line-through; }
.edy-product-widget-modal .edy-product-widget-modal-title { color: #000; }

/* "added to cart" toast (components/cart-popover, nuuk global.js toggles .visible) */
.cart_popover-wrap {
  position: fixed;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 50;
  opacity: 0;
  transform: translateY(-0.75rem);
  pointer-events: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.cart_popover-wrap.visible { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.cart_popover {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-media);
  background: var(--color-fg);
  color: var(--color-bg);
  font-size: var(--type-meta);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.35);
}
.cart_popover-icon svg { display: block; }
.cart_popover-icon svg path { fill: var(--color-bg); }
.cart_popover-content--product { font-weight: var(--weight-regular); }
.cart_popover-content--view { margin-top: 0.125rem; text-decoration: underline; }

/* fb1-store: category pills above the product widget (product_list.tpl, filled by its
   inline script); label row as the blog's "Discover topics". */
.s-store__cats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.3125rem;
}
.s-store__cats[hidden] { display: none; }
.s-store__cats-label { font-size: var(--type-h3); color: var(--color-muted); }
.store-page .s-store .edy-product-widget-item-wrap.is-cat-hidden { display: none !important; }
/* fb1-store end */

/* fb1-work-item: project page order cover > title > tasks/intro > project_body > quote
   (work_item.tpl, feedback 16b). Figma 4131:1881 has the cover under the title; the client
   asked for it above, so the cover takes the page-top gap and the title the old
   cover > lead gap (65). project_body is one free prose area: text in the intro column
   (same 448 | 1019 grid as .s-brief), images break out to the full container on the left. */
.s-hero--top { margin-top: clamp(3rem, 6.6vw, 6.625rem); }               /* as .s-pagehead */
.s-pagehead--project { margin-top: clamp(2.5rem, 4.1vw, 4.0625rem); }   /* 65 */

.s-body { margin-top: clamp(3rem, 5.6vw, 5.625rem); }                   /* 90 */
.s-body__inner {
  display: grid;
  grid-template-columns: minmax(0, 448fr) minmax(0, 1019fr);
  column-gap: var(--gutter-col);
}
.s-body__inner > * { grid-column: 2; }
.s-body__note { margin-bottom: 1rem; color: var(--color-muted); font-size: var(--type-meta); }

.prose--project { --breakout: min(100vw - (2 * var(--gutter-page)), var(--container-max)); }
.prose--project .edy-texteditor-container,
.prose--project > p:has(> img:only-child),
.prose--project figure {
  display: block;
  width: var(--breakout) !important;
  max-width: none !important;
  margin-left: calc(100% - var(--breakout));
  margin-top: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 4rem);
  overflow: visible !important;
}
.prose--project > p:has(> img:only-child) > img { width: 100%; }
.prose--project > :first-child { margin-top: 0; }
.prose--project > :last-child { margin-bottom: 0; }
.prose--project .edy-padding-resizer-wrapper,
.prose--project > p > img,
.prose--project figure img {
  display: block;
  height: auto;
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}
.prose--project .edy-image-container-with-title::after,
.prose--project figcaption {
  display: block;
  margin-top: 0.9375rem;
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  color: var(--color-muted);
}
.prose--project .edy-image-container-with-title::after { content: attr(data-title); }

@media (max-width: 1023px) {
  .s-body__inner { grid-template-columns: 1fr; }
  .s-body__inner > * { grid-column: 1; }
}
/* fb1-work-item end */

/* fb1-front: front page feedback round 1 (#17 project quotes, edit-mode notes) */
blockquote.s-trust__quote { margin-bottom: 0; }
.s-trust__fig { margin: 0; }
.s-trust__fig[hidden] { display: none; }
.s-trust__project { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
.s-trust__project:hover,
.s-trust__project:focus-visible { color: var(--color-fg); }
.fb1-edit-note { margin-top: 1.5rem; color: var(--color-muted); }
/* end fb1-front */

/* --------------------------------------------------------------------------
   Contact (layouts/contact.tpl). Figma 4233:1762, 2026-11.
   -------------------------------------------------------------------------- */

/* Company details: each paragraph of "body" is one of three columns (y388, 90 under the lead). */
.s-contact { margin-top: clamp(2.5rem, 5.6vw, 5.625rem); }
.s-contact__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter-col);
  row-gap: 1.5rem;
  align-items: start;
  font-size: var(--type-body);
  line-height: var(--leading-normal);
}
.s-contact__info > div > :first-child { margin-top: 0; }
.s-contact__info > div > :last-child { margin-bottom: 0; }
.s-contact__legacy { display: contents; }
.s-contact__legacy > p { margin: 0; }
.s-contact__info a[href^="mailto:"] {
  display: inline-flex;
  padding: var(--pill-pad-y) var(--pill-pad-x);
  border: 1px solid var(--color-fg);
  border-radius: var(--radius-pill);
  font-size: var(--type-meta);
  line-height: var(--leading-normal);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.s-contact__info a[href^="mailto:"]:hover,
.s-contact__info a[href^="mailto:"]:focus-visible { color: var(--color-bg); background: var(--color-fg); }

/* Social icons, 20 px, 20 apart, 27 under the details. */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.6875rem;
}
.social-icons a { display: block; line-height: 0; transition: color var(--dur) var(--ease); }
.social-icons a:hover,
.social-icons a:focus-visible { color: var(--color-muted); }

/* People cards: portrait 471:733, name 24 21 below, role · phone · e-mail 16 muted 21 below. */
.s-people { margin-top: clamp(3.5rem, 6.3vw, 6.3125rem); }
.person > * { margin: 0; }
.person img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 471 / 733;
  object-fit: cover;
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}
.person > :is(p, figure, div):has(img) { margin-bottom: 1.3125rem; }
/* Voog's editor inserts the portrait as .edy-texteditor-container > padding-ratio
   wrapper (the photo's own ratio, inline) > absolute <picture>; force the box
   to 471:733 and let the image cover it, whatever the upload's ratio. */
.person .edy-texteditor-container {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 0 1.3125rem;
}
.person .edy-padding-resizer-wrapper {
  padding-bottom: calc(733 / 471 * 100%) !important;
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}
.person .edy-padding-resizer-wrapper :is(picture, img) {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto;
  border-radius: 0;
}
.publicmode .person:not(:has(img))::before {
  content: "";
  display: block;
  aspect-ratio: 471 / 733;
  margin-bottom: 1.3125rem;
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}
.person :is(h1, h2, h3, h4) {
  margin: 0;
  font-size: var(--type-h3);
  font-weight: var(--weight-light);
  line-height: var(--leading-normal);
}
.person :is(p, ul) {
  color: var(--color-muted);
  font-size: var(--type-meta);
  line-height: var(--leading-normal);
}
.person :is(h1, h2, h3, h4) + :is(p, ul) { margin-top: 1.3125rem; }
.person p:has(img) { color: inherit; }
/* A list renders on one line with dot separators, like the store meta line. */
.person ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.625rem;
  padding: 0;
  list-style: none;
}
.person li + li::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 2px;
  margin-right: 0.625rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
.person a:hover { color: var(--color-fg); }

@media (max-width: 767px) {
  .s-contact__info { grid-template-columns: minmax(0, 1fr); }
}

/* Services index row text (Service element "text", optional). */
.idx__text { display: block; margin-top: 0.5rem; color: var(--color-muted); }

/* Service row form: the hover image box, same as the project cover (2026-11-23). */
.s-service__img { max-width: 36rem; }

/* Edit mode: project cover fills the box; Voog's image control top-left on top (work_item, #15). */
.s-hero__edit {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  max-width: 12rem;
  border-radius: 0.5rem;
  background: var(--color-bg);
}

/* Rounded images: the grey placeholder behind an image bled through as a thin
   light fringe on the anti-aliased corners (Erkki 2026-11-23, /pood "Matrix").
   Once a box holds an image, nothing is painted behind it. */
.media:has(> img),
.edy-product-widget-item-top:has(img),
.prose--article .edy-padding-resizer-wrapper:has(img),
.prose--project .edy-padding-resizer-wrapper:has(img) { background: none; }
.media-slot img,
.prose--article > p > img,
.prose--article figure img,
.prose--project > p > img,
.prose--project figure img,
.person img { background: none; }
