/* Hikari by JNF - the old site's stylesheet (hikaribyjnf.com public/assets/css/styles.css). Unchanged
   except the @font-face block, which moved to fonts.css (self-hosted WOFF2, the CSP blocks font hosts). */
/* -------------------------------------------------------------------------- */
/*                          Override Bootstrap Colors                         */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/*                               Generic Styles                               */
/* -------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --panel: #f4f4f0;
  --panel-2: #efece6;
  --greige: #dedacf;
  --greige-2: #d4cfc3;
  --card: #e7e4dd;

  --ink: #16150f;
  --ink-2: #3a3a37;
  --ink-3: #5c5c58;
  --muted: #8d8881;
  --faint: #b6b2aa;
  --line: #e4e1da;
  --line-2: #d3cfc6;

  --accent: #a9885a;
  --accent-soft: rgba(169, 136, 90, 0.12);

  --maxw: 1320px;
  --gutter: clamp(22px, 5vw, 80px);

  --ff: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fd: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 92px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
:root {
  --bg: #ffffff;
  --panel: #f4f4f0;
  --panel-2: #efece6;
  --greige: #dedacf;
  --greige-2: #d4cfc3;
  --card: #e7e4dd;

  --ink: #16150f;
  --ink-2: #3a3a37;
  --ink-3: #5c5c58;
  --muted: #8d8881;
  --faint: #b6b2aa;
  --line: #e4e1da;
  --line-2: #d3cfc6;

  --accent: #a9885a;
  --accent-soft: rgba(169, 136, 90, 0.12);

  --maxw: 1320px;
  --gutter: clamp(22px, 5vw, 80px);

  --ff: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fd: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 92px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}
/* Alpine strips this on init; without it x-cloak elements flash before boot. */
[x-cloak] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
img {
  display: block;
  max-width: 100%;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}
::selection {
  background: var(--accent-soft);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wide {
  max-width: 1640px;
}

/* kicker / eyebrow */
.kicker {
  font-family: var(--ff);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif {
  font-family: var(--fs);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.snav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--greige);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  transition:
    box-shadow 0.4s var(--ease),
    background 0.4s var(--ease);
}
.snav.scrolled {
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.05);
}
.snav .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.snav .brand img {
  height: 42px;
  width: auto;
}
.snav .nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}
.snav .nav-menu .sep {
  color: var(--ink);
  opacity: 0.28;
  font-weight: 300;
}
.snav .nav-menu a {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.005em;
  white-space: nowrap;
  position: relative;
  padding: 6px 2px;
  transition: opacity 0.25s;
}
.snav .nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease);
}
.snav .nav-menu a:hover::after,
.snav .nav-menu a.active::after {
  right: 0;
}
.snav .nav-menu a.active {
  font-weight: 500;
}
.snav .nav-menu a.cta {
  border: 1px solid rgba(22, 21, 15, 0.35);
  border-radius: 4px;
  padding: 8px 16px;
}
.snav .nav-menu a.cta::after {
  display: none;
}
.snav .nav-menu a.cta:hover {
  background: var(--ink);
  color: #fff;
}
.snav .tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.snav .tools .ic {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.snav .tools .ic:hover {
  opacity: 0.45;
}
.snav .tools .flag {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.snav .tools .flag .sq {
  width: 28px;
  height: 19px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  /* box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); */
}
.snav .tools .flag .sq i {
  display: block;
  height: 100%;
}
.snav .burger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
}
.snav .burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  background: var(--ink);
  transition: 0.3s var(--ease);
}
.snav .burger span:nth-child(1) {
  top: 0;
}
.snav .burger span:nth-child(2) {
  top: 10px;
}
.snav .burger span:nth-child(3) {
  top: 20px;
}

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--greige);
  padding: 40px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s var(--ease);
}
.nav-drawer.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer a {
  font-size: 26px;
  font-family: var(--fd);
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.nav-drawer a.active {
  font-weight: 600;
}

body {
  padding-top: 0;
}
main {
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  max-height: none;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--greige);
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-img.parallax {
  inset: -8% 0;
  height: 116%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.18) 100%);
}
.hero-in {
  position: relative;
  width: 100%;
  padding-bottom: clamp(40px, 7vw, 90px);
}
.hero h1 {
  font-family: var(--fd);
  font-weight: 600;
  color: #1a1a17;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero .hero-sub {
  font-size: clamp(15px, 1.4vw, 21px);
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 34ch;
}
.hero.on-dark h1 {
  color: #fff;
}
.hero.on-dark .hero-sub {
  color: rgba(255, 255, 255, 0.82);
}

/* centered hero variant */
.hero-center {
  text-align: center;
}
.hero-center .hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* breadcrumb */
.crumb {
  border-bottom: 1px solid var(--line);
}
.crumb .container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-3);
}
.crumb a:hover {
  color: var(--ink);
}
.crumb .sep {
  opacity: 0.4;
}
.crumb .cur {
  color: var(--ink);
}

/* ============================================================
   SECTIONS / TYPE
   ============================================================ */
.section {
  padding-block: clamp(64px, 9vw, 150px);
}
.section.panel {
  background: var(--panel);
}
.section.greige {
  background: var(--greige);
}

.display {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(34px, 5vw, 72px);
}
.h-serif {
  font-family: var(--fs);
  font-weight: 400;
  line-height: 1.06;
  font-size: clamp(30px, 4vw, 60px);
  letter-spacing: -0.005em;
}
.lead {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 300;
}
.muted {
  color: var(--muted);
}
.body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 5px;
  transition: 0.3s var(--ease);
}
.btn .arw {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arw {
  transform: translateX(5px);
}
.btn-solid {
  background: var(--ink);
  color: #fff;
}
.btn-solid:hover {
  background: #000;
}
.btn-out {
  border: 1px solid rgba(22, 21, 15, 0.4);
  color: var(--ink);
}
.btn-out:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-light {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-light:hover {
  background: #fff;
  color: var(--ink);
}
.btn[disabled] {
  cursor: not-allowed;
}
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn .btn-spin {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
.btn.is-loading .arw {
  display: none;
}
.btn.is-loading .btn-spin {
  display: inline-block;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn .btn-spin {
    animation-duration: 1.6s;
  }
}
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: gap 0.3s var(--ease);
}
.link-line:hover {
  gap: 18px;
}

/* uppercase, light, wide-tracked section title */
.rtitle {
  font-family: var(--fd);
  font-weight: 300;
  line-height: 1.16;
  font-size: clamp(26px, 3.4vw, 52px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.rtitle.sm {
  font-size: clamp(20px, 2.2vw, 32px);
}
.rlead {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
}

/* "discover more" underlined link */
.discover {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 2px;
}
.discover .ln {
  width: 30px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.discover:hover .ln {
  width: 50px;
}
.discover.on-img {
  color: #fff;
}

/* full-bleed editorial panel */
.editorial {
  position: relative;
  height: clamp(560px, 88vh, 980px);
  overflow: hidden;
  display: flex;
}
.editorial .ed-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.editorial .ed-shade {
  position: absolute;
  inset: 0;
}
.editorial .ed-in {
  position: relative;
  z-index: 2;
  width: 100%;
  align-self: flex-end;
}

/* horizontal slider track + arrows */
.hscroll-wrap {
  position: relative;
}
.hscroll {
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.hscroll::-webkit-scrollbar {
  display: none;
}
.hscroll.drag {
  cursor: grabbing;
  scroll-snap-type: none;
}
.hscroll > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.hs-nav {
  display: flex;
  gap: 10px;
}
.hs-nav button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: 0.3s var(--ease);
}
.hs-nav button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.hs-nav button:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* two-column section head: title left, lead/link right */
.coll-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 4vw, 60px);
}
.coll-head .ch-l {
  max-width: 30ch;
}
.coll-head .ch-r {
  max-width: 46ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #16150f;
  color: #cfccc4;
  padding-block: 80px 36px;
}
.site-footer a {
  color: #cfccc4;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}
.ft-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ft-brand .wm {
  font-family: var(--fd);
  font-weight: 300;
  letter-spacing: 0.34em;
  font-size: 26px;
  color: #fff;
  padding-left: 0.34em;
}
.ft-brand .by {
  font-family: var(--fd);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #7d7a72;
  margin-top: 6px;
}
.ft-brand p {
  margin-top: 22px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: #9c988f;
}
.ft-col h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7d7a72;
  margin-bottom: 20px;
  font-weight: 500;
}
.ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 15px;
  font-weight: 300;
}
.ft-contact p {
  font-size: 14px;
  line-height: 1.7;
  color: #9c988f;
  margin-bottom: 16px;
}
.ft-contact .ft-lbl {
  color: #7d7a72;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.ft-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12.5px;
  color: #7d7a72;
  flex-wrap: wrap;
  gap: 14px;
}
.ft-bot .ft-socials {
  display: flex;
  gap: 22px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.reveal.d4 {
  transition-delay: 0.32s;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* image hover */
.imgzoom {
  overflow: hidden;
}
.imgzoom img,
.imgzoom .bg {
  transition: transform 1.1s var(--ease);
}
.imgzoom:hover img,
.imgzoom:hover .bg {
  transform: scale(1.05);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .snav .nav-menu {
    display: none;
  }
  .snav .burger {
    display: block;
    margin-left: auto;
  }
  .snav .tools {
    display: none;
  }
  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .ft-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  :root {
    --nav-h: 74px;
  }
  .snav .brand img {
    height: 34px;
  }
  .ft-top {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HEADER / NAVBAR — Hikari by JNF  (#mainHeader.snav)
   Fixed top bar; hides on scroll-down, reveals on scroll-up
   (state driven by Alpine in app/views/partials/header.php).
   ============================================================ */

.snav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  /* Transparent in both themes so it sits over the hero; only the type colour
     changes. It gains a white background once the page scrolls. */
  background: transparent;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  transform: translateY(0);
  transition:
    box-shadow 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.45s var(--ease);
}
.snav.nav-hidden {
  transform: translateY(-100%);
}
.snav.scrolled {
  background: var(--bg);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.05);
}
/* The drawer is white, so the bar above it has to be too. */
.snav.drawer-open {
  background: var(--bg);
}

.snav .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.snav .brand img {
  height: 42px;
  width: auto;
}
.snav .brand .logo-white {
  display: none;
}

.snav .nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}
.snav .nav-menu .sep {
  color: var(--ink);
  opacity: 0.28;
  font-weight: 300;
}
.snav .nav-menu a {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.005em;
  white-space: nowrap;
  position: relative;
  padding: 6px 2px;
  transition: opacity 0.25s;
  text-decoration: none;
}
.snav .nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease);
}
.snav .nav-menu a:hover::after,
.snav .nav-menu a.active::after {
  right: 0;
}
.snav .nav-menu a.active {
  font-weight: 500;
}
.snav .nav-menu a.cta {
  border: 1px solid rgba(22, 21, 15, 0.35);
  border-radius: 4px;
  padding: 8px 16px;
}
.snav .nav-menu a.cta::after {
  display: none;
}
.snav .nav-menu a.cta:hover {
  background: var(--ink);
  color: #fff;
}

.snav .tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.snav .tools .ic {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s;
  background: none;
}
.snav .tools .ic:hover {
  opacity: 0.45;
}

.snav .tools .header-language {
  position: relative;
}
.snav .tools .flag {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink);
}
.snav .tools .flag .sq {
  width: 24px;
  height: 24px;
  display: flex;
}
.snav .tools .flag .sq img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.snav .tools .lang-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 174px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.snav .tools .lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.snav .tools .lang-dropdown a:hover {
  background: #f4f4f0;
}
.snav .tools .lang-dropdown img {
  width: 22px;
  height: auto;
  border-radius: 2px;
}
.snav .tools .header-language button {
  border: none;
  background-color: transparent;
}

/* account icon + dropdown — same shell as the language picker */
.snav .tools .header-account {
  position: relative;
  display: flex;
}
.snav .tools .header-account > button.ic {
  border: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}
.snav .tools .account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 208px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.snav .tools .account-dropdown .account-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
}
.snav .tools .account-dropdown .account-name {
  font-size: 14px;
  color: var(--ink);
}
.snav .tools .account-dropdown .account-mail {
  font-size: 12px;
  color: var(--muted);
  /* long addresses would otherwise stretch the panel across the bar */
  overflow-wrap: anywhere;
}
.snav .tools .account-dropdown a,
.snav .tools .account-dropdown button {
  padding: 9px 12px;
  border: none;
  border-radius: 4px;
  background: none;
  font-size: 14px;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.snav .tools .account-dropdown a:hover,
.snav .tools .account-dropdown button:hover {
  background: #f4f4f0;
}
.snav .tools .account-dropdown .account-logout {
  margin-top: 4px;
  border-top: 1px solid var(--line-2);
  border-radius: 0 0 4px 4px;
  color: var(--muted);
}
.snav .tools .account-dropdown button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.snav .burger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}
.snav .burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  background: var(--ink);
  transition: 0.3s var(--ease);
}
.snav .burger span:nth-child(1) {
  top: 0;
}
.snav .burger span:nth-child(2) {
  top: 10px;
}
.snav .burger span:nth-child(3) {
  top: 20px;
}
.snav .burger.x span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.snav .burger.x span:nth-child(2) {
  opacity: 0;
}
.snav .burger.x span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   Light variant — transparent bar with white type, so it can sit
   over a dark hero. Enabled with logo_version = 1 on the menu item;
   reverts to dark ink once the page scrolls.
   ------------------------------------------------------------ */
.snav.nav-light:not(.scrolled):not(.drawer-open) {
  background: linear-gradient(180deg, rgba(10, 9, 6, 0.3) 0%, rgba(10, 9, 6, 0) 100%);

  .brand .logo-dark {
    display: none;
  }
  .brand .logo-white {
    display: block;
  }

  .nav-menu a,
  .nav-menu .sep,
  .tools .ic,
  .tools .flag {
    color: #fff;
  }
  .nav-menu .sep {
    opacity: 0.5;
  }
  .nav-menu a::after {
    background: #fff;
  }
  .nav-menu a.cta {
    border-color: rgba(255, 255, 255, 0.55);
  }
  .nav-menu a.cta:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
  }
  .tools .flag .sq {
    /* box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); */
  }
  .burger span {
    background: #fff;
  }
}

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s var(--ease);
}
.nav-drawer.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer a {
  font-size: 26px;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
.nav-drawer a.active {
  font-weight: 600;
}

.nav-drawer .drawer-tools {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-drawer .drawer-account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 0;
  border-bottom: 0;
  color: var(--ink-2);
}
.nav-drawer .drawer-account-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-drawer .drawer-account-menu a,
.nav-drawer .drawer-account-menu button {
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-drawer .drawer-account-menu button {
  color: var(--muted);
  cursor: pointer;
}

.nav-drawer .drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-drawer .drawer-langs a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 40px;
  color: var(--ink-2);
}
.nav-drawer .drawer-langs a.active {
  font-weight: 500;
  color: var(--ink);
  border-color: var(--ink);
}
.nav-drawer .drawer-langs img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

@media (min-width: 1041px) {
  /* Desktop: never show the mobile drawer, even if left open on resize. */
  .nav-drawer {
    display: none;
  }
}
@media (max-width: 1040px) {
  .snav .nav-menu {
    display: none;
  }
  .snav .burger {
    display: block;
    margin-left: auto;
  }
  .snav .tools {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --nav-h: 74px;
  }
  .snav .brand img {
    height: 34px;
  }
}

/* ============================================================
   FOOTER — Hikari by JNF  (#mainFooter.site-footer)
   ============================================================ */
.site-footer {
  background: #16150f;
  color: #cfccc4;
  padding-block: 80px 36px;
}
.site-footer a {
  color: #cfccc4;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}

.ft-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-brand .ft-logo {
  display: inline-block;
}
.ft-brand .ft-logo img {
  height: 46px;
  width: auto;
}
.ft-brand p {
  margin-top: 22px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: #9c988f;
}

.ft-col h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7d7a72;
  margin-bottom: 20px;
  font-weight: 500;
}
.ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 15px;
  font-weight: 300;
}

.ft-contact p {
  font-size: 14px;
  line-height: 1.7;
  color: #9c988f;
  margin-bottom: 16px;
}
.ft-contact .ft-lbl {
  color: #7d7a72;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}

.ft-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12.5px;
  color: #7d7a72;
  flex-wrap: wrap;
  gap: 14px;
}
.ft-bot .ft-socials {
  display: flex;
  gap: 22px;
}

@media (max-width: 1040px) {
  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .ft-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .ft-top {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/*                                    Pages                                   */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                                   Widgets                                  */
/* -------------------------------------------------------------------------- */

/* ------------------------------- scroll_tour ------------------------------ */
.scroll_tour {
  position: relative;
  height: 440vh;
  background: var(--greige);
}
.sh-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--greige);
}
.sh-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: contents;
  background: var(--greige);
}
.sh-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    72% 62% at 50% 42%,
    rgba(244, 244, 240, 0.4) 0%,
    rgba(244, 244, 240, 0) 64%
  );
}
.sh-dark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s linear;
  background: linear-gradient(
    180deg,
    rgba(15, 13, 9, 0.42) 0%,
    rgba(15, 13, 9, 0) 32%,
    rgba(15, 13, 9, 0.08) 66%,
    rgba(15, 13, 9, 0.58) 100%
  );
}
.sh-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}
.sh-cap--right {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  padding: 0 clamp(28px, 6vw, 110px) clamp(56px, 9vh, 120px) 0;
}
.sh-cap .pin {
  pointer-events: auto;
}
.sh-wm {
  font-family: var(--fd);
  font-weight: 300;
  letter-spacing: 0.34em;
  font-size: clamp(46px, 9vw, 150px);
  line-height: 0.92;
  color: #1a1a17;
  /* compensates the trailing letter-spacing so the word stays optically centred */
  padding-left: 0.34em;
}
.sh-tag {
  font-family: var(--fd);
  font-weight: 400;
  letter-spacing: 0.46em;
  font-size: clamp(10px, 1.4vw, 16px);
  color: #3a3a37;
  margin-top: 26px;
  text-transform: uppercase;
}
.sh-line {
  font-family: var(--fs);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 62px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #1a1a17;
  text-transform: uppercase;
  text-wrap: balance;
}
.sh-line em {
  font-style: normal;
  color: var(--accent);
}
.sh-sub {
  margin-top: 20px;
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  max-width: 36ch;
  font-weight: 300;
}
.sh-kick {
  font-family: var(--ff);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.sh-cap.on-dark .sh-line {
  color: #fff;
}
.sh-cap.on-dark .sh-sub {
  color: rgba(255, 255, 255, 0.86);
}
.sh-cap.on-dark .sh-kick {
  color: #d8c2a3;
}
.sh-cap .btn {
  margin-top: 34px;
}
.sh-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #3a3a37;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: bob 2.6s var(--ease) infinite;
  will-change: opacity;
}
@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}
.sh-prog {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  opacity: 0.85;
  z-index: 4;
}

/* --------------- cards_slider / product_categories_slider ---------------- */
/* Scoped to the section class, not .widget-<type>, so both widgets share it.
   Backoffice overrides still work through .widget-<type>-<id>. */
.cards-slider {
  .ccard {
    width: clamp(280px, 30vw, 440px);
    display: flex;
    flex-direction: column;
  }
  .ccard .cc-img {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--panel);
  }
  .ccard .cc-img .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  .ccard .cc-soon {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    padding: 6px 12px;
  }
  .ccard .cc-idx {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--faint);
    margin-top: 22px;
  }
  .ccard .cc-name {
    font-family: var(--fd);
    font-weight: 300;
    font-size: clamp(20px, 1.8vw, 27px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
  }
  .ccard .cc-desc {
    font-size: 13.5px;
    color: var(--ink-3);
    font-weight: 300;
    margin-top: 6px;
    line-height: 1.6;
  }
  .ccard .discover {
    margin-top: 16px;
  }
  .hs-nav {
    margin-top: 36px;
    justify-content: flex-end;
  }
}

/* -------------------------- image_w_text_overlay -------------------------- */
.widget-image_w_text_overlay {
  .ed-shade {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }
  .ed-box {
    padding: 0 var(--gutter) clamp(48px, 7vw, 96px);
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    color: #fff;
  }
  .ed-box .rtitle {
    color: #fff;
    max-width: 18ch;
    margin-top: 18px;
  }
  .ed-box .kicker {
    color: rgba(255, 255, 255, 0.78);
  }
  .ed-box .lead-w {
    color: rgba(255, 255, 255, 0.85);
    max-width: 46ch;
    margin-top: 20px;
    font-weight: 300;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.7;
  }
  .ed-box .discover {
    margin-top: 30px;
  }
}

/* ============================================================
   PRODUCT DETAIL  (app/views/pages/product.php)
   ============================================================ */
/* the ring that radiates off a hotspot dot — at top level because @keyframes inside a
   nested style rule is not valid CSS */
@keyframes hs-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.product-detail {
  /* the image runs under the fixed navbar, so no --nav-h offset here */
  .pd-hero {
    position: relative;
    width: 100%;
    /* 56vw keeps the crop proportional, but on wide screens it outgrew the viewport and
       pushed the whole page below the fold — never taller than one screen */
    height: min(clamp(480px, 56vw, 1080px), 100vh);
    overflow: hidden;
  }
  .pd-hero-bg {
    position: absolute;
    inset: 0;
  }
  .pd-hero-bg .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  .pd-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.12) 55%,
      transparent 100%
    );
  }
  /* full-width band holding a .container, so the text lines up with the rest of
     the page instead of hugging the viewport edge */
  .pd-hero-in {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(48px, 6vw, 96px);
  }
  .pd-hero-sku {
    display: block;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
  }
  .pd-hero-in h1 {
    font-family: var(--ff);
    font-weight: 600;
    font-size: clamp(38px, 4.2vw, 68px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
    max-width: 680px;
    margin: 0;
  }
  .pd-hero-var {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
  }
  .pd-hero-var b {
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  /* --------------------------- variant selector bar ---------------------------
     Docks right under the fixed navbar, below it in the stack (.snav is z-index 100)
     so the bar slides beneath the header rather than over it. */
  .pd-vbar {
    position: sticky;
    top: var(--nav-h);
    z-index: 60;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    /* matches the header's own transform timing, so the two move together */
    transition: top 0.45s var(--ease);

    /* Scrolling down slides the header out of the way (.snav.nav-hidden, set by Alpine in
       app/views/partials/header.php) and scrolling up brings it back. The bar tracks it to
       the top edge, otherwise a nav-height gap opens above it on the way down. */
    body:has(#mainHeader.nav-hidden) & {
      top: 0;
    }
  }
  .pd-vbar-in {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
    padding-block: 12px;
    flex-wrap: wrap;
  }
  .pd-vbar-lb {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .pd-vpick {
    position: relative;
  }
  .pd-vbar-cmp {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 2px;
    transition:
      color 0.25s var(--ease),
      border-color 0.25s var(--ease);
  }
  .pd-vbar-cmp:hover {
    color: var(--ink);
    border-color: var(--ink);
  }
  @media (max-width: 640px) {
    .pd-vbar-cmp {
      margin-left: 0;
    }
  }
  .pd-vpick-trigger {
    appearance: none;
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 16px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: min(320px, 72vw);
    justify-content: space-between;
  }
  .pd-vpick-trigger b {
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-right: 8px;
  }
  .pd-vpick-trigger i {
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
  }
  .pd-vpick.open .pd-vpick-trigger i {
    transform: rotate(225deg) translateY(-2px);
  }
  /* x-show toggles the inline display, so the closed state cannot live in this rule */
  .pd-vmenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: var(--bg);
    border: 1px solid var(--ink);
    display: flex;
    flex-direction: column;
    z-index: 70;
    max-height: 60vh;
    overflow: auto;
  }
  .pd-vmenu a {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 12px 16px;
    display: flex;
    align-items: baseline;
    /* the code column holds a full product name until the CMS has a short variant code */
    flex-wrap: wrap;
    gap: 4px 12px;
    color: var(--ink-2);
    transition:
      background 0.2s ease,
      color 0.2s ease;
  }
  .pd-vmenu a:last-child {
    border-bottom: 0;
  }
  .pd-vmenu a b {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink);
    min-width: 64px;
  }
  .pd-vmenu a span {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .pd-vmenu a:hover {
    background: var(--panel);
    color: var(--ink);
  }
  .pd-vmenu a.sel {
    background: var(--panel);
    color: var(--ink);
  }
  .pd-vmenu a.sel::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
  }

  /* --------------------------- variant comparison ---------------------------
     One card per variant, shared by all of them — sits between the per-variant overview
     and the per-variant sections. */
  .pd-var {
    padding: clamp(50px, 5vw, 86px) 0;
    border-top: 1px solid var(--line);
    /* the fixed header and the sticky variant bar cover the top of the page, so the bar's
       comparison link must not land this heading underneath them */
    scroll-margin-top: calc(var(--nav-h) + 70px);
  }
  .pd-var-hd {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 4vw, 80px);
    align-items: end;
    margin-bottom: clamp(32px, 4vw, 56px);
  }
  @media (max-width: 860px) {
    .pd-var-hd {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
  .pd-var-title {
    font-size: clamp(24px, 2.6vw, 40px);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 14px 0 0;
    line-height: 1.15;
  }
  .pd-var-lead {
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 300;
    line-height: 1.85;
    color: var(--ink-2);
  }
  /* One card per row on phones, two on tablets, up to three above that — anything past the
     column count wraps to the next row. `.pair` is set when the model has exactly two
     variants, so they split the row in half instead of leaving a third of it empty. */
  .pd-var-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.4vw, 40px);
  }
  @media (min-width: 641px) {
    .pd-var-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 1041px) {
    .pd-var-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .pd-var-grid.pair {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  .pd-var-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(22px, 2.4vw, 34px);
    border: 1px solid var(--line);
    background: var(--bg);
    transition:
      border-color 0.35s ease,
      box-shadow 0.35s ease;
  }
  .pd-var-card.alt {
    background: var(--panel);
  }
  .pd-var-card:hover {
    border-color: var(--ink-3);
  }
  .pd-var-card.sel {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
  }
  .pd-var-tag {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }
  .pd-var-code {
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 600;
    letter-spacing: 0.06em;
  }
  .pd-var-name {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  /* stands in for the prototype's drawn diagram — the product's own main picture */
  .pd-var-img {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
  }
  .pd-var-img .bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--ease);
  }
  .pd-var-card:hover .pd-var-img .bg {
    transform: scale(1.04);
  }
  /* the points the CMS lists for the configuration; the rule above each one, rather than a gap,
     is what makes them read as a spec sheet inside the card */
  .pd-var-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .pd-var-list li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-2);
    line-height: 1.6;
  }
  .pd-var-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 7px;
  }
  .pd-var-pick {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .pd-var-card.sel .pd-var-pick {
    color: var(--ink);
  }
  .pd-var-pick i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: block;
    flex-shrink: 0;
  }
  .pd-var-card.sel .pd-var-pick i {
    border-color: var(--ink);
    background: var(--ink);
    box-shadow: inset 0 0 0 3.5px var(--bg);
  }
  .pd-var-pick em {
    font-style: normal;
  }
  .pd-var-pick .b {
    display: none;
  }
  .pd-var-card.sel .pd-var-pick .a {
    display: none;
  }
  .pd-var-card.sel .pd-var-pick .b {
    display: inline;
  }

  /* --------------------------- technical documents --------------------------- */
  .pd-downloads {
    padding: clamp(40px, 4vw, 64px) 0;
    border-top: 1px solid var(--line);
  }
  .pd-dl-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
  }
  .pd-dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  @media (max-width: 760px) {
    .pd-dl-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 480px) {
    .pd-dl-grid {
      grid-template-columns: 1fr;
    }
  }
  .pd-dl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 300;
    transition: color 0.2s;
  }
  .pd-dl-item > span {
    flex: 1;
  }
  .pd-dl-fmt {
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .pd-dl-arw {
    flex: 0 0 auto;
    font-size: 16px;
    color: var(--muted);
    transition:
      transform 0.25s var(--ease),
      color 0.2s;
  }
  .pd-dl-item:hover:not(.off) {
    color: var(--accent);
  }
  .pd-dl-item:hover:not(.off) .pd-dl-arw {
    transform: translateX(4px);
    color: var(--accent);
  }
  /* the product has no file of this type — listed, but plainly not on offer */
  .pd-dl-item.off {
    color: var(--faint);
  }

  /* --------------------------- technical drawings --------------------------- */
  .pd-dts {
    padding: clamp(50px, 5vw, 80px) 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
  }
  .pd-dts-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
  }
  .pd-dts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.5vw, 20px);
  }
  @media (max-width: 660px) {
    .pd-dts-row {
      grid-template-columns: 1fr;
    }
  }
  /* a button: it opens the image viewer */
  .pd-dt-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #f8f7f4;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color 0.3s var(--ease);
  }
  .pd-dt-card:hover {
    border-color: var(--line-2);
  }
  .pd-dt-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease);
  }
  .pd-dt-card:hover img {
    transform: scale(1.04);
  }

  /* ------------------------ technical specifications ------------------------ */
  .pd-specs {
    border-top: 1px solid var(--line);
  }
  .pd-specs-bar {
    background: var(--panel);
  }
  .pd-specs-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding-block: clamp(18px, 2vw, 36px);
    cursor: pointer;
    text-align: left;
  }
  .pd-specs-hd-label {
    font-size: clamp(15px, 1.3vw, 22px);
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  /* a plus that loses its upright stroke when the panel opens */
  .pd-specs-hd-icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .pd-specs-hd-icon::before,
  .pd-specs-hd-icon::after {
    content: '';
    position: absolute;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s var(--ease);
  }
  .pd-specs-hd-icon::before {
    left: 0;
    right: 0;
    top: 15px;
    height: 2px;
  }
  .pd-specs-hd-icon::after {
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
  }
  .pd-specs-bar.open .pd-specs-hd-icon::after {
    transform: scaleY(0);
  }
  .pd-specs-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease);
  }
  .pd-specs-body-in {
    padding-bottom: clamp(32px, 3vw, 56px);
  }
  .pd-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0 clamp(32px, 4vw, 80px);
  }
  .pd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px dotted var(--line-2);
    font-size: 14px;
  }
  .pd-spec-row span:first-child {
    color: var(--ink-3);
    font-weight: 300;
  }
  .pd-spec-row span:last-child {
    font-weight: 500;
    text-align: right;
  }

  /* --------------------------------- rims ---------------------------------- */
  /* grouped by finish, not by model: the finish is the choice, and the products under it are
     the same profile handed left and right */
  .pd-aro {
    padding: clamp(50px, 5vw, 86px) 0;
    border-top: 1px solid var(--line);
  }
  .pd-aro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 90px);
    align-items: center;
  }
  @media (max-width: 860px) {
    .pd-aro-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  }
  /* no copy alongside — the cards get the row to themselves instead of half of it */
  .pd-aro-grid.solo {
    grid-template-columns: 1fr;
  }
  .pd-aro-title {
    font-size: clamp(26px, 2.8vw, 44px);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 14px 0 0;
  }
  .pd-aro-body {
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 300;
    line-height: 1.85;
    color: var(--ink-2);
    margin: 22px 0 0;
  }
  /* two cards to a view; a third and beyond scroll, and the arrows only render when there is
     something past the edge */
  .pd-aro-rail {
    --pd-aro-gap: clamp(14px, 1.6vw, 22px);
    display: flex;
    gap: var(--pd-aro-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    cursor: grab;
  }
  .pd-aro-rail::-webkit-scrollbar {
    display: none;
  }
  .pd-aro-rail.drag {
    cursor: grabbing;
    /* snapping fights the pointer while a drag is in progress */
    scroll-snap-type: none;
  }
  .pd-aro-card {
    flex: 0 0 calc((100% - var(--pd-aro-gap)) / 2);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
  }
  @media (max-width: 520px) {
    .pd-aro-card {
      flex-basis: 100%;
    }
  }
  /* the CMS gives one flat hex per finish; the gradient over it is what makes the block read
     as anodised metal rather than as a colour sample */
  .pd-aro-sw {
    position: relative;
    height: clamp(150px, 17vw, 230px);
    background-image: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(255, 255, 255, 0.16) 70%,
      rgba(0, 0, 0, 0.16) 100%
    );
  }
  .pd-aro-sw::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 38%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
  }
  /* standing in for a finish with no colour: a photograph needs neither the metal gradient
     nor the highlight line, both of which read as damage over one */
  .pd-aro-sw.photo {
    background-color: #f8f7f4;
    background-image: none;
    overflow: hidden;
  }
  .pd-aro-sw.photo::after {
    display: none;
  }
  .pd-aro-sw.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .pd-aro-card.dark .pd-aro-sw::after {
    background: rgba(255, 255, 255, 0.13);
  }
  .pd-aro-in {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px 22px;
  }
  .pd-aro-nm {
    font-size: 16px;
    font-weight: 500;
  }
  .pd-aro-note {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-3);
  }
  .pd-aro-ref {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .pd-aro-ref span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    color: var(--muted);
  }
  .pd-aro-ref b {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
  }

  /* ------------------------------- hotspot -------------------------------- */
  .pd-hotspot {
    padding: clamp(50px, 5vw, 80px) 0;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .pd-hs-ref {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .pd-hotspot-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
  }
  .pd-hotspot-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
  }
  .pd-hotspot-stage > img {
    width: 100%;
    display: block;
  }
  /* the point the CMS pins; the dot and its card are both placed against it */
  .pd-hs-pt {
    position: absolute;
  }
  .pd-hs-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    z-index: 2;
    transition:
      transform 0.2s var(--ease),
      background 0.2s;
  }
  .pd-hs-dot:hover,
  .pd-hs-dot.active {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.18);
  }
  .pd-hs-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    animation: hs-pulse 2.2s ease-out infinite;
    pointer-events: none;
  }
  /* the pulse is decoration, and it never stops — it is the one thing on the page that would
     keep moving for someone who asked the system for stillness */
  @media (prefers-reduced-motion: reduce) {
    .pd-hs-dot::after {
      animation: none;
    }
  }
  .pd-hs-plus {
    width: 12px;
    height: 12px;
    position: relative;
    pointer-events: none;
  }
  .pd-hs-plus::before,
  .pd-hs-plus::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 2px;
  }
  .pd-hs-plus::before {
    left: 5px;
    top: 0;
    width: 2px;
    height: 12px;
  }
  .pd-hs-plus::after {
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
  }
  /* the plus becomes a minus while its card is open */
  .pd-hs-dot.active .pd-hs-plus::before {
    display: none;
  }
  .pd-hs-card {
    position: absolute;
    left: 26px;
    top: -12px;
    width: min(220px, 58vw);
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.97);
    transition:
      opacity 0.22s var(--ease),
      transform 0.22s var(--ease);
  }
  /* a point past the middle of the stage has no room for its card on that side */
  .pd-hs-pt.flip-x .pd-hs-card {
    left: auto;
    right: 26px;
  }
  .pd-hs-pt.flip-y .pd-hs-card {
    top: auto;
    bottom: -12px;
  }
  .pd-hs-card.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .pd-hs-card h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
  }
  .pd-hs-card p {
    margin: 0;
    color: var(--ink-3);
  }

  /* ------------------- header of a `product:conections` block ------------------- */
  /* Shared by the locks, the hinges and the handles: each is headed by the CMS copy in its
     hikari_*_info field, and with the field empty by the section label alone — which is why
     the kicker keeps the whole margin whether or not a heading and a lead sit with it. */
  .pd-blk-hd {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 4vw, 80px);
    align-items: center;
    margin-bottom: clamp(28px, 3vw, 44px);
  }
  @media (max-width: 860px) {
    .pd-blk-hd {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
  .pd-blk-title {
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin: 14px 0 0;
  }
  .pd-blk-lead {
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-2);
    margin: 0;
  }
  .pd-blk-lead + .pd-blk-lead {
    margin-top: 18px;
  }

  /* ---------------------- connections (hinges, locks) ---------------------- */
  /* the `product:conections` blocks: one card per model, its finishes inside the card */
  .pd-conns {
    padding: clamp(50px, 5vw, 86px) 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
  }
  /* these stack, so alternating the tint is what tells one section from the next */
  .pd-conns.light {
    background: #fff;
  }
  .pd-conns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 32px);
  }
  @media (max-width: 980px) {
    .pd-conns-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 660px) {
    .pd-conns-grid {
      grid-template-columns: 1fr;
    }
  }
  .pd-conn {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
  }
  .pd-conn-img {
    aspect-ratio: 1 / 1;
    background: #f8f7f4;
    overflow: hidden;
  }
  .pd-conn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease);
  }
  .pd-conn:hover .pd-conn-img img {
    transform: scale(1.05);
  }
  .pd-conn-in {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 22px 24px 26px;
    /* takes the rest of the card, which is what the auto margin under the circles pushes
       against — without it the row of circles rides up under the pointer the moment a picked
       finish gives the name a longer reference and a second line */
    flex: 1;
  }
  .pd-conn-nm {
    font-size: 17px;
    font-weight: 500;
  }
  .pd-conn-sub {
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-3);
  }
  .pd-conn-ref {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--accent);
  }

  /* the finishes this model comes in — the name rides above its circle on hover, so a row
     of five stays a row of five instead of five stacked captions */
  .pd-conn-fins {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: auto 0 0;
    padding: 18px 0 0;
  }
  .pd-conn-fin {
    position: relative;
    display: flex;
  }
  /* the circle picks the finish the card shows, so it is a button — reset to the bare swatch */
  .pd-conn-fin-btn {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
  }
  .pd-conn-fin i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 1px var(--line-2);
    transition:
      transform 0.25s var(--ease),
      box-shadow 0.25s var(--ease);
  }
  .pd-conn-fin:hover i,
  .pd-conn-fin:focus-within i {
    transform: scale(1.14);
    box-shadow: 0 0 0 1px var(--ink);
  }
  /* the finish on screen — a ring off the edge of the circle, so it still reads as picked once
     the pointer has moved on to the next one */
  .pd-conn-fin-btn.on i {
    transform: scale(1.14);
    box-shadow:
      0 0 0 2px #fff,
      0 0 0 3px var(--ink);
  }
  .pd-conn-fin span {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 9px;
    background: var(--ink);
    color: #fff;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
    z-index: 2;
  }
  .pd-conn-fin:hover span,
  .pd-conn-fin:focus-within span {
    opacity: 1;
  }
  /* the first and last circles of a row would push their label past the card edge */
  .pd-conn-fin:first-child span {
    left: 0;
    transform: none;
  }
  .pd-conn-fin:last-child span {
    left: auto;
    right: 0;
    transform: none;
  }
  /* coarse pointers never hover, and a tap leaves the button focused — the label would hang open
     over the card until something else took the focus. Kept in the accessibility tree rather than
     dropped with display:none: it is the only text the button has, so it is also its name */
  @media (hover: none) {
    .pd-conn-fin:hover span,
    .pd-conn-fin:focus-within span {
      opacity: 0;
    }
  }

  /* ------------------------------- hinges --------------------------------- */
  /* a rail rather than the .pd-conns grid: every finish is its own option here, so the count is
     a multiple of the models and a grid would wrap into rows of near-identical cards */
  .pd-hng {
    padding: clamp(50px, 5vw, 86px) 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
  }
  .pd-hng-rail {
    display: flex;
    gap: clamp(14px, 1.6vw, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* the buttons below are the affordance; a scrollbar under the cards reads as a stray rule */
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    cursor: grab;
  }
  .pd-hng-rail::-webkit-scrollbar {
    display: none;
  }
  .pd-hng-rail.drag {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  .pd-hng-item {
    flex: 0 0 auto;
    width: clamp(210px, 22vw, 270px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
  }
  .pd-hng-ph {
    aspect-ratio: 1 / 1;
    background: #f8f7f4;
    overflow: hidden;
  }
  .pd-hng-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease);
  }
  .pd-hng-item:hover .pd-hng-ph img {
    transform: scale(1.05);
  }
  .pd-hng-in {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 22px;
  }
  .pd-hng-nm {
    font-size: 16px;
    font-weight: 500;
  }
  .pd-hng-sub {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-3);
  }
  /* pushed to the bottom of the card so the finish and the reference line up across the rail
     however long the names above them run */
  .pd-hng-fin {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .pd-hng-fin i {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 1px var(--line-2);
  }
  .pd-hng-ref {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
  }

  /* --------------------------- handles and pulls --------------------------- */
  /* a rail rather than the .pd-conns grid: this is a sample of a long range, and eight of
     them stacked would outrun the sections around it */
  .pd-hw {
    padding: clamp(50px, 5vw, 86px) 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
  }
  .pd-hw-rail {
    display: flex;
    gap: clamp(14px, 1.6vw, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* the buttons below are the affordance; a scrollbar under the cards reads as a stray rule */
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    cursor: grab;
  }
  .pd-hw-rail::-webkit-scrollbar {
    display: none;
  }
  .pd-hw-rail.drag {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  .pd-hw-item {
    flex: 0 0 auto;
    width: clamp(210px, 22vw, 270px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
  }
  .pd-hw-ph {
    aspect-ratio: 1;
    background: #f8f7f4;
    overflow: hidden;
  }
  .pd-hw-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease);
  }
  .pd-hw-item:hover .pd-hw-ph img {
    transform: scale(1.05);
  }
  .pd-hw-in {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px 22px;
  }
  .pd-hw-kind {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .pd-hw-nm {
    font-size: 16px;
    font-weight: 500;
  }
  .pd-hw-ref {
    margin-top: 3px;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
  }
  /* arrows for every rail on this page — the hinges, the handles and the rims */
  .pd-rail-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: clamp(18px, 2.4vw, 32px);
  }
  .pd-rail-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: transparent;
    display: grid;
    place-items: center;
    color: var(--ink);
    cursor: pointer;
    transition: 0.3s var(--ease);
  }
  .pd-rail-nav button:hover:not(:disabled) {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }
  .pd-rail-nav button:disabled {
    opacity: 0.3;
    cursor: default;
  }

  /* ------------------------------- overview ------------------------------- */
  .pd-overview {
    padding: clamp(60px, 7vw, 120px) 0 clamp(50px, 6vw, 96px);
  }
  .pd-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 96px);
    align-items: start;
  }
  .pd-ov-title {
    font-family: var(--ff);
    font-weight: 600;
    font-size: clamp(34px, 3.6vw, 58px);
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 32px;
  }
  /* the series sits on its own line, lighter and quieter than the product name */
  .pd-ov-cm {
    display: block;
    font-weight: 300;
    font-size: clamp(18px, 1.8vw, 28px);
    letter-spacing: 0.06em;
    color: var(--ink-3);
  }
  .pd-ov-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink-2);
  }
  .pd-ov-body p {
    margin: 0;
  }

  /* slider kept as it was, only relocated into the overview grid */
  .gal {
    position: relative;
  }
  .gal .stage {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
  }
  .gal .slide {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    background-repeat: no-repeat;
  }
  .gal .slide.on {
    opacity: 1;
  }
  .gal .dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
  }
  .gal .dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-2);
    transition: 0.25s;
  }
  .gal .dots button.on {
    background: var(--ink);
    width: 26px;
    border-radius: 6px;
  }
  .gal .arrows {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    pointer-events: none;
  }
  .gal .arrows button {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: 0.2s;
  }
  .gal .arrows button:hover {
    background: #fff;
  }

  @media (max-width: 860px) {
    .pd-overview-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* ============================================================
   PROJECT DETAIL  (app/views/pages/project.php)
   ============================================================ */
.project-detail {
  .pd-loc {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(15px, 1.4vw, 20px);
    margin-top: 8px;
    font-weight: 300;
    letter-spacing: 0.04em;
  }

  .pd-section {
    padding-block: clamp(50px, 6vw, 96px);
  }
  .pd-meta {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
  }
  .meta-table .mr {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .meta-table .mr .mk {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
  }
  .meta-table .mr .mv {
    font-size: 16px;
    font-weight: 400;
  }

  /* Free-form editor HTML. A heading is how the editor opens with a lead paragraph,
     so h2 carries the prototype's lead scale rather than a display heading size. */
  .pd-desc p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-2);
    font-weight: 300;
  }
  .pd-desc p + p {
    margin-top: 20px;
  }
  .pd-desc h2,
  .pd-desc h3,
  .pd-desc h4 {
    font-family: var(--fs);
    font-weight: 400;
    color: var(--ink);
  }
  .pd-desc h2 {
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.55;
  }
  .pd-desc h3 {
    font-size: 19px;
    line-height: 1.4;
  }
  .pd-desc h4 {
    font-size: 16px;
    font-weight: 500;
  }
  .pd-desc :is(h2, h3, h4) + p {
    margin-top: 14px;
  }
  .pd-desc p + :is(h2, h3, h4) {
    margin-top: 28px;
  }
  .pd-desc strong {
    font-weight: 500;
    color: var(--ink);
  }
  .pd-desc ul,
  .pd-desc ol {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--ink-2);
    font-weight: 300;
    line-height: 1.75;
  }
  .pd-desc li + li {
    margin-top: 8px;
  }
  .pd-desc a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .pd-gallery-section {
    padding-bottom: clamp(50px, 6vw, 96px);
  }
  .pd-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: clamp(12px, 1.4vw, 22px);
  }
  .pd-gallery .g {
    overflow: hidden;
    border-radius: 6px;
    background: var(--panel);
  }
  .pd-gallery .g .bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.1s var(--ease);
  }
  .pd-gallery .g {
    cursor: zoom-in;
  }
  .pd-gallery .g:hover .bg {
    transform: scale(1.05);
  }
  .pd-gallery .g:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .pd-pull {
    text-align: center;
    max-width: 20ch;
    margin: 0 auto;
  }
  .pd-pull .pq {
    font-family: var(--fs);
    font-style: italic;
    font-size: clamp(26px, 3.2vw, 44px);
    line-height: 1.25;
  }
  .pd-pull .pc {
    margin-top: 24px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .pd-next {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* stands on its own when the listing page has no hero image to borrow */
    background: var(--ink);
  }
  .pd-next .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  .pd-next::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 19, 14, 0.5);
  }
  .pd-next .np-in {
    position: relative;
    z-index: 1;
  }

  @media (max-width: 860px) {
    .pd-meta {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }
  @media (max-width: 760px) {
    .pd-gallery {
      grid-auto-rows: 220px;
    }
    .pd-gallery .g {
      grid-column: 1 / -1 !important;
      grid-row: auto !important;
    }
  }
}

/* ----------------------------- portfolio_metro ---------------------------- */
.widget-portfolio_metro {
  .pj-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .pj-intro h2 {
    margin-top: 12px;
    max-width: 16ch;
  }
  .pfilters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .pfilters button {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 40px;
    border: 1px solid var(--line-2);
    color: var(--ink-3);
    transition: 0.25s var(--ease);
  }
  .pfilters button:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  .pfilters button.on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }

  .bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 248px;
    /* keeps the tiling gapless when the spans do not divide evenly */
    grid-auto-flow: dense;
    gap: clamp(12px, 1.4vw, 22px);
  }
  .pj {
    position: relative;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    color: #fff;
  }
  .pj .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  /* sits above .bg but below .pj-in and .pj-arw, which are positioned */
  .pj::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.66) 100%);
  }
  .pj .pj-in {
    position: relative;
    padding: 26px;
    width: 100%;
    z-index: 1;
  }
  .pj .pj-k {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
  }
  .pj .pj-t {
    font-family: var(--fs);
    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.1;
    margin-top: 6px;
  }
  .pj .pj-l {
    font-size: 13px;
    opacity: 0.82;
    font-weight: 300;
    margin-top: 4px;
  }
  .pj .pj-arw {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: 0.35s var(--ease);
    z-index: 1;
  }
  .pj:hover .pj-arw {
    opacity: 1;
    transform: none;
  }
  .pj.feat .pj-arw {
    background: rgba(255, 255, 255, 0.12);
  }

  /* one tile per row on small screens, whatever the configured spans say */
  @media (max-width: 820px) {
    .bento {
      grid-auto-rows: 200px;
    }
    .bento .pj {
      grid-column: 1 / -1 !important;
      grid-row: auto !important;
    }
  }
}

/* --------------------------- text_centered_w_link ------------------------- */
.widget-text_centered_w_link {
  .closing {
    text-align: center;
  }
  /* prose statement: narrower measure, smaller scale */
  .closing p.cl-t {
    font-family: var(--fs);
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.25;
    max-width: 18ch;
    margin: 18px auto 0;
  }
  /* section heading (more_options.htag): full heading scale */
  .closing h2.cl-t,
  .closing h3.cl-t {
    font-family: var(--fs);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.005em;
    max-width: 22ch;
    margin: 14px auto 0;
  }
  /* only rendered when there are two blocks for it to separate */
  .closing .cl-rule {
    width: 60px;
    height: 1px;
    background: var(--line-2);
    margin: 40px auto;
  }
  .closing .cl-s {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--ink-3);
    max-width: 54ch;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
  }
  .closing .btn {
    margin-top: 40px;
  }
  /* a button straight after the title needs less air than one after a body paragraph */
  .closing .cl-t + .btn {
    margin-top: 22px;
  }
}

/* ------------------------------ projects_grid ----------------------------- */
.widget-projects_grid {
  .pj3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.6vw, 26px);
  }
  .pjc {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: flex-end;
    color: #fff;
  }
  .pjc .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  /* sits above .bg but below .pj-in, which is positioned */
  .pjc::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.62) 100%);
  }
  .pjc .pj-in {
    position: relative;
    padding: 30px;
    width: 100%;
    z-index: 1;
  }
  .pjc .pj-k {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
  }
  .pjc .pj-t {
    font-family: var(--fd);
    font-weight: 300;
    font-size: clamp(22px, 1.9vw, 30px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 8px;
  }
  .pjc .pj-l {
    font-size: 13px;
    opacity: 0.82;
    font-weight: 300;
    margin-top: 5px;
  }
  @media (max-width: 860px) {
    .pj3 {
      grid-template-columns: 1fr;
    }
  }
}

/* ----------------------------- split_img_text ----------------------------- */
.widget-split_img_text {
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  /* .rev flips the columns through `order` rather than `direction: rtl`, so the
     source order stays intact and mobile still stacks the image first */
  .split.rev .sp-img {
    order: 2;
  }
  .split .sp-img {
    position: relative;
    min-height: clamp(420px, 52vw, 720px);
  }
  .split .sp-img .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  .split .sp-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 110px);
  }
  .split .sp-txt .rtitle {
    margin: 20px 0 22px;
  }

  /* The CMS editor emits bare <p>/<ul>/<strong> with no classes to hook onto,
     so the body styles target the tags themselves. */
  .sp-body p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-2);
    font-weight: 300;
    max-width: 46ch;
  }
  .sp-body p + p {
    margin-top: 18px;
  }
  .sp-body strong {
    font-weight: 500;
    color: var(--ink);
  }
  .sp-body ul {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
  }
  .sp-body li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--ink-2);
  }
  .sp-body li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }

  /* the text column is a flex column, so the link must not stretch across it */
  .split .sp-txt .btn,
  .split .sp-txt .discover {
    margin-top: 34px;
    align-self: flex-start;
  }

  @media (max-width: 880px) {
    .split {
      grid-template-columns: 1fr;
    }
    .split.rev .sp-img {
      order: 0;
    }
  }
}

.widget-text_both_sides {
  .phil {
    display: grid;
    @media (min-width: 641px) {
      grid-template-columns: 1.05fr 1fr;
      gap: clamp(40px, 7vw, 120px);
    }
    @media (max-width: 640px) {
      .link-line {
        margin-bottom: 16px;
      }
    }
    align-items: center;
  }
  .phil .pq {
    font-family: var(--fs);
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.01em;
  }
  .phil .pq em {
    font-style: italic;
    color: var(--accent);
  }
}

.widget-img_and_text {
  /* feature */
  .feat {
    display: grid;
    @media (min-width: 768px) {
      grid-template-columns: 1fr 1fr;
      gap: clamp(40px, 6vw, 96px);
    }
    align-items: center;
  }
  .feat .feat-img {
    position: relative;
    aspect-ratio: 4/3.4;
    border-radius: 4px;
    overflow: hidden;
    @media (max-width: 767px) {
      margin-bottom: 16px;
    }
  }
  .feat .feat-img .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  .feat .feat-cap {
    position: absolute;
    left: 26px;
    bottom: 24px;
    color: #fff;
  }
  .feat .feat-cap .fc-t {
    font-family: var(--fs);
    font-size: 19px;
    line-height: 1.3;
  }
  .feat .feat-cap .fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: 0.3s var(--ease);
  }
  .feat .feat-cap .fc-btn:hover {
    background: #fff;
    color: var(--ink);
  }
  ul {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
  }
  ul li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    letter-spacing: 0.04em;
  }
  ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
}

.widget-cards_w_icons {
  .pillars {
    display: grid;
    @media (min-width: 768px) {
      grid-template-columns: repeat(3, 1fr);
    }
    gap: clamp(18px, 2vw, 36px);
  }
  .pillar {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 38px 34px;
    transition: 0.4s var(--ease);
  }
  .pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
  }
  .pillar .pic {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--accent);
    margin-bottom: 26px;
  }
  .pillar h3 {
    font-family: var(--fs);
    font-size: 24px;
    margin-bottom: 12px;
  }
  .pillar p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-3);
    font-weight: 300;
  }
}

.widget-card_split {
  .detail {
    display: grid;
    @media (min-width: 768px) {
      grid-template-columns: 1fr 1fr;
    }
    gap: clamp(40px, 6vw, 110px);
    align-items: center;
  }
  .detail .dets {
    display: flex;
    flex-direction: column;
    gap: 38px;
    margin-top: 38px;
  }
  .detail .dets h4 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
  }
  .detail .dets p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-3);
    font-weight: 300;
    max-width: 46ch;
  }
  .detail .det-img {
    @media (max-width: 767px) {
      order: -1;
    }
    aspect-ratio: 1/1.05;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }
  .detail .det-img .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
}

.widget-cta_configurator {
  .lab {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  .lab .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  .lab .glass {
    position: relative;
    background: rgba(20, 19, 14, 0.34);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: clamp(40px, 5vw, 64px);
    max-width: 620px;
    margin-inline: 24px;
    color: #fff;
  }
  .lab .glass .kicker {
    color: rgba(255, 255, 255, 0.75);
  }
  .lab .glass h2 {
    font-family: var(--fs);
    font-size: clamp(30px, 4vw, 52px);
    margin: 18px 0 14px;
  }
  .lab .glass p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 42ch;
    margin: 0 auto 30px;
    font-weight: 300;
  }
}
.widget-sentence_with_link {
  .endcta {
    background: var(--panel);
  }
  .endcta .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  .endcta h2 {
    font-family: var(--fs);
    font-size: clamp(26px, 3vw, 40px);
    color: var(--ink);
  }
}

.widget-quote_w_description {
  .quote-sec {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
  }
  .quote-sec .bigq {
    font-family: var(--fd);
    font-weight: 600;
    font-size: clamp(30px, 4.2vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .quote-sec .qlabel {
    margin-top: 30px;
  }
  .quote-sec p {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.7;
    color: var(--ink-2);
    font-weight: 300;
    &:not(:last-child) {
      margin-bottom: 1.5rem;
    }
  }

  @media (max-width: 900px) {
    .quote-sec,
    .ma {
      grid-template-columns: 1fr;
    }
  }
}

.widget-values_list {
  .values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
  }
  .values .v {
    background: var(--bg);
    padding: 40px 34px;
  }
  .values .v .vn {
    font-family: var(--fd);
    font-weight: 700;
    font-size: 34px;
    color: var(--accent);
  }
  .values .v h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 14px 0 8px;
  }
  .values .v p {
    font-size: 14px;
    color: var(--ink-3);
    font-weight: 300;
    line-height: 1.65;
  }
  @media (max-width: 900px) {
    .values {
      grid-template-columns: 1fr;
    }
  }
}

.widget-catalog_list {
  .catgrid {
    --catgap: clamp(20px, 2.4vw, 42px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--catgap);
  }

  /* flex instead of grid so an incomplete last row stays centered */
  .catcard {
    flex: 0 1 calc((100% - 3 * var(--catgap)) / 4);
    min-width: 0;
  }
  @media (max-width: 980px) {
    .catcard {
      flex-basis: calc((100% - var(--catgap)) / 2);
    }
  }
  @media (max-width: 520px) {
    .catcard {
      flex-basis: 100%;
    }
  }
  .cover {
    position: relative;
    aspect-ratio: 1/1.41;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    transition:
      transform 0.5s var(--ease),
      box-shadow 0.5s var(--ease);
    background: linear-gradient(155deg, #26241d 0%, #16150f 60%, #0c0b08 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 22px;
  }
  .catcard:hover .cover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  }
  .cover .jnf {
    font-family: var(--fd);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.55);
  }
  .cover .cmid .cw {
    font-family: var(--fd);
    font-weight: 300;
    letter-spacing: 0.3em;
    font-size: clamp(20px, 2vw, 30px);
    padding-left: 0.3em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 8px;
    display: inline-block;
  }
  .cover .cmid .cs {
    font-size: 9px;
    letter-spacing: 0.26em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 14px;
  }
  .cover .cyear {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.55);
  }
  .cover .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  .cover .grid-deco {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.5;
  }
  .cover .dl-over {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 8, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
  }
  .catcard:hover .dl-over {
    opacity: 1;
  }
  .dl-over .dlb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 12px 22px;
    transition: 0.25s;
  }
  .dl-over .dlb:hover {
    background: #fff;
    color: var(--ink);
  }
  .dl-over .prev {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 3px;
  }
  .catmeta {
    margin-top: 18px;
  }
  .catmeta .cm-t {
    font-weight: 500;
    font-size: 16px;
  }
  .catmeta .cm-s {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
  }
}

.widget-minimal_title {
  .ct-head {
    padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 90px));
    padding-bottom: clamp(30px, 4vw, 56px);
  }
  .ct-head h1 {
    font-family: var(--fd);
    font-weight: 600;
    font-size: clamp(40px, 6vw, 84px);
    letter-spacing: -0.02em;
  }
}

.widget-form_contact_w_list {
  .ct-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  @media (max-width: 880px) {
    .ct-grid {
      grid-template-columns: 1fr;
      gap: 48px;
    }
  }

  .ct-side h2 {
    font-family: var(--fs);
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.25;
    margin: 14px 0 36px;
  }
  .ct-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .ci {
    display: flex;
    gap: 18px;
    align-items: flex-start;
  }
  .ci .ci-ic {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--panel);
    display: grid;
    place-items: center;
    color: var(--ink);
    flex-shrink: 0;
  }
  .ci .ci-k {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .ci .ci-v {
    font-size: 16px;
    margin-top: 4px;
    line-height: 1.5;
  }
  .ci .ci-v a:hover {
    color: var(--accent);
  }

  .form {
    background: var(--panel);
    border-radius: 10px;
    padding: clamp(28px, 3.4vw, 46px);
  }
  .frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  @media (max-width: 560px) {
    .frow {
      grid-template-columns: 1fr;
    }
  }
  .fld {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }
  .fld label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .fld input,
  .fld select,
  .fld textarea {
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    padding: 13px 15px;
    font-size: 15px;
    color: var(--ink);
    transition:
      border-color 0.2s,
      box-shadow 0.2s;
    font-weight: 300;
  }
  .fld input:focus,
  .fld select:focus,
  .fld textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(22, 21, 15, 0.06);
  }
  .fld textarea {
    resize: vertical;
    min-height: 120px;
  }
  .fld-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 24px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ink-3);
  }
  .fld-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .fld-check .box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: var(--bg);
    display: grid;
    place-items: center;
    transition:
      border-color 0.2s,
      background 0.2s,
      box-shadow 0.2s;
  }
  .fld-check .box::after {
    content: '';
    width: 5px;
    height: 9px;
    margin: -4px 0 0 1px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s var(--ease);
  }
  .fld-check:hover .box {
    border-color: var(--ink);
  }
  .fld-check input:checked + .box {
    background: var(--ink);
    border-color: var(--ink);
  }
  .fld-check input:checked + .box::after {
    transform: rotate(45deg) scale(1);
  }
  .fld-check input:focus-visible + .box {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(22, 21, 15, 0.06);
  }
  .filebox {
    border: 1px dashed var(--line-2);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
    background: var(--bg);
  }
  .filebox:hover {
    border-color: var(--ink);
    color: var(--ink-3);
  }
  .form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .form-error {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(200, 30, 30, 0.08);
    border: 1px solid rgba(200, 30, 30, 0.3);
    color: #c81e1e;
    font-size: 14px;
    font-weight: 400;
  }
  .form-error.on {
    display: block;
  }
  .form-done {
    text-align: center;
    padding: 40px 10px;
    display: none;
  }
  .form-done.on {
    display: block;
  }
  .form-done .ok {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 26px;
  }
  .form-done h3 {
    font-family: var(--fs);
    font-size: 26px;
    margin-bottom: 8px;
  }
  .form-done p {
    color: var(--ink-3);
    font-weight: 300;
  }
}

.widget-map {
  .map {
    position: relative;
    isolation: isolate; /* contain Leaflet's internal z-indexes below the fixed navbar */
    z-index: 0;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: clamp(40px, 5vw, 72px);
    background: var(--panel-2);
  }
  /* mute the OSM tiles into the greige palette */
  .map .leaflet-tile-pane {
    filter: grayscale(1) sepia(0.28) brightness(1.03) contrast(0.92);
  }
  /* custom marker (Leaflet divIcon) — matches the old teardrop pin */
  .map-pin .dot {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    background: var(--ink);
    transform: rotate(-45deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }
  /* label pill (Leaflet tooltip) */
  .map .leaflet-tooltip.map-lab {
    background: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink);
    font-weight: 300;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }
  .map .leaflet-tooltip.map-lab::before {
    display: none; /* hide the tooltip arrow */
  }
  /* controls tuned to the palette */
  .map .leaflet-bar a {
    color: var(--ink);
    background: #fff;
  }
  .map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    color: var(--muted);
  }
  .map .leaflet-control-attribution a {
    color: var(--ink-3);
  }
}

/* ----------------------------- content_simple ----------------------------- */
.widget-content_simple {
  .cs {
    max-width: 880px;
    margin: 0 auto;
  }
  .cs-t {
    font-size: clamp(22px, 2.3vw, 34px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin-bottom: clamp(18px, 2vw, 28px);
  }
  .cs-tx {
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.8;
    font-weight: 300;
    color: var(--ink-3);
  }
  .cs-tx p:not(:last-child) {
    margin-bottom: 1.2rem;
  }
  .cs-tx ul,
  .cs-tx ol {
    margin: 0 0 1.2rem;
    padding-left: 20px;
  }
  .cs-tx li:not(:last-child) {
    margin-bottom: 0.5rem;
  }
  .cs-tx a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
  }
  .cs-link {
    margin-top: clamp(26px, 3vw, 38px);
  }
}

/* ---------------------------- accordion_simple ---------------------------- */
.widget-accordion_simple {
  .ac-head {
    max-width: 640px;
    margin: 0 auto clamp(34px, 4vw, 56px);
    text-align: center;
  }
  .ac-head h2 {
    margin-top: 16px;
  }
  .ac {
    max-width: 880px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
  }
  .ac-item {
    border-bottom: 1px solid var(--line);
  }
  .ac-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 32px);
    width: 100%;
    padding: clamp(18px, 2vw, 26px) 0;
    text-align: left;
    transition: color 0.3s var(--ease);
  }
  .ac-hd:hover {
    color: var(--accent);
  }
  .ac-t {
    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
  }
  /* a plus that loses its upright stroke when the panel opens */
  .ac-ico {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
  }
  .ac-ico::before,
  .ac-ico::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s var(--ease);
  }
  .ac-ico::before {
    left: 0;
    right: 0;
    top: 10px;
    height: 2px;
  }
  .ac-ico::after {
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
  }
  .ac-item.open .ac-ico::after {
    transform: scaleY(0);
  }
  /* 0fr → 1fr animates to the panel's own height, so nothing has to be measured */
  .ac-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease);
  }
  .ac-item.open .ac-body {
    grid-template-rows: 1fr;
  }
  .ac-body-in {
    overflow: hidden;
  }
  .ac-tx {
    padding-bottom: clamp(22px, 2.4vw, 34px);
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.8;
    font-weight: 300;
    color: var(--ink-3);
  }
  .ac-tx p:not(:last-child) {
    margin-bottom: 1.2rem;
  }
  .ac-tx ul,
  .ac-tx ol {
    margin: 0 0 1.2rem;
    padding-left: 20px;
  }
  .ac-tx li:not(:last-child) {
    margin-bottom: 0.5rem;
  }
  .ac-tx a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
  }
  @media (prefers-reduced-motion: reduce) {
    .ac-body,
    .ac-ico::before,
    .ac-ico::after {
      transition: none;
    }
  }
}

/* ============================================================
   ERROR / 404
   ============================================================ */
.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  text-align: center;
}
.error-404 .container {
  max-width: 720px;
}
.error-404 .err-code {
  font-family: var(--fd);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-size: clamp(120px, 24vw, 300px);
  color: var(--greige);
  margin: 0;
}
.error-404 .err-title {
  margin: clamp(10px, 2vw, 22px) auto 0;
  max-width: 24ch;
}
.error-404 .btn {
  margin-top: clamp(32px, 4vw, 46px);
}
@media (min-width: 1041px) {
  .error-404 .err-title {
    font-size: clamp(30px, 3vw, 44px);
  }
}

/* ============================================================
   PASSWORD FIELD
   The reveal toggle, shared by the auth screens and the profile page so it
   behaves the same in both. Markup comes from the password_field component; the
   input's own colours and padding stay with the form that renders it, which is
   why only the geometry the toggle needs lives here.
   ============================================================ */
.pw-input {
  position: relative;
  display: block;
}
.pw-input input {
  width: 100%;
  /* clears the toggle, which sits over the field's right padding */
  padding-right: 46px;
}
.pw-input input.is-invalid {
  border-color: #d98b8b;
}
.pw-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  padding: 4px;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.pw-eye:hover {
  color: var(--ink);
}
.pw-eye:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ============================================================
   AUTH  (login, password recovery)
   Split screen: photo on the left, form panel on the right. Shared by every
   page under app/views/pages/auth/ and by the components they render, so the
   screens of one flow cannot drift apart. Anything specific to a single form
   stays in that component's scoped style block.
   ============================================================ */
.login-body {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.login-photo {
  width: 57%;
  background-size: cover;
  background-position: center 60%;
  position: relative;
}
.login-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.38));
}
.login-photo-cap {
  position: absolute;
  left: 54px;
  bottom: 54px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-k {
  font-size: 13px;
  letter-spacing: 0.32em;
  opacity: 0.85;
}
.lp-t {
  font-family: var(--fd);
  font-weight: 300;
  font-size: 34px;
  line-height: 1.25;
}
.login-form {
  flex: 1;
  background: var(--panel);
  padding: 84px 96px 60px;
  display: flex;
  flex-direction: column;
}
.login-tabs {
  display: flex;
  gap: 40px;
  margin-bottom: 54px;
}
.login-tabs button {
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-bottom: 10px;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
}
.login-tabs button.on {
  color: var(--ink);
}
.login-tabs button.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}
.login-h {
  font-family: var(--fd);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 8px;
  color: var(--ink-2);
}
.login-sub {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}
.lf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.lf input,
.lf select {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 15px 16px;
  font-family: var(--ff);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.lf input:focus,
.lf select:focus {
  border-color: var(--ink);
}
.lf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.cbx {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.cbx input {
  width: 15px;
  height: 15px;
  accent-color: var(--ink);
}
.lf-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
}
.lf-link:hover {
  color: var(--ink);
}
.field-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.login-btn {
  width: 100%;
}
.login-alt {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.login-alt a {
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
/* hint under a field (password rules) — quieter than .login-sub, and it sits
   directly above the next control rather than opening a block */
.login-note {
  margin: -16px 0 26px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.login-error,
.login-ok {
  margin: 0 0 22px;
  padding: 13px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}
/* the palette carries no danger colour of its own; same tones as the profile form */
.login-error {
  border: 1px solid #d98b8b;
  background: #f6e4e4;
  color: #8a2f2f;
}
.login-ok {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding: 18px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-primary:hover {
  background: #000;
}
.btn-primary:active {
  transform: scale(0.99);
}
.btn-primary[disabled] {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 900px) {
  .login-body {
    flex-direction: column;
    min-height: auto;
    padding-top: var(--nav-h);
  }
  .login-photo {
    width: 100%;
    min-height: 280px;
  }
  .login-form {
    padding: 56px 28px 48px;
  }
}
