/* Storefront-specific layout. Tokens come from ../../colors_and_type.css */

* { box-sizing: border-box; }
body { margin: 0; }

.app {
  min-height: 100vh;
  background: var(--paper);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Top utility bar ----- */
.utilbar {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-xs);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.utilbar .utilbar-inner { display: flex; align-items: center; gap: 18px; width: 100%; }
.utilbar .item { display: inline-flex; align-items: center; gap: 6px; color: rgba(246, 244, 239, 0.78); }
.utilbar .item.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); display: inline-block; }
.utilbar .spacer { flex: 1; }
.utilbar a { color: var(--paper); }

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header .row { display: flex; align-items: center; gap: 28px; width: 100%; }
.header .logo img { height: 36px; display: block; }
.header nav { display: flex; gap: 22px; }
.header nav { align-items: center; }
.header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
}
.header nav a:hover { color: var(--ink); text-decoration: none; }
.header nav a.active { color: var(--ink); }
.header nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--heat-500);
}
.header nav a.pillar {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink); font-weight: 600;
}
.header nav a.pillar svg { color: var(--ink-3); }
.header .actions { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.header .icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: var(--r-2); cursor: pointer;
}
.header .icon-btn:hover { background: var(--paper-2); }
.header .cart-count {
  background: var(--heat-500); color: #fff; font-size: 10px; font-family: var(--font-mono);
  padding: 1px 5px; border-radius: 999px; margin-left: -8px; margin-top: -10px;
}
.header .search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r-2); padding: 0 12px;
  width: 320px; height: 38px;
}
.header .search input { flex: 1; border: none; outline: none; background: transparent; font: inherit; font-size: var(--fs-sm); }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.hero .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 18px; max-width: 12ch; }
.hero h1 .accent { color: var(--heat-500); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 48ch; margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .meta { display: flex; gap: 22px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero .meta .stat .num { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--ink); display: block; }
.hero .meta .stat .lbl { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

.hero .visual {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  aspect-ratio: 5 / 4;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}
.hero .visual .product { display: flex; align-items: center; justify-content: center; padding: 24px; }
.hero .visual .product img { max-width: 100%; max-height: 100%; }
.hero .visual .strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); background: var(--paper);
}
.hero .visual .strip .cell { padding: 14px 16px; border-right: 1px solid var(--line); }
.hero .visual .strip .cell:last-child { border-right: 0; }
.hero .visual .strip .cell .lbl { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.hero .visual .strip .cell .val { font-family: var(--font-mono); font-size: 14px; color: var(--ink); margin-top: 2px; }

/* ----- Section ----- */
.section { padding: var(--wp--preset--spacing--60) 0; } /* =56px desktop (design), fluid down — was spacing|80 (96, overshoot) */
.section.tinted { background: var(--paper-2); }
.section .head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 20px; }
.section .head h2 { margin: 0; font-size: 30px; letter-spacing: -0.01em; font-weight: 600; }
.section .head .sub { color: var(--ink-3); font-size: 14px; max-width: 48ch; margin-top: 6px; }
.section .head .link { font-size: 13px; font-weight: 500; color: var(--brand-500); cursor: pointer; }
.section .head .link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ----- Category grid ----- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.cat-tile:hover { border-color: var(--line-3); box-shadow: var(--sh-2); }
.cat-tile .iconwrap { width: 44px; height: 44px; border-radius: var(--r-2); background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--brand-500); }
.cat-tile .iconwrap.heat { color: var(--heat-500); }
.cat-tile .iconwrap.cool { color: var(--cool-500); }
.cat-tile .name { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.cat-tile .count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cat-tile .arrow { margin-top: auto; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }

/* ----- Product card ----- */
.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  position: relative;
}
.pcard:hover { border-color: var(--line-3); box-shadow: var(--sh-2); }
.pcard .corner { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; z-index: 1; }
.pcard .corner-r { position: absolute; top: 10px; right: 10px; z-index: 1; }
.pcard .img { aspect-ratio: 1 / 1; padding: 14px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--paper-2); background: var(--white); }
.pcard .img img { max-width: 100%; max-height: 100%; }
.pcard .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); font-weight: 500; }
.pcard .name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; min-height: 2.6em; }
.pcard .specs { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.pcard .meta-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pcard .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.pcard .price { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1; }
.pcard .price small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); font-family: var(--font-sans); font-weight: 400; }

/* ----- Energy chip ----- */
.echip { display: inline-flex; align-items: center; color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 2px 9px 2px 7px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.echip.dark-text { color: var(--ink); }

/* ----- Stock dot ----- */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.stock .dot { width: 6px; height: 6px; border-radius: 50%; }
.stock.in    { color: var(--stock-in); }       .stock.in .dot    { background: var(--stock-in); }
.stock.low   { color: var(--stock-low); }      .stock.low .dot   { background: var(--stock-low); }
.stock.out   { color: var(--stock-out); }      .stock.out .dot   { background: var(--stock-out); }
.stock.order { color: var(--stock-order); }    .stock.order .dot { background: var(--stock-order); }

/* ----- Badges ----- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.badge.new  { background: var(--ink); color: var(--white); }
.badge.sale { background: var(--heat-500); color: var(--white); }
.badge.outline { background: var(--white); border: 1px solid var(--line-2); color: var(--ink-2); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-sm);
  padding: 10px 16px; border-radius: var(--r-2);
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--heat-500); color: var(--white); }
.btn-primary:hover { background: var(--heat-600); color: var(--white); }
.btn-secondary { background: var(--brand-500); color: var(--white); }
.btn-secondary:hover { background: var(--brand-600); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--paper-2); border-color: var(--line-3); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand-500); padding: 10px 8px; }
.btn-ghost:hover { color: var(--brand-600); }
.btn-sm { font-size: 13px; padding: 7px 12px; }
.btn-lg { font-size: 15px; padding: 14px 22px; }
.btn-block { width: 100%; }

/* ============================================================
   Services section — peer to products, not a sub-category of them.
   Services do not have stock/price/SKU. They have scope, duration,
   what's included, who performs the work, and a request CTA.
   ============================================================ */
.services-section { padding: 64px 0; background: var(--paper-2); }
.services-section .head .muted { color: var(--ink-3); font-weight: 500; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.scard {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 20px 22px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  cursor: pointer;
}
.scard:hover { border-color: var(--line-3); box-shadow: var(--sh-2); }

.scard .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.scard .top .ic {
  width: 40px; height: 40px;
  border-radius: var(--r-2);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-500);
  flex: 0 0 auto;
}
.scard.tone-navy  .top .ic { background: var(--navy-50);  color: var(--navy-500); }
.scard.tone-heat  .top .ic { background: var(--heat-50);  color: var(--heat-500); }
.scard.tone-brand .top .ic { background: var(--brand-50); color: var(--brand-500); }

.scard .top .tag {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--ink-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.scard .body { display: flex; flex-direction: column; gap: 8px; }
.scard .name {
  font-size: 19px; line-height: 1.25; font-weight: 600;
  color: var(--ink); margin: 0; letter-spacing: -0.005em;
}
.scard .lede { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }

.scard .incl {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.scard .incl li {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--ink-2);
}
.scard .incl li svg { color: var(--success); flex: 0 0 auto; }

.scard .meta {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--paper-2);
  padding-top: 14px;
}
.scard .meta .cell + .cell { border-left: 1px solid var(--paper-2); padding-left: 14px; }
.scard .meta .cell .k {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--ink-4);
  margin-bottom: 4px; font-weight: 500;
}
.scard .meta .cell .v {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--ink); font-weight: 500;
}

.scard .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--paper-2);
}
.scard .foot .who { font-size: 12px; color: var(--ink-3); }

/* Avariiremont: red rail along the left edge to mark urgency without shouting. */
.scard.urgent { border-left: 3px solid var(--heat-500); }
.scard.urgent .top .ic { background: var(--heat-50); color: var(--heat-500); }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* When in showroom voice — services breathe more, like editorial. */
body[data-voice="showroom"] .services-grid { gap: 24px; }
body[data-voice="showroom"] .scard { padding: 28px 28px 22px; }
body[data-voice="showroom"] .scard .name { font-size: 22px; }
body[data-voice="showroom"] .scard .name { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }

/* When in marketplace voice — services go 3-up, denser. */
body[data-voice="marketplace"] .services-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
body[data-voice="marketplace"] .scard { padding: 14px; gap: 10px; }
body[data-voice="marketplace"] .scard .name { font-size: 15px; }
body[data-voice="marketplace"] .scard .lede { font-size: 12px; }
body[data-voice="marketplace"] .scard .incl li { font-size: 11.5px; }
body[data-voice="marketplace"] .scard .meta .cell .v { font-size: 12px; }
body[data-voice="marketplace"] .services-section { padding: 32px 0; }

/* Plate frame: sharp navy edges on services too. */
body[data-frame="plate"] .scard { border: 2px solid var(--ink); border-radius: 0; box-shadow: none; }
body[data-frame="plate"] .scard:hover { background: var(--paper-2); box-shadow: none; }
body[data-frame="plate"] .scard.urgent { border-left-color: var(--heat-500); border-left-width: 6px; }
body[data-frame="plate"] .scard .top .tag { border-radius: 0; }

/* Float frame: services lose their border, gain a soft drop shadow. */
body[data-frame="float"] .scard {
  border: 0; border-radius: 14px;
  box-shadow: 0 1px 0 rgba(4,36,59,0.03), 0 8px 24px rgba(4,36,59,0.07);
}
body[data-frame="float"] .scard:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(4,36,59,0.04), 0 16px 36px rgba(4,36,59,0.12); }
body[data-frame="float"] .scard.urgent { border-left: 4px solid var(--heat-500); border-radius: 0 14px 14px 0; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-3); }
.trust .cell { padding: 22px 24px; border-right: 1px solid var(--line); display: flex; gap: 14px; }
.trust .cell:last-child { border-right: 0; }
.trust .cell .ic { color: var(--brand-500); flex: 0 0 auto; }
.trust .cell .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.trust .cell .desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

/* ----- Featured products grid ----- */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ----- Admin peek ----- */
.adminpeek {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: stretch;
  background: var(--ink); color: var(--paper); border-radius: var(--r-4); overflow: hidden;
}
.adminpeek .left { padding: 36px 36px; display: flex; flex-direction: column; justify-content: center; }
.adminpeek .left .eyebrow { color: var(--heat-300); }
.adminpeek .left h2 { color: #fff; font-size: 30px; margin: 6px 0 12px; letter-spacing: -0.01em; }
.adminpeek .left p { color: rgba(246,244,239,0.78); max-width: 44ch; }
.adminpeek .left ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.adminpeek .left ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--paper); }
.adminpeek .left ul li svg { color: var(--heat-300); }
.adminpeek .right { background: #07121C; padding: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--paper-2); border-left: 1px solid #122131; }
.adminpeek .right .filename { color: var(--ink-4); margin-bottom: 8px; }
.adminpeek .right pre { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.adminpeek .right pre .k { color: #6FA8DC; } /* key */
.adminpeek .right pre .s { color: #C5E1A5; } /* string */
.adminpeek .right pre .n { color: #F2B286; } /* number */
.adminpeek .right pre .c { color: #5A6877; } /* comment */

/* ----- Footer ----- */
/* padding-top 56px desktop (design storefront.css:383) = preset-60 exact;
   margin-top: design 64px → preset-70 (72px desktop) — nearest preset, accepted drift */
.footer { background: var(--ink); color: var(--paper); margin-top: var(--wp--preset--spacing--70); padding: var(--wp--preset--spacing--60) 0 28px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--paper); font-size: 14px; }
.footer ul a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.footer .brandcol .logo img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer .brandcol p { color: rgba(246,244,239,0.7); font-size: 13px; line-height: 1.6; max-width: 32ch; }
.footer .brandcol .contact { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(246,244,239,0.85); font-family: var(--font-mono); }
.footer .partners { margin-top: 36px; padding-top: 22px; border-top: 1px solid #1F2A36; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer .partners .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); margin-right: 6px; }
.footer .partners .partner { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: rgba(246,244,239,0.55); padding: 4px 10px; border: 1px solid #1F2A36; border-radius: var(--r-2); letter-spacing: -0.01em; }
.footer .legal { margin-top: 28px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-4); }

/* ----- Listing layout ----- */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); padding: 16px 0; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--ink-4); }

.lst-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lst-head h1 { font-size: 32px; margin: 0 0 4px; letter-spacing: -0.01em; }
.lst-head .sub { font-size: 13px; color: var(--ink-3); }
.lst-head .meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-3); }
.lst-head .meta .count { font-family: var(--font-mono); color: var(--ink-2); }

.lst-shell { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 24px 0 64px; }

.filters { font-size: 14px; }
.filters .group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filters .group:first-child { padding-top: 4px; }
.filters .group h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filters .group h4 .chev { color: var(--ink-3); font-size: 11px; }
.filters .group .opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.filters .group .opt input { width: 14px; height: 14px; accent-color: var(--brand-500); }
.filters .group .opt .ct { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.filters .group .range { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.filters .group .range input { flex: 1; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r-2); font: inherit; font-family: var(--font-mono); font-size: 12px; outline: none; }
.filters .reset { background: transparent; border: none; color: var(--brand-500); font-size: 12px; padding: 0; cursor: pointer; }

.results-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.results-head .chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px; border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip:hover { background: var(--paper-2); }
.chip.on:hover { background: var(--ink-2); color: var(--white); }
.results-head .sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.results-head .sort select { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--white); color: var(--ink); }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ----- AI assistant ----- */
.ai-pill {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: var(--white);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 10px 16px 10px 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--sh-pop); cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: transform var(--t-base) var(--ease-out);
}
.ai-pill:hover { transform: translateY(-1px); }
.ai-pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.ai-pill .ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-500); color: #fff; border-radius: 50%; }

.ai-panel {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 420px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 100px);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-4);
  box-shadow: var(--sh-pop);
  display: flex; flex-direction: column; overflow: hidden;
  font-family: var(--font-sans);
}
.ai-panel .head {
  padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
}
.ai-panel .head .title { display: flex; align-items: center; gap: 10px; }
.ai-panel .head .title .live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.ai-panel .head .title strong { font-size: 14px; font-weight: 600; }
.ai-panel .head .title .by { font-size: 12px; color: var(--ink-3); }
.ai-panel .head .x { background: transparent; border: none; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.ai-panel .stream { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.ai-panel .msg-u {
  align-self: flex-end; max-width: 80%;
  background: var(--paper-2); color: var(--ink); padding: 10px 14px; border-radius: 12px 12px 2px 12px; font-size: 14px; line-height: 1.45;
}
.ai-panel .msg-a { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 92%; }
.ai-panel .msg-a strong { color: var(--ink); font-weight: 600; }
.ai-panel .suggest {
  margin-top: 10px; display: flex; gap: 12px; padding: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3);
}
.ai-panel .suggest img { width: 64px; height: 64px; background: var(--white); border-radius: var(--r-2); object-fit: contain; padding: 4px; }
.ai-panel .suggest .info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ai-panel .suggest .b { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); font-weight: 500; }
.ai-panel .suggest .n { font-size: 13px; font-weight: 600; color: var(--ink); }
.ai-panel .suggest .s { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.ai-panel .suggest .p { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); align-self: end; }
.ai-panel .quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.ai-panel .quick .q { font-size: 12px; padding: 6px 10px; border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.ai-panel .quick .q:hover { background: var(--paper-2); }
.ai-panel .composer { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.ai-panel .composer input { flex: 1; border: none; outline: none; font: inherit; font-size: 14px; padding: 6px 4px; background: transparent; }
.ai-panel .composer button { background: var(--brand-500); color: #fff; border: none; padding: 8px 14px; border-radius: var(--r-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.ai-panel .composer button:hover { background: var(--brand-600); }
.ai-panel .foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-4); display: flex; align-items: center; gap: 8px; background: var(--paper); }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero .grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 44px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .results-grid { grid-template-columns: repeat(2, 1fr); }
  .lst-shell { grid-template-columns: 1fr; }
  .filters { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust .cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .adminpeek { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  /* core/navigation handles mobile via its own hamburger overlay — don't hide it */
  .header .search { width: 200px; }
}
@media (max-width: 600px) {
  .ai-panel { width: calc(100vw - 16px); right: 8px; bottom: 8px; height: calc(100vh - 80px); }
  .featured-grid, .results-grid, .cats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
}


/* ============================================================
   Homepage v2 — service-led
   ============================================================ */

/* Hero h1 — longer headline than the old version */
.hero h1 { max-width: 14ch; }
.hero h1 .accent { color: var(--brand-500); }   /* navy red, matches logo */

/* Right-side service ticket — what a typical engagement looks like */
.hero-ticket {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  box-shadow: var(--sh-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
}
.hero-ticket .ticket-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px dashed var(--line-2);
}
.hero-ticket .ticket-head .ticket-no { font-size: 11px; color: var(--ink-3); }
.hero-ticket .ticket-body { padding: 22px 22px 8px; }
.hero-ticket .ticket-title {
  margin: 0 0 18px;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2;
  color: var(--ink);
}
.hero-ticket .ticket-steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.hero-ticket .ticket-steps::before {
  content: ""; position: absolute;
  left: 5px; top: 14px; bottom: 14px; width: 1px;
  background: var(--line-2);
}
.hero-ticket .ticket-steps li {
  display: grid; grid-template-columns: 16px 1fr auto;
  gap: 12px; align-items: start;
  padding: 10px 0;
  position: relative;
}
.hero-ticket .ticket-steps li .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--brand-500);
  margin-top: 4px; flex: 0 0 auto;
  position: relative; z-index: 1;
}
.hero-ticket .ticket-steps .step-name {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.hero-ticket .ticket-steps .step-meta {
  font-size: 12px; color: var(--ink-3); margin-top: 2px;
}
.hero-ticket .ticket-steps .step-dur {
  font-size: 11px; color: var(--ink-4); align-self: center;
}
.hero-ticket .ticket-foot {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.hero-ticket .ticket-cell { padding: 14px 16px; border-right: 1px solid var(--line); }
.hero-ticket .ticket-cell:last-child { border-right: 0; }
.hero-ticket .ticket-cell .k {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-4); font-weight: 500; margin-bottom: 4px;
}
.hero-ticket .ticket-cell .v {
  font-size: 13px; color: var(--ink); font-weight: 500;
}

/* Trust + numbers section */
.trust-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-3); overflow: hidden;
  margin-bottom: 32px;
}
.tstat {
  padding: 28px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.tstat:last-child { border-right: 0; }
.tstat .num {
  font-size: 48px; line-height: 1; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
}
.tstat .lbl {
  font-size: 14px; color: var(--ink); font-weight: 500;
  margin-top: 8px;
}
.tstat .sub { font-size: 12px; color: var(--ink-3); }

.trust-foot {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
@media (max-width: 980px) {
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .tstat:nth-child(odd) { border-right: 1px solid var(--line); }
  .tstat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tstat:nth-child(2n) { border-right: 0; }
  .trust-foot { grid-template-columns: 1fr; gap: 28px; }
}

.region-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-3); overflow: hidden;
}
.region {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.region:nth-child(3n) { border-right: 0; }
.region:nth-last-child(-n+3) { border-bottom: 0; }
.region-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.region-meta { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.region-count { font-size: 13px; font-weight: 600; color: var(--brand-500); }
.region-city { font-size: 12px; color: var(--ink-3); }

.guarantee-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.guarantee-list li {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 12px; align-items: start;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}
.guarantee-list .g-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.guarantee-list .g-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* Secondary shop entry */
.shop-entry-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 24px;
}
.shop-entry-head h2 { margin: 6px 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -0.012em; }
.shop-entry-head .sub { color: var(--ink-3); font-size: 14px; max-width: 56ch; margin: 0; line-height: 1.55; }
.shop-entry-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.cat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font: inherit; font-size: 13px; color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.cat-chip:hover { background: var(--paper-2); border-color: var(--line-3); }
.cat-chip .ch-name { font-weight: 500; }
.cat-chip .ch-count {
  font-size: 11px; color: var(--ink-4);
  padding-left: 6px; border-left: 1px solid var(--line-2);
  margin-left: 2px;
}
.cat-chip img { width: 18px; height: 18px; opacity: 0.7; }
.cat-chip svg { width: 18px; height: 18px; color: var(--ink-3); }
/* active filter chip (JS-driven): dark fill; invert the line-icon to stay visible */
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chip.is-active svg { color: #fff; }
.cat-chip.is-active img { filter: brightness(0) invert(1); opacity: 1; }
.cat-chip.is-active .ch-count { color: rgba(255,255,255,0.7); border-left-color: rgba(255,255,255,0.3); }


/* ============================================================
   Hero visual — Nordic room with installed unit (pure CSS scene)
   ============================================================ */
.hero { padding-top: 56px; padding-bottom: 56px; }
.hero .grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; max-width: 540px; }
.hero h1 { font-size: 60px; margin-bottom: 16px; }
.hero p.lead { margin-bottom: 24px; max-width: 38ch; }

.hero-visual {
  position: relative;
  border-radius: var(--r-4);
  overflow: hidden;
  background: #F3EDE0;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  min-height: 460px;
}
.scene { position: absolute; inset: 0; }

/* warm warm-light wash */
.scene .wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(244,196,128,0.45) 0%, transparent 60%),
    linear-gradient(180deg, #F1ECE2 0%, #E5DECC 100%);
}
/* window with two panes */
.scene .window {
  position: absolute; right: 8%; top: 12%; width: 26%; height: 44%;
  border: 6px solid #FAF6EE;
  background: #FAF6EE;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 14px 28px rgba(122,93,40,0.12);
}
.scene .window .pane {
  background: linear-gradient(180deg, #F4DDA8 0%, #D9B273 100%);
  border: 1px solid #FAF6EE;
}
/* wood floor with subtle plank lines */
.scene .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background:
    repeating-linear-gradient(90deg,
      rgba(80,55,28,0.07) 0 1px, transparent 1px 110px),
    linear-gradient(180deg, #C8AD7A 0%, #A88654 100%);
}
/* wall-mounted unit */
.scene .unit {
  position: absolute; left: 14%; top: 38%; width: 36%; height: 14%;
  background: #FCFBF7;
  border: 1px solid #D9CFB6;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(14,24,34,0.14);
}
.scene .unit::after {
  /* vent slit */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 30%; height: 3px;
  background: #E2DBC4; border-radius: 1px;
}
.scene .unit .unit-led {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 10px rgba(200,34,43,0.55);
}
/* potted plant on the floor */
.scene .plant {
  position: absolute; left: 6%; bottom: 12%;
  width: 60px; height: 110px;
}
.scene .plant .pot {
  position: absolute; left: 10px; bottom: 0; width: 40px; height: 36px;
  background: linear-gradient(180deg, #8C5E2A, #6B4719);
  border-radius: 4px 4px 8px 8px;
}
.scene .plant .leaf {
  position: absolute; left: 50%; bottom: 30px;
  width: 14px; height: 60px;
  background: linear-gradient(180deg, #3C6B3B, #244920);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform-origin: bottom center;
}
.scene .plant .leaf.l1 { transform: translateX(-50%) rotate(-22deg); height: 70px; }
.scene .plant .leaf.l2 { transform: translateX(-50%) rotate(0deg); height: 80px; }
.scene .plant .leaf.l3 { transform: translateX(-50%) rotate(22deg); height: 65px; }

/* Spec-tag overlay */
.hero-tag {
  position: absolute; right: 20px; bottom: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--sh-2);
  min-width: 200px;
}
.hero-tag .hero-tag-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.hero-tag .hero-tag-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

@media (max-width: 980px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .hero h1 { font-size: 44px; }
}


/* ============================================================
   Domain cards — editorial 2x2 grid, image-led, low text density
   ============================================================ */
.domains-section { padding: 56px 0; }
.domains-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) {
  .domains-grid { grid-template-columns: 1fr; }
}
.domain-card {
  display: grid; grid-template-rows: 200px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.domain-card:hover {
  border-color: var(--line-3);
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
}

.domain-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.domain-art::before {
  /* Soft inner highlight — gives the gradient a paper-like depth */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 30% 25%, rgba(255,255,255,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.domain-tag {
  position: absolute; top: 16px; left: 16px;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--ink-2);
  padding: 5px 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(4,36,59,0.08);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.domain-glyph {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 8px 28px rgba(4,36,59,0.10);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.domain-glyph img {
  width: 64px; height: 64px;
  /* CategoryIcon resolves to <img src="../../assets/icons/{name}.svg"> — the
     SVGs are monochrome graphite. Tint via filter so the glyph adopts the
     domain accent colour. */
  filter: brightness(0) saturate(100%) invert(13%) sepia(15%) saturate(2200%) hue-rotate(180deg) brightness(95%) contrast(95%);
  opacity: 0.85;
}
.domain-card:nth-child(1) .domain-glyph img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(2600%) hue-rotate(345deg) brightness(85%) contrast(95%);
}
.domain-card:nth-child(3) .domain-glyph img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(38%) saturate(580%) hue-rotate(150deg) brightness(85%) contrast(90%);
}

.domain-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.domain-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.domain-name {
  margin: 0; font-size: 24px; font-weight: 600;
  letter-spacing: -0.012em; color: var(--ink);
}
.domain-cta {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background var(--t-fast), color var(--t-fast);
}
.domain-card:hover .domain-cta { background: var(--brand-500); color: #fff; }

.domain-lede { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; max-width: 44ch; }

.domain-foot {
  display: flex; gap: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-2);
  margin-top: 4px;
}
.domain-cell { display: flex; flex-direction: column; gap: 2px; }
.domain-cell .k {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--ink-4); font-weight: 500;
}
.domain-cell .v { font-size: 14px; font-weight: 600; color: var(--ink); }


/* Old .process-section (horizontal dashed-line timeline) removed —
   superseded by the Block-First .process-strip below (native grid + flex). */

.process-foot {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
}
.process-foot-lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-4); font-weight: 500;
}

/* ============================================================
   Trust v2 — typographic + Estonia map
   ============================================================ */
.trust-v2 { padding: 80px 0; background: var(--paper); }
.trust-v2-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 980px) {
  .trust-v2-grid { grid-template-columns: 1fr; gap: 40px; }
}

.trust-statement .eyebrow { margin-bottom: 16px; display: inline-block; }
.trust-headline {
  margin: 0 0 32px;
  font-size: 52px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 600;
  color: var(--ink);
}
.trust-headline .num {
  color: var(--brand-500);
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
  font-feature-settings: "tnum";
}
.trust-headline .muted { color: var(--ink-3); font-weight: 500; }

.trust-pillars { display: flex; flex-direction: column; gap: 14px; }
.trust-pillars .pillar {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-size: 14px; color: var(--ink-2);
}
.trust-pillars .pillar strong { color: var(--ink); font-weight: 600; }

/* Map card */
.map-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px 28px 22px;
  position: relative;
}
.estonia-map {
  width: 100%; height: auto; display: block;
}
.map-legend {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2);
  gap: 16px; flex-wrap: wrap;
}
.legend-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--ink-3); font-weight: 500;
}
.legend-scale { display: flex; align-items: center; gap: 8px; }
.ls-dot {
  display: inline-block;
  border-radius: 50%; background: var(--brand-500); opacity: 0.85;
}
.ls-meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3); margin-right: 8px;
}
.ls-meta:last-child { margin-right: 0; }

.map-dot circle:nth-child(2) { transition: r 200ms var(--ease-out); }
.map-dot:hover circle:nth-child(2) { r: var(--hover-r, 8); }


/* ============================================================
   Homepage additions — Portfolio strip, Process strip, Brand strip
   (loaded from HomeAdditions.jsx)
   ============================================================ */

/* ----- Portfolio strip ----- */
.portfolio-strip {
  /* tinted base from .section.tinted; cards lift off paper-2 */
}
/* .portfolio-grid: grid is NATIVE (post-template grid layout, Block-First) */
.case-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.case-card {
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.case-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-4px);
}
/* subtle depth gradient on the photo (bottom) — makes the corner pill sit on tone */
.case-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 24, 40, 0.30), rgba(4, 24, 40, 0) 42%);
}
.case-title { transition: color var(--t-base) var(--ease-out); }
.case-card:hover .case-title { color: var(--brand-500); }
.case-photo {
  /* aspect-ratio is NATIVE (featured-image aspectRatio attr); overlay container stays CSS */
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
}
.case-photo img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 480ms var(--ease-out);
}
.case-card:hover .case-photo img { transform: scale(1.05); }
/* overlays scoped under .case-photo (0,2,0) so they beat the editor's
   position:relative-on-blocks and render as corner pills in the editor too */
.case-photo .case-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 11px; font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  letter-spacing: 0.03em; text-transform: uppercase;
}
.case-photo .case-year {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--r-1);
}
.case-body {
  /* padding is native (block spacing); flex column + gap stay CSS — flex `gap`
     is immune to the .case-* margin:0 resets (native blockGap-as-margin isn't) */
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.case-meta {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.case-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
}
.case-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
}
/* .stack-chip removed — chips now render via core/post-terms <a> (see bridge.css .case-stack a) */
.case-specs {
  /* 3-col grid + gap are NATIVE (block grid layout); divider line stays CSS.
     margin-top:auto pins specs+foot to the card bottom → specs align across
     cards regardless of title/stack length (cards are equal height). */
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.case-specs > div {
  display: flex; flex-direction: column; gap: 2px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.case-specs > div:last-child { border-right: none; padding-right: 0; }
.case-specs dt {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.case-specs dd {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}
.case-foot {
  /* flex/space-between + padding-top are NATIVE; divider stays CSS.
     bottom-pin now lives on .case-specs (specs+foot travel together). */
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.case-brand {
  color: var(--ink-2);
  font-weight: 500;
}
.case-cta {
  color: var(--brand-500);
  font-weight: 500;
}
/* portfolio responsive: NATIVE grid (minimumColumnWidth RAM) — no media queries */

/* ----- Process strip ----- */
.process-strip {
  padding: var(--wp--preset--spacing--70) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.process-head {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
/* eyebrow's stacking margin-bottom (for hero/services) breaks vertical
   centering in this flex row — neutralise it so all items share one center. */
.process-head .is-style-eyebrow { margin-bottom: 0; }
.process-divider.wp-block-separator {
  flex: 0 0 32px;
  width: 32px;
  max-width: 32px;
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-2);
  opacity: 1;
}
.process-sub {
  color: var(--ink-2);
  font-size: 13px;
}
/* .process-list grid + .process-step num|body row = NATIVE block layouts
   (group grid minimumColumnWidth + flex). Only decorative styling here. */
/* stretch (not WP flex default `center`) so ps-body fills the equal-height
   grid row → margin-top:auto on .ps-duration aligns all pills along the bottom. */
.process-step { position: relative; align-items: stretch; }
/* Hairline dividers between steps (design storefront.css:1231) — bespoke
   look the native grid can't draw. Column/stack overrides in mobile.css. */
.process-step + .process-step { padding-left: 24px; border-left: 1px solid var(--line); }
/* the 4 steps live in two native pairs, so the divider between step 2 and 3 (the
   pair boundary) isn't an adjacent-sibling — draw it on the second pair's first
   step. Mobile stacks reset this in mobile.css. */
.process-pair + .process-pair > .process-step:first-child { padding-left: 24px; border-left: 1px solid var(--line); }
.ps-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-500);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.ps-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ps-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.ps-duration {
  font-size: 11px;
  color: var(--ink-3);
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  margin-top: auto; /* push pill to the bottom of the stretched ps-body → all durations align */
  align-self: flex-start;
}
.ps-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  text-wrap: pretty;
}
.ps-arrow {
  display: none; /* arrows replaced by the vertical separator border for clarity */
}
/* process responsive: columns handled natively (group grid minimumColumnWidth
   + gap); the hairline-divider re-flow lives in mobile.css (960/720 blocks) */

/* ----- Brand strip ----- */
.brand-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0;
  border-top: 1px solid #1F2A36;
}
.brand-strip-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
}
.brand-strip-lead {
  display: flex; flex-direction: column; gap: 6px;
}
.brand-strip-lead .eyebrow {
  color: var(--paper);
  opacity: 0.7;
}
.brand-strip-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.brand-strip-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.brand-plaque {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}
.brand-plaque:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}
.bp-name {
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.bp-mark {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
@media (max-width: 760px) {
  .brand-strip-inner { grid-template-columns: 1fr; gap: 14px; }
}

/* ----- Trust strip — 4th pillar: Hooldusleping ----- */
.trust-pillars .pillar.pillar-cta {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 12px 14px;
  align-items: center;
}
.trust-pillars .pillar.pillar-cta .pillar-meta {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.trust-pillars .pillar.pillar-cta .pillar-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--brand-500);
  font-weight: 500;
}
.trust-pillars .pillar.pillar-cta .pillar-link:hover {
  text-decoration: underline; text-underline-offset: 2px;
}


/* Cookie consent: prototype .cookie-banner block removed — live banner is the
   Pressidium plugin restyled as .sk-cookie in bridge.css (see functions.php). */
