/* Scale unit (design.md 2026-10-06): 1px up to the 1920px reference design, proportional above it. Write every size as calc(N*var(--bfnd-px)); never raw px. */
:root{--bfnd-px:1px}
@media (min-width:1921px){:root{--bfnd-px:max(1px,min(calc(100vw / 1920),calc(100vh / 940)))}}
/* Quiet, useful motion for navigation, actions, and visual feedback. */
body.bfnd-body :where(a, button, input, select, textarea, summary):focus-visible {
  outline: calc(2*var(--bfnd-px)) solid #775640;
  outline-offset: calc(3*var(--bfnd-px));
}

body.bfnd-body :is(.bf-button, .bf-course-card-action, .bf-filter-list button,
  .bf-tabs button, .bf-menu-button, .bf-nav-school-toggle, button,
  input[type="submit"], .button,
  .bf-gallery-button, .bf-footer-social a) {
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.bfnd-body :is(.bf-button, .bf-course-card-action, .bf-filter-list button,
  .bf-tabs button, .bf-menu-button, .bf-nav-school-toggle, button,
  input[type="submit"], .button):active {
  transform: translateY(calc(1*var(--bfnd-px))) scale(.99);
}

body.bfnd-body .bf-filter-list button::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

body.bfnd-body .bf-filter-list button.is-active::after {
  transform: scaleX(1);
}

body.bfnd-body .bf-nav-school-toggle {
  min-width: calc(44*var(--bfnd-px));
  min-height: calc(44*var(--bfnd-px));
}

@media (min-width: 1101px) {
  body.bfnd-body .bf-nav-school .bf-nav-course-menu {
    display: grid;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(8*var(--bfnd-px)));
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  body.bfnd-body .bf-nav-school.is-open .bf-nav-course-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

body.bfnd-body .bf-image-dialog {
  opacity: 0;
  transform: scale(.985);
  transition: opacity 180ms ease, transform 180ms ease,
    display 180ms allow-discrete, overlay 180ms allow-discrete;
}

body.bfnd-body .bf-image-dialog[open] {
  opacity: 1;
  transform: scale(1);
}

body.bfnd-body .bf-image-dialog::backdrop {
  background: rgb(19 13 11 / 0%);
  transition: background-color 180ms ease, display 180ms allow-discrete,
    overlay 180ms allow-discrete;
}

body.bfnd-body .bf-image-dialog[open]::backdrop {
  background: rgb(19 13 11 / 82%);
}

@starting-style {
  body.bfnd-body .bf-image-dialog[open] {
    opacity: 0;
    transform: scale(.985);
  }

  body.bfnd-body .bf-image-dialog[open]::backdrop {
    background: rgb(19 13 11 / 0%);
  }
}

@media (max-width: 1100px) {
  body.bfnd-body .bf-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-8*var(--bfnd-px)));
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  body.bfnd-body .bf-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.bfnd-body .bf-nav-school .bf-nav-course-menu,
  body.bfnd-body .bf-nav-school.is-open .bf-nav-course-menu {
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  body.bfnd-body .bf-nav-school.is-open .bf-nav-course-menu {
    display: grid;
  }

  body.bfnd-body .bf-nav-school.is-open .bf-nav-school-toggle {
    transform: rotate(180deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.bfnd-body .bf-work-card:is(:hover, :focus-visible) .bf-card-line span {
    transform: translateX(calc(3*var(--bfnd-px)));
  }

  body.bfnd-body .bf-work-card .bf-card-line span {
    display: inline-block;
    transition: transform 180ms ease;
  }

  body.bfnd-body .bf-footer-social a:hover {
    transform: translateY(calc(-2*var(--bfnd-px)));
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes bf-hero-arrive {
    from { opacity: 0; transform: translateY(calc(9*var(--bfnd-px))); }
    to { opacity: 1; transform: translateY(0); }
  }

  body.bfnd-body :is(.bf-home-hero-content, .bf-page-hero-copy,
    .bf-school-hero-content, .bf-lifestyle-hero-copy) > * {
    animation: bf-hero-arrive 420ms cubic-bezier(.2, .7, .2, 1) both;
  }

  body.bfnd-body :is(.bf-home-hero-content, .bf-page-hero-copy,
    .bf-school-hero-content, .bf-lifestyle-hero-copy) > :nth-child(2) {
    animation-delay: 70ms;
  }

  body.bfnd-body :is(.bf-home-hero-content, .bf-page-hero-copy,
    .bf-school-hero-content, .bf-lifestyle-hero-copy) > :nth-child(3) {
    animation-delay: 130ms;
  }

  body.bfnd-body :is(.bf-home-hero-content, .bf-page-hero-copy,
    .bf-school-hero-content, .bf-lifestyle-hero-copy) > :nth-child(4) {
    animation-delay: 190ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body.bfnd-body,
  body.bfnd-body *,
  body.bfnd-body *::before,
  body.bfnd-body *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  body.bfnd-body dialog::backdrop {
    transition-duration: .01ms !important;
  }
}

:root {
  --bf-line-green: #06c755;
  --bf-line-ink: #075e32;
  --bf-line-deep: #087a3a;
}

body.bfnd-body .bf-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8*var(--bfnd-px));
  min-width: 0;
}

body.bfnd-body .bf-footer-social > a {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 calc(44*var(--bfnd-px));
  align-items: center;
  justify-content: center;
  width: calc(44*var(--bfnd-px));
  min-width: calc(44*var(--bfnd-px));
  min-height: calc(44*var(--bfnd-px));
  padding: 0;
  border: calc(1*var(--bfnd-px)) solid transparent;
  background: transparent;
  color: var(--bf-ink);
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.bfnd-body .bf-footer-social > a:not(.bf-footer-line) svg {
  display: block;
  width: calc(24*var(--bfnd-px));
  height: calc(24*var(--bfnd-px));
}

body.bfnd-body .bf-footer-social > a:not(.bf-footer-line):hover {
  transform: translateY(calc(-2*var(--bfnd-px)));
  border-color: var(--bf-rule);
  background: var(--bf-warm);
  color: var(--bf-wood);
}

body.bfnd-body .bf-footer-social > .bf-footer-line {
  flex: 0 0 auto;
  width: auto;
  gap: calc(8*var(--bfnd-px));
  min-width: calc(44*var(--bfnd-px));
  padding: 0 calc(12*var(--bfnd-px));
  border-color: var(--bf-line-green);
  background: var(--bf-white);
  color: var(--bf-line-ink);
  font-family: var(--bf-sans);
  font-size:calc(12*var(--bfnd-px));
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

body.bfnd-body .bf-footer-social > .bf-footer-line img {
  flex: 0 0 calc(22*var(--bfnd-px));
  width: calc(22*var(--bfnd-px));
  height: calc(22*var(--bfnd-px));
  border-radius: calc(2*var(--bfnd-px));
  object-fit: contain;
}

body.bfnd-body .bf-footer-line .bf-social-arrow {
  display: inline-block;
  font-size:calc(12.88*var(--bfnd-px));
  transition: transform 180ms ease;
}

body.bfnd-body .bf-footer-social > .bf-footer-line:hover {
  transform: translateY(calc(-2*var(--bfnd-px)));
  border-color: var(--bf-line-deep);
  background: var(--bf-line-deep);
  box-shadow: 0 calc(5*var(--bfnd-px)) calc(14*var(--bfnd-px)) rgb(8 122 58 / 22%);
  color: var(--bf-white);
}

body.bfnd-body .bf-footer-line:hover .bf-social-arrow {
  transform: translate(calc(2*var(--bfnd-px)), calc(-2*var(--bfnd-px)));
}

body.bfnd-body .bf-footer-social > a:active {
  transform: translateY(0) scale(.97);
}

body.bfnd-body .bf-footer-social > .bf-footer-line:focus-visible {
  outline-color: var(--bf-line-deep);
}

@media (max-width: 760px) {
  body.bfnd-body .bf-footer-social {
    gap: calc(6*var(--bfnd-px));
  }

  body.bfnd-body .bf-footer-social > .bf-footer-line {
    gap: calc(7*var(--bfnd-px));
    padding-inline: calc(10*var(--bfnd-px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bfnd-body .bf-footer-social > a,
  body.bfnd-body .bf-footer-line .bf-social-arrow {
    transition-duration: .01ms;
  }
}

/* 1.3.100: the film is a centred, full-width interlude between chapter 02 and the philosophy (title on top, film below),
   not a second text-left / picture-right block, so the story rows above and below keep their zigzag. */
body.bfnd-body .bf-brand-film {
  padding-block: clamp(calc(56*var(--bfnd-px)), 7vw, calc(120*var(--bfnd-px)));
  background: var(--bf-warm);
}

body.bfnd-body .bf-brand-film-inner {
  display: block;
  max-width: calc(1120*var(--bfnd-px));
  margin-inline: auto;
  text-align: center;
}

body.bfnd-body .bf-brand-film-copy {
  margin-bottom: clamp(calc(24*var(--bfnd-px)), 3vw, calc(44*var(--bfnd-px)));
}

body.bfnd-body .bf-brand-film-copy h2 {
  margin: calc(13*var(--bfnd-px)) 0 calc(12*var(--bfnd-px));
  font-size:clamp(calc(26.35*var(--bfnd-px)),2.72vw,calc(39.1*var(--bfnd-px)));
}

body.bfnd-body .bf-brand-film-copy p {
  max-width: 32em;
  margin: 0 auto;
  line-height: 1.9;
}

body.bfnd-body .bf-brand-film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #211a15;
}

body.bfnd-body .bf-brand-film-frame > img,
body.bfnd-body .bf-brand-film-frame > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.bfnd-body .bf-brand-film-frame > img {
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2, .65, .25, 1);
}

body.bfnd-body .bf-brand-film-play {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(15*var(--bfnd-px));
  color: #fff;
  background: linear-gradient(0deg, rgb(24 18 14 / 43%), transparent 58%);
  text-decoration: none;
}

body.bfnd-body .bf-brand-film-play-icon {
  position: relative;
  display: grid;
  width: calc(72*var(--bfnd-px));
  height: calc(72*var(--bfnd-px));
  place-items: center;
  border: calc(1*var(--bfnd-px)) solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  background: rgb(52 43 37 / 47%);
  backdrop-filter: blur(calc(4*var(--bfnd-px)));
  transition: transform 220ms ease, background-color 220ms ease;
}

body.bfnd-body .bf-brand-film-play-icon::after {
  position: absolute;
  inset: calc(-9*var(--bfnd-px));
  border: calc(1*var(--bfnd-px)) solid rgb(255 255 255 / 70%);
  border-radius: inherit;
  content: "";
  animation: bf-brand-film-pulse 1.8s ease-out .6s 1 both;
}

body.bfnd-body .bf-brand-film-play-icon svg {
  width: calc(25*var(--bfnd-px));
  height: calc(25*var(--bfnd-px));
  fill: currentColor;
  transform: translateX(calc(2*var(--bfnd-px)));
}

body.bfnd-body .bf-brand-film-play-label {
  font-size:calc(12*var(--bfnd-px));
  font-weight: 600;
  letter-spacing: .12em;
}

body.bfnd-body .bf-brand-film-frame:hover > img,
body.bfnd-body .bf-brand-film-frame:focus-within > img {
  transform: scale(1.035);
}

body.bfnd-body .bf-brand-film-play:hover .bf-brand-film-play-icon,
body.bfnd-body .bf-brand-film-play:focus-visible .bf-brand-film-play-icon {
  transform: scale(1.07);
  background: var(--bf-wood);
}

body.bfnd-body .bf-brand-film-play:focus-visible {
  outline: calc(3*var(--bfnd-px)) solid #fff;
  outline-offset: calc(-7*var(--bfnd-px));
}

/* 1.3.104: 2–5 films. One frame shows at a time; under it ‹ small covers ›. Nothing moves or plays by itself. */
body.bfnd-body .bf-brand-film-frame[hidden] {
  display: none;
}

body.bfnd-body .bf-brand-film-carousel .bf-brand-film-frame.is-active {
  animation: bf-brand-film-in 420ms ease both;
}

body.bfnd-body .bf-brand-film-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(14*var(--bfnd-px));
  margin-top: calc(18*var(--bfnd-px));
}

body.bfnd-body .bf-brand-film-thumbs {
  display: grid;
  grid-auto-columns: minmax(0, calc(132*var(--bfnd-px)));
  grid-auto-flow: column;
  gap: calc(10*var(--bfnd-px));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.bfnd-body .bf-brand-film-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #211a15;
  opacity: .55;
  transition: opacity 220ms ease;
}

body.bfnd-body .bf-brand-film-thumb::after {
  position: absolute;
  inset: 0;
  border: calc(2*var(--bfnd-px)) solid transparent;
  content: "";
  transition: border-color 220ms ease;
}

body.bfnd-body .bf-brand-film-thumb span {
  position: absolute;
  left: calc(7*var(--bfnd-px));
  bottom: calc(4*var(--bfnd-px));
  color: #fff;
  font-size: calc(11*var(--bfnd-px));
  font-weight: 600;
  letter-spacing: .12em;
  text-shadow: 0 calc(1*var(--bfnd-px)) calc(4*var(--bfnd-px)) rgb(0 0 0 / 60%);
}

body.bfnd-body .bf-brand-film-thumb:hover,
body.bfnd-body .bf-brand-film-thumb:focus-visible,
body.bfnd-body .bf-brand-film-thumb[aria-current="true"] {
  opacity: 1;
}

body.bfnd-body .bf-brand-film-thumb[aria-current="true"]::after {
  border-color: var(--bf-wood);
}

body.bfnd-body .bf-brand-film-thumb:focus-visible,
body.bfnd-body .bf-brand-film-arrow:focus-visible {
  outline: calc(2*var(--bfnd-px)) solid var(--bf-wood);
  outline-offset: calc(3*var(--bfnd-px));
}

body.bfnd-body .bf-brand-film-arrow {
  display: grid;
  flex: none;
  width: calc(44*var(--bfnd-px));
  height: calc(44*var(--bfnd-px));
  place-items: center;
  padding: 0;
  border: calc(1*var(--bfnd-px)) solid var(--bf-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--bf-ink);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

body.bfnd-body .bf-brand-film-arrow svg {
  width: calc(18*var(--bfnd-px));
  height: calc(18*var(--bfnd-px));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

body.bfnd-body .bf-brand-film-arrow:hover {
  border-color: var(--bf-wood);
  background: var(--bf-wood);
  color: #fff;
}

@keyframes bf-brand-film-in {
  from { opacity: .35; }
  to { opacity: 1; }
}

@keyframes bf-brand-film-pulse {
  from { opacity: .65; transform: scale(.9); }
  to { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 760px) {
  body.bfnd-body .bf-brand-film {
    padding-block: calc(54*var(--bfnd-px));
  }

  body.bfnd-body .bf-brand-film-copy {
    margin-bottom: calc(22*var(--bfnd-px));
  }

  body.bfnd-body .bf-brand-film-copy h2 {
    font-size:calc(28.9*var(--bfnd-px));
  }

  body.bfnd-body .bf-brand-film-play-icon {
    width: calc(60*var(--bfnd-px));
    height: calc(60*var(--bfnd-px));
  }

  body.bfnd-body .bf-brand-film-nav {
    gap: calc(8*var(--bfnd-px));
  }

  body.bfnd-body .bf-brand-film-thumbs {
    flex: 1;
    grid-auto-columns: minmax(0, 1fr);
    gap: calc(6*var(--bfnd-px));
  }

  body.bfnd-body .bf-brand-film-arrow {
    width: calc(36*var(--bfnd-px));
    height: calc(36*var(--bfnd-px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bfnd-body .bf-brand-film-frame > img,
  body.bfnd-body .bf-brand-film-play-icon {
    transition-duration: .01ms;
  }

  body.bfnd-body .bf-brand-film-play-icon::after,
  body.bfnd-body .bf-brand-film-carousel .bf-brand-film-frame.is-active {
    animation: none;
  }
}

/* Readability (CONTRAST-AUDIT-2026-10-06.md): every fix below reaches WCAG AA.
   body.bfnd-body prefixes are required: plain class rules lose to body.bfnd-body p / a
   and the footer LINE colors also lose to the WordPress 額外 CSS block. */
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a.bf-footer-line{color:var(--bf-line-ink)}
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a.bf-footer-line:hover{color:var(--bf-white)}
body.bfnd-body .bf-index,body.bfnd-body .bf-story-number{color:var(--bf-wood)}
body.bfnd-body .bf-school-cta{position:relative}
body.bfnd-body .bf-school-cta::before{content:'';position:absolute;inset:0;background:rgba(36,24,13,.35)}
body.bfnd-body .bf-school-cta .bf-wrap{position:relative}
body.bfnd-body .bf-school-cta p{color:var(--bf-white)}
body.bfnd-body .bf-vertical-note{text-shadow:0 0 calc(14*var(--bfnd-px)) rgba(26,18,13,.9),0 calc(1*var(--bfnd-px)) calc(3*var(--bfnd-px)) rgba(26,18,13,.75)}
body.bfnd-body .bf-home-hero .bf-kicker,body.bfnd-body .bf-page-hero .bf-kicker,body.bfnd-body .bf-promo-copy .bf-kicker{color:var(--bf-white)}
body.bfnd-body .bf-home-hero-shade{background:linear-gradient(90deg,rgba(26,18,13,.78) 0%,rgba(26,18,13,.62) 50%,rgba(26,18,13,.2) 100%)}
body.bfnd-body .bf-page-hero-overlay{background:linear-gradient(90deg,#1d140dcc,#1d140d80 80%)}
body.bfnd-body .bf-promo-image img{filter:brightness(.55)}
body.bfnd-body .bf-manifesto:before{background:linear-gradient(90deg,#170e09b3 0%,#170e09a6 55%,#170e09b3 100%)}
body.bfnd-body .bf-manifesto-inner>span{color:var(--bf-white)}
body.bfnd-body .bf-collab-hero p{color:var(--bf-ink)}
body.bfnd-body .bf-collab-hero .bf-button:hover{background:var(--bf-white)}
body.bfnd-body .bf-home-hero .bf-actions .bf-button:first-child:hover{background:var(--bf-white);color:var(--bf-ink)!important}
body.bfnd-body .bf-direct-contact-row>a{color:var(--bf-wood)}
body.bfnd-body .bf-direct-contact-row>a:hover{color:var(--bf-ink)}
body.bfnd-body .bf-form-shell input::placeholder,body.bfnd-body .bf-form-shell textarea::placeholder{color:var(--bf-muted);opacity:1}
@media (max-width:768px){body.bfnd-body .bf-home-hero-shade{background:rgba(26,18,13,.68)}}

/* Home split promos: the whole tile is a link, so its button and photo respond to hover/focus. */
body.bfnd-body .bf-promo-copy .bf-plain-link{transition:background-color .2s ease,color .2s ease,border-color .2s ease}
body.bfnd-body .bf-split-promos>a:hover .bf-plain-link,body.bfnd-body .bf-split-promos>a:focus-visible .bf-plain-link{background:var(--bf-white);border-color:var(--bf-white);color:var(--bf-ink)!important}
body.bfnd-body .bf-split-promos>a:hover .bf-promo-image img,body.bfnd-body .bf-split-promos>a:focus-visible .bf-promo-image img{transform:scale(1.04)}
@media (prefers-reduced-motion:reduce){body.bfnd-body .bf-split-promos>a:hover .bf-promo-image img,body.bfnd-body .bf-split-promos>a:focus-visible .bf-promo-image img{transform:none}}

/* Footer at small browser zoom (e.g. 25%, viewport 7680px). The WordPress 額外 CSS holds a raw-px
   copy of old footer rules: it hides the LINE icon for a 17x14px drawn badge and fixes the bottom
   bar height, so neither scales. The logo image (250 at >=1920) also overflowed its 150 box. */
body.bfnd-body .bf-footer-main .bf-footer-brand img{max-width:100%}
@media (min-width:1920px){body.bfnd-body .bf-footer-main .bf-footer-brand{width:calc(250*var(--bfnd-px))}}
body.bfnd-body .bf-footer .bf-footer-social > a.bf-footer-line img{display:block}
body.bfnd-body .bf-footer .bf-footer-social > a.bf-footer-line::before{content:none;display:none}
@media (min-width:1101px){body.bfnd-body .bf-footer .bf-footer-bottom{min-height:calc(30*var(--bfnd-px));padding-block:calc(6*var(--bfnd-px))}}

/* RWD-AUDIT-2026-10-07.md fixes. */
/* Footer: the >=1920 rule added 82 padding, so zooming out past 1920 CSS px suddenly tripled the footer height. */
@media (min-width:1920px){body.bfnd-body .bf-footer .bf-footer-main{padding-block:calc(8*var(--bfnd-px));min-height:calc(76*var(--bfnd-px))}}
/* Mobile menu: the 木作學堂 submenu was squeezed (flex-shrink) and painted over the links below it. */
@media (max-width:1100px){body.bfnd-body .bf-nav>*{flex-shrink:0}}
/* Native/WooCommerce controls that ignored --bfnd-px at large widths. */
body.bfnd-body select{appearance:none;-webkit-appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23342b25' stroke-width='1.6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right calc(14*var(--bfnd-px)) center!important;background-size:calc(12*var(--bfnd-px)) auto!important;padding-right:calc(38*var(--bfnd-px))!important}
body.bfnd-body .woocommerce form .show-password-input{width:calc(22*var(--bfnd-px));height:calc(22*var(--bfnd-px));background-size:calc(22*var(--bfnd-px))}
body.bfnd-body .woocommerce input[type=checkbox]{width:calc(16*var(--bfnd-px));height:calc(16*var(--bfnd-px))}
body.bfnd-body .woocommerce form .form-row{padding:calc(3*var(--bfnd-px))}
body.bfnd-body .bf-product-reviews p.stars a{font-size:calc(20.4*var(--bfnd-px));width:1em;height:1em}
body.bfnd-body article.page :is(ul,ol){padding-left:calc(24*var(--bfnd-px))}
/* Sale badge was 11px, below the 12px desktop floor. */
body.bfnd-body .bf-commerce-content .woocommerce ul.products li.product span.onsale,body.bfnd-body ul.products li.product span.onsale{font-size:calc(12*var(--bfnd-px))}
/* Mobile footer: readable text and 44px touch targets. */
@media (max-width:1100px){
body.bfnd-body .bf-footer-main .bf-footer-maker small,body.bfnd-body .bf-footer-bottom small,body.bfnd-body .bf-footer-bottom nav a,body.bfnd-body .bf-footer-bottom nav span{font-size:calc(12*var(--bfnd-px))}
body.bfnd-body .bf-footer-main .bf-footer-maker strong,body.bfnd-body .bf-footer-main .bf-footer-links a,body.bfnd-body .bf-footer-main .bf-footer-motto{font-size:calc(12*var(--bfnd-px))}
}
@media (max-width:760px){
body.bfnd-body .bf-footer-bottom nav a{display:inline-flex;align-items:center;min-height:calc(44*var(--bfnd-px))}
body.bfnd-body .bf-footer-main .bf-footer-links a{min-height:calc(44*var(--bfnd-px));display:flex;align-items:center;justify-content:center}
body.bfnd-body .bf-footer-main .bf-footer-maker{min-height:calc(44*var(--bfnd-px));display:flex;flex-direction:column;justify-content:center}
body.bfnd-body :is(.bf-breadcrumb a,.bf-back,.bf-text-link,.bf-shop-categories a,ul.products a.button,#faq summary,.reset_variations){display:inline-flex;align-items:center;min-height:calc(44*var(--bfnd-px))}
/* Furniture filter row scrolls sideways: fade the edge so the cut-off buttons read as more. */
body.bfnd-body .bf-filter-list{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);padding-right:calc(24*var(--bfnd-px))}
}

/* Mobile (<=760): hero carousel controls smaller with a fixed gap below the buttons; footer stacked and centred. */
@media (max-width:760px){
body.bfnd-body .bfnd-banner-controls button{width:calc(40*var(--bfnd-px));height:calc(40*var(--bfnd-px));font-size:calc(14.72*var(--bfnd-px))}
body.bfnd-body .bfnd-banner-count{min-width:calc(46*var(--bfnd-px));font-size:calc(11*var(--bfnd-px))}
body.bfnd-body .bfnd-banner-controls{right:calc(16*var(--bfnd-px));bottom:calc(16*var(--bfnd-px));padding:calc(2*var(--bfnd-px))}
body.bfnd-body .bf-home-hero{height:auto;min-height:calc(480*var(--bfnd-px))}
body.bfnd-body .bf-home-hero-content{padding-bottom:calc(90*var(--bfnd-px))}
body.bfnd-body .bf-footer .bf-footer-main{display:flex;flex-direction:column;align-items:center;text-align:center;gap:calc(18*var(--bfnd-px));padding-block:calc(36*var(--bfnd-px)) calc(28*var(--bfnd-px))}
body.bfnd-body .bf-footer-main .bf-footer-brand{width:calc(160*var(--bfnd-px))}
body.bfnd-body .bf-footer-main .bf-footer-motto{text-align:center;margin-top:calc(-6*var(--bfnd-px));color:var(--bf-muted)}
body.bfnd-body .bf-footer-main .bf-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 calc(4*var(--bfnd-px));margin:0}
body.bfnd-body .bf-footer-main .bf-footer-links a{min-height:calc(40*var(--bfnd-px));padding:0 calc(12*var(--bfnd-px));display:flex;align-items:center}
body.bfnd-body .bf-footer-main .bf-footer-social{justify-content:center;flex-wrap:wrap;gap:calc(12*var(--bfnd-px));margin:0}
body.bfnd-body .bf-footer-main .bf-footer-maker{align-items:center;text-align:center;border:0;padding:0;min-height:0}
body.bfnd-body .bf-footer-bottom{padding-block:calc(14*var(--bfnd-px))}
body.bfnd-body .bf-footer-bottom .bf-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;gap:calc(6*var(--bfnd-px))}
body.bfnd-body .bf-footer-bottom small{white-space:normal}
body.bfnd-body .bf-footer-bottom nav{justify-content:center}
body.bfnd-body .bf-footer-bottom nav a{min-height:calc(32*var(--bfnd-px))}
}

/* 自由內容區: block-editor content before the footer, styled like the rest of the site. */
body.bfnd-body .bf-free-area-inner{max-width:calc(860*var(--bfnd-px));margin-inline:auto;font-size:calc(14.72*var(--bfnd-px));line-height:2;color:var(--bf-ink)}
body.bfnd-body .bf-free-area-inner>:first-child{margin-top:0}
body.bfnd-body .bf-free-area-inner>:last-child{margin-bottom:0}
body.bfnd-body .bf-free-area-inner :is(h2,h3,h4){margin:1.6em 0 .6em;font-family:var(--bf-serif);font-weight:500;line-height:1.45;letter-spacing:.06em}
body.bfnd-body .bf-free-area-inner h2{font-size:clamp(calc(22.1*var(--bfnd-px)),1.87vw,calc(30.6*var(--bfnd-px)))}
body.bfnd-body .bf-free-area-inner h3{font-size:calc(18.7*var(--bfnd-px))}
body.bfnd-body .bf-free-area-inner p{margin:0 0 1.2em}
body.bfnd-body .bf-free-area-inner img{width:auto;max-width:100%;height:auto;object-fit:initial}
body.bfnd-body .bf-free-area-inner figure{margin:1.6em 0}
body.bfnd-body .bf-free-area-inner a:not(.wp-block-button__link){color:var(--bf-wood);border-bottom:calc(1*var(--bfnd-px)) solid currentColor}
body.bfnd-body .bf-free-area-inner .wp-block-button__link{display:inline-block;padding:calc(14*var(--bfnd-px)) calc(26*var(--bfnd-px));border:calc(1*var(--bfnd-px)) solid var(--bf-wood);border-radius:0;background:var(--bf-wood);color:#fff;font-size:calc(12.88*var(--bfnd-px));letter-spacing:.08em}
body.bfnd-body .bf-free-area-inner .wp-block-button__link:hover{background:transparent;color:var(--bf-wood)}
body.bfnd-body .bf-free-area-inner :is(ul,ol){margin:0 0 1.2em;padding-left:1.4em}
body.bfnd-body .bf-free-area-inner .wp-block-embed iframe{width:100%;aspect-ratio:16/9;height:auto}

/* Footer social: larger touch targets; LINE in the same quiet outline as other buttons, a green dot marks it (1.3.64). */
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social{gap:calc(12*var(--bfnd-px))}
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a{flex-basis:calc(52*var(--bfnd-px));width:calc(52*var(--bfnd-px));min-width:calc(52*var(--bfnd-px));min-height:calc(52*var(--bfnd-px));border-color:var(--bf-rule);border-radius:50%}
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a:not(.bf-footer-line) svg{width:calc(28*var(--bfnd-px));height:calc(28*var(--bfnd-px))}
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a.bf-footer-line{position:relative;flex-basis:auto;width:auto;min-height:calc(52*var(--bfnd-px));padding:0 calc(26*var(--bfnd-px)) 0 calc(22*var(--bfnd-px));gap:calc(10*var(--bfnd-px));border-radius:0;border-color:var(--bf-ink);background:transparent;color:var(--bf-ink);font-size:calc(12.88*var(--bfnd-px));letter-spacing:.14em;box-shadow:none;transition:background-color 600ms cubic-bezier(.22,.61,.36,1),color 600ms cubic-bezier(.22,.61,.36,1)}
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a.bf-footer-line img{display:none}
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a.bf-footer-line::before{content:'';display:block;flex:0 0 calc(7*var(--bfnd-px));width:calc(7*var(--bfnd-px));height:calc(7*var(--bfnd-px));border-radius:50%;background:var(--bf-line-green)}
body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a.bf-footer-line:hover{background:var(--bf-ink);border-color:var(--bf-ink);color:var(--bf-paper)}

/* Scroll motion (site.js adds html.bf-motion and data-bf-reveal; without JS nothing is hidden).
   Each element animates once on entering the screen; no looping animation. */
@media (prefers-reduced-motion: no-preference) {
  /* 1.3.64 quiet motion: small travel, no blur or scale, slower and softer; stagger 160ms. */
  html.bf-motion [data-bf-reveal] {
    --bf-ease: cubic-bezier(.22, .61, .36, 1);
    transition: opacity 1100ms var(--bf-ease), transform 1100ms var(--bf-ease);
    transition-delay: calc(var(--bf-i, 0) * 160ms);
  }
  html.bf-motion [data-bf-reveal]:not(.is-in) { opacity: 0; }
  html.bf-motion [data-bf-reveal="rise"]:not(.is-in) { transform: translateY(calc(14*var(--bfnd-px))); }
  html.bf-motion [data-bf-reveal="card"]:not(.is-in) { transform: translateY(calc(14*var(--bfnd-px))); }
  html.bf-motion [data-bf-reveal="photo"] { overflow: hidden; transition-duration: 1400ms; }
  html.bf-motion [data-bf-reveal="photo"] img { transition: transform 2400ms var(--bf-ease); }
  html.bf-motion [data-bf-reveal="photo"]:not(.is-in) img { transform: scale(1.04); }
  html.bf-motion [data-bf-reveal="title"] { transition-delay: 200ms; }
  html.bf-motion [data-bf-reveal="title"] .bf-phrase { transition: opacity 1200ms var(--bf-ease), transform 1200ms var(--bf-ease); transition-delay: calc(var(--bf-p, 0) * 180ms + 200ms); }
  html.bf-motion [data-bf-reveal="title"]:not(.is-in) .bf-phrase { opacity: 0; transform: translateY(.3em); }

  /* Heroes: photo settles from a slight zoom on arrival (plays once). */
  @keyframes bf-hero-settle { from { transform: scale(1.04); } to { transform: scale(1); } }
  html.bf-motion :is(.bf-home-hero, .bf-page-hero-image, .bf-school-hero-image, .bf-lifestyle-hero-image, .bf-brand-hero-image) img {
    animation: bf-hero-settle 2400ms cubic-bezier(.22, .61, .36, 1) both;
  }

  /* Hover: cards stay still; only the photo eases in inside its frame and the title gains a hairline. */
  @media (hover: hover) {
    html.bf-motion [data-bf-reveal="card"].is-in { transition-delay: 0ms; }
    body.bfnd-body .bf-work-image img,
    body.bfnd-body :is(.bf-story-row-image, .bf-promo-image, .bf-manifesto-image) img { transition: transform 1400ms cubic-bezier(.22, .61, .36, 1); }
    body.bfnd-body .bf-work-card:hover .bf-work-image img,
    body.bfnd-body :is(.bf-story-row-image, .bf-promo-image, .bf-manifesto-image):hover img { transform: scale(1.03); }
    body.bfnd-body .bf-work-card h3 { text-decoration: underline; text-decoration-thickness: calc(1*var(--bfnd-px)); text-underline-offset: .35em; text-decoration-color: transparent; transition: text-decoration-color 700ms cubic-bezier(.22, .61, .36, 1); }
    body.bfnd-body .bf-work-card:hover h3 { text-decoration-color: currentColor; }
  }
}

/* 1.3.64 buttons: no jump, a slow color fill; hero titles lighter with wider spacing. */
body.bfnd-body :is(.bf-button, .bf-course-card-action) { letter-spacing: .14em; transition: background-color 600ms cubic-bezier(.22, .61, .36, 1), color 600ms cubic-bezier(.22, .61, .36, 1), border-color 600ms cubic-bezier(.22, .61, .36, 1); }
body.bfnd-body :is(.bf-button, .bf-course-card-action):hover { transform: none; }
body.bfnd-body :is(.bf-home-hero, .bf-page-hero, .bf-school-hero, .bf-lifestyle-hero, .bf-collab-hero) h1 { font-weight: 400; letter-spacing: .12em; }

/* 1.3.65 spacing and type scale: four shared rules for every content section (not heroes), styling only.
   No markup or default text changes, so owner edits keyed to the rendered text stay attached. */
body.bfnd-body {
  --bf-space-section: clamp(calc(88*var(--bfnd-px)), 11vw, calc(168*var(--bfnd-px)));
  --bf-space-head: clamp(calc(40*var(--bfnd-px)), 5vw, calc(72*var(--bfnd-px)));
  --bf-measure: 32em;
}
body.bfnd-body :is(.bf-section, .bf-cta, .bf-spec-section, .bf-craft-section, .bf-philosophy, .bf-brand-statement,
  .bf-lifestyle-directions, .bf-lifestyle-process, .bf-lifestyle-cta, .bf-learning-path, .bf-school-cta,
  .bf-collab-possibilities, .bf-collab-design, .bf-collab-process, .bf-collab-scenarios, .bf-collab-sustain, .bf-collab-after,
  .bf-inquiry-section, .bf-service-section, .bf-commerce-section) { padding-block: var(--bf-space-section); }
body.bfnd-body .bf-section-head { margin-bottom: var(--bf-space-head); }
body.bfnd-body .bf-section-head h2 { margin-top: calc(18*var(--bfnd-px)); }
/* Eyebrow labels: lighter sans with wide tracking and a short hairline; inline so they follow the block's alignment, colour stays per context. */
body.bfnd-body .bf-kicker { display: inline-flex; align-items: center; gap: calc(14*var(--bfnd-px)); font-family: var(--bf-sans); font-weight: 500; letter-spacing: .32em; }
body.bfnd-body .bf-kicker::before { content: ''; flex: 0 0 calc(28*var(--bfnd-px)); height: calc(1*var(--bfnd-px)); background: currentColor; opacity: .7; }
body.bfnd-body .bf-kicker:empty { display: none; }
/* Section headings: regular weight, open tracking and leading; sizes keep each section's own scale. */
body.bfnd-body main :is(section, .bf-section) h2 { font-weight: 400; letter-spacing: .08em; line-height: 1.5; text-wrap: balance; overflow-wrap: anywhere; }
/* Running text in story blocks: a comfortable line length and leading. */
body.bfnd-body :is(.bf-story-grid, .bf-story-row, .bf-philosophy, .bf-brand-statement, .bf-craft-section) p { max-width: var(--bf-measure); line-height: 2.1; letter-spacing: .04em; }
body.bfnd-body .bf-brand-statement p { margin-inline: auto; }
/* Work grids: more air between rows than between columns. */
body.bfnd-body .bf-work-grid { column-gap: clamp(calc(16*var(--bfnd-px)), 3vw, calc(48*var(--bfnd-px))); row-gap: clamp(calc(40*var(--bfnd-px)), 6vw, calc(88*var(--bfnd-px))); }
body.bfnd-body .bf-work-card h3 { letter-spacing: .08em; }

/* Reading progress: a thin wood line along the top edge. */
.bf-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 100000; height: calc(3*var(--bfnd-px)); background: linear-gradient(90deg, #a07a55, #6b4a33); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bf-progress { display: none; } }
@media print { html.bf-motion [data-bf-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; } .bf-progress { display: none; } }

/* 1101–1380px: the footer row is too narrow for brand, links, social and LINE in one line; the links box used to shrink
   below its text and the social circles covered 品牌故事／合作提案. Let it wrap instead, and drop the maker note where it
   would sit alone on a second line. */
@media (min-width:1101px) and (max-width:1380px){
  body.bfnd-body .bf-footer .bf-footer-main{flex-wrap:wrap;row-gap:calc(16*var(--bfnd-px))}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-links{flex:1 0 auto;min-width:max-content}
}
@media (min-width:1101px) and (max-width:1250px){
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-maker{display:none}
}

/* 1.3.68 site motion (first on the home page, now on every page): one character per kind, so the page has a rhythm instead of one fade everywhere.
   Photos open like a sliding panel, headings rise out of a line mask phrase by phrase, small print only fades,
   cards come in one after another with their photo opening from below, and hover draws a wood line under a work.
   Home only (body.bfnd-body); other pages keep the quiet 1.3.64 motion. Reduced-motion visitors see everything at once. */
@media (prefers-reduced-motion: no-preference) {
  body.bfnd-body { --bf-home-ease: cubic-bezier(.16, 1, .3, 1); --bf-wood: #a0703f; }

  /* Hero on arrival: kicker line draws, then the title phrases, the lead and the buttons follow. */
  @keyframes bf-home-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes bf-home-rise { from { opacity: 0; transform: translateY(.9em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
  @keyframes bf-home-fade { from { opacity: 0; } to { opacity: 1; } }
  html.bf-motion body.home .bf-home-hero-content .bf-kicker { animation: bf-home-fade 900ms var(--bf-home-ease) 300ms both; }
  html.bf-motion body.home .bf-home-hero-content .bf-kicker::before { transform-origin: left center; animation: bf-home-line 1100ms var(--bf-home-ease) 200ms both; }
  html.bf-motion body.home .bf-home-hero-content h1 .bf-phrase { animation: bf-home-rise 1300ms var(--bf-home-ease) both; animation-delay: calc(500ms + var(--bf-p, 0) * 160ms); }
  html.bf-motion body.home .bf-home-hero-content h1:not(:has(.bf-phrase)) { animation: bf-home-rise 1300ms var(--bf-home-ease) 500ms both; }
  html.bf-motion body.home .bf-home-hero-content > p { animation: bf-home-fade 1200ms ease 1100ms both; }
  html.bf-motion body.home .bf-home-hero-content .bf-actions { animation: bf-home-fade 1200ms ease 1350ms both; }

  /* Other pages' heroes on arrival: the same order (kicker line, title phrases, lead, buttons). */
  html.bf-motion body.bfnd-body :is(.bf-page-hero, .bf-lifestyle-hero, .bf-school-hero, .bf-collab-hero, .bf-brand-hero, .bf-simple-hero, .bf-commerce-hero) .bf-kicker { animation: bf-home-fade 900ms var(--bf-home-ease) 300ms both; }
  html.bf-motion body.bfnd-body :is(.bf-page-hero, .bf-lifestyle-hero, .bf-school-hero, .bf-collab-hero, .bf-brand-hero, .bf-simple-hero, .bf-commerce-hero) .bf-kicker::before { transform-origin: left center; animation: bf-home-line 1100ms var(--bf-home-ease) 200ms both; }
  html.bf-motion body.bfnd-body :is(.bf-page-hero, .bf-lifestyle-hero, .bf-school-hero, .bf-collab-hero, .bf-brand-hero, .bf-simple-hero, .bf-commerce-hero) h1 .bf-phrase { animation: bf-home-rise 1300ms var(--bf-home-ease) both; animation-delay: calc(450ms + var(--bf-p, 0) * 160ms); }
  html.bf-motion body.bfnd-body :is(.bf-page-hero, .bf-lifestyle-hero, .bf-school-hero, .bf-collab-hero, .bf-brand-hero, .bf-simple-hero, .bf-commerce-hero) h1 ~ :is(p, .bf-actions) { animation: bf-home-fade 1200ms ease 1000ms both; }

  /* Headings: each phrase rises out of its own line, like a block sliding up from a slot. */
  html.bf-motion body.bfnd-body [data-bf-reveal="title"] { transition: none; opacity: 1; }
  html.bf-motion body.bfnd-body [data-bf-reveal="title"] .bf-phrase { transition: transform 1300ms var(--bf-home-ease), opacity 900ms ease, clip-path 1300ms var(--bf-home-ease); transition-delay: calc(var(--bf-p, 0) * 140ms + 80ms); clip-path: inset(0 0 -20% 0); }
  html.bf-motion body.bfnd-body [data-bf-reveal="title"]:not(.is-in) .bf-phrase { opacity: 0; transform: translateY(.9em); clip-path: inset(0 0 100% 0); }

  /* Small print (kicker, lead, links): no travel, only a slow fade a beat after the heading; the kicker line draws. */
  html.bf-motion body.bfnd-body [data-bf-reveal="rise"] { transition: opacity 1200ms ease; transition-delay: calc(250ms + var(--bf-i, 0) * 120ms); }
  html.bf-motion body.bfnd-body [data-bf-reveal="rise"]:not(.is-in) { transform: none; }
  html.bf-motion body.bfnd-body .bf-kicker[data-bf-reveal]::before { transform-origin: left center; transition: transform 1100ms var(--bf-home-ease) 150ms; }
  html.bf-motion body.bfnd-body .bf-kicker[data-bf-reveal]:not(.is-in)::before { transform: scaleX(0); }

  /* Large photos: the frame opens sideways like a sliding wooden door while the picture settles from closer in.
     The second of the two promo photos opens from the other side. */
  html.bf-motion body.bfnd-body [data-bf-reveal="photo"] { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 1600ms var(--bf-home-ease); }
  html.bf-motion body.bfnd-body [data-bf-reveal="photo"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
  html.bf-motion body.bfnd-body .bf-split-promos > :nth-child(n+3)[data-bf-reveal="photo"]:not(.is-in),
  html.bf-motion body.bfnd-body .bf-split-promos > :last-child [data-bf-reveal="photo"]:not(.is-in) { clip-path: inset(0 0 0 100%); }
  html.bf-motion body.bfnd-body [data-bf-reveal="photo"] img { transition: transform 2600ms var(--bf-home-ease); }
  html.bf-motion body.bfnd-body [data-bf-reveal="photo"]:not(.is-in) img { transform: scale(1.18); }

  /* Work cards: one after another, rising further; the photo opens from the bottom, the name follows. */
  html.bf-motion body.bfnd-body .bf-work-card[data-bf-reveal="card"] { transition: opacity 900ms ease, transform 1300ms var(--bf-home-ease); transition-delay: calc(var(--bf-i, 0) * 140ms); }
  html.bf-motion body.bfnd-body .bf-work-card[data-bf-reveal="card"]:not(.is-in) { transform: translateY(calc(48*var(--bfnd-px))); }
  html.bf-motion body.bfnd-body .bf-work-card[data-bf-reveal] .bf-work-image { clip-path: inset(0); transition: clip-path 1400ms var(--bf-home-ease); transition-delay: calc(var(--bf-i, 0) * 140ms + 100ms); }
  html.bf-motion body.bfnd-body .bf-work-card[data-bf-reveal]:not(.is-in) .bf-work-image { clip-path: inset(100% 0 0 0); }

  /* Collaboration cards: rise in turn, and their thin line draws across after them. */
  html.bf-motion body.bfnd-body .bf-home-collab-card[data-bf-reveal="card"] { transition: opacity 900ms ease, transform 1200ms var(--bf-home-ease); transition-delay: calc(var(--bf-i, 0) * 120ms); }
  html.bf-motion body.bfnd-body .bf-home-collab-card[data-bf-reveal="card"]:not(.is-in) { transform: translateY(calc(32*var(--bfnd-px))); }
  html.bf-motion body.bfnd-body [data-bf-reveal] .bf-card-line { transform-origin: left center; transition: transform 1200ms var(--bf-home-ease); transition-delay: calc(var(--bf-i, 0) * 140ms + 500ms); }
  html.bf-motion body.bfnd-body [data-bf-reveal]:not(.is-in) .bf-card-line { transform: scaleX(0); }

  /* Hover (mouse only): the photo moves closer slowly and a wood line draws under the work's name. */
  @media (hover: hover) {
    body.bfnd-body .bf-work-card h3 { position: relative; text-decoration: none; }
    body.bfnd-body .bf-work-card h3::after { content: ''; position: absolute; left: 0; bottom: calc(-6*var(--bfnd-px)); width: 100%; height: calc(2*var(--bfnd-px)); background: var(--bf-wood); transform: scaleX(0); transform-origin: left center; transition: transform 900ms var(--bf-home-ease); }
    body.bfnd-body .bf-work-card:hover h3::after, body.bfnd-body .bf-work-card:focus-visible h3::after { transform: scaleX(1); }
    body.bfnd-body .bf-work-card:hover .bf-work-image img { transform: scale(1.06); }
    body.bfnd-body .bf-home-collab-card { transition: transform 800ms var(--bf-home-ease), box-shadow 800ms var(--bf-home-ease); }
    body.bfnd-body .bf-home-collab-card:hover { transform: translateY(calc(-6*var(--bfnd-px))); box-shadow: 0 calc(18*var(--bfnd-px)) calc(40*var(--bfnd-px)) rgba(43, 32, 24, .12); }
  }
}

/* 1.3.68 site depth (site.js moves these as the page scrolls, with the CSS translate / scale properties only, so the
   reveal (transform) and hover effects still work). Photos are larger than their frames (--bf-depth-scale from
   site.js) so they drift inside without showing an edge. Home: the hero photo drifts with the page, its words lift
   away, and the white strip below sits over it like a card. */
@media (prefers-reduced-motion: no-preference) {
  html.bf-depth body.bfnd-body :is(.bf-promo-image, .bf-manifesto-image, .bf-work-image, .bf-home-collab-card > div, .bf-story-row-image, .bf-philosophy-image, .bf-lifestyle-intro-image, .bf-collab-design-image, .bf-collab-scenario-image, .bf-collab-sustain-image, .bf-collab-after-image, .bf-page-hero-image, .bf-lifestyle-hero-image, .bf-school-hero-image, .bf-collab-hero-image, .bf-brand-hero-image, .bf-simple-hero-image) { overflow: hidden; }
  html.bf-depth body.home .bf-split-promos > * { overflow: hidden; }
  html.bf-depth body.bfnd-body [data-bf-depth] img { scale: var(--bf-depth-scale, 1.3); will-change: translate; }
  /* The hero photo reaches 30% above the hero, so drifting down (35% of the scroll) never shows the brown behind it. */
  html.bf-depth body.home .bf-home-hero-image { inset: -30% 0 0 0; transform-origin: center bottom; will-change: translate, scale; }
  html.bf-depth body.home .bf-home-hero-content { will-change: translate, opacity; }
  html.bf-depth body.bfnd-body .bf-work-grid .bf-work-card { will-change: translate; }
  html.bf-depth body.home .bf-home-values { position: relative; z-index: 2; box-shadow: 0 calc(-24*var(--bfnd-px)) calc(48*var(--bfnd-px)) rgba(30, 20, 14, .18); }
}

/* 1.3.68b 木・人・空間・未來 (bf-manifesto): a tall window onto the photo, which drifts strongly as the page scrolls
   (site.js); no sideways wipe. The words gather in from wide spacing out of a soft blur, then the line and the
   English note fade in. */
@media (prefers-reduced-motion: no-preference) {
  html.bf-depth body.home .bf-manifesto { min-height: clamp(calc(240*var(--bfnd-px)), 30vh, calc(340*var(--bfnd-px))); } /* 1.3.98: was 360–560px */
  html.bf-motion body.home .bf-manifesto-image[data-bf-reveal] { clip-path: none; transition: none; }
  html.bf-motion body.home .bf-manifesto-image[data-bf-reveal] img { transition: none; }
  html.bf-motion body.home .bf-manifesto-image[data-bf-reveal]:not(.is-in) img { transform: none; }
  html.bf-motion body.home .bf-manifesto h2[data-bf-reveal="title"] { transition: letter-spacing 2000ms var(--bf-home-ease), opacity 1400ms ease, filter 1400ms ease; }
  html.bf-motion body.home .bf-manifesto h2[data-bf-reveal="title"]:not(.is-in) { opacity: 0; letter-spacing: .5em; filter: blur(calc(6*var(--bfnd-px))); }
  html.bf-motion body.home .bf-manifesto h2[data-bf-reveal="title"] .bf-phrase,
  html.bf-motion body.home .bf-manifesto h2[data-bf-reveal="title"]:not(.is-in) .bf-phrase { opacity: 1; transform: none; clip-path: none; transition: none; }
  html.bf-motion body.home .bf-manifesto :is(p, .bf-manifesto-inner > span, .bf-button) { transition: opacity 1400ms ease 700ms; }
  html.bf-motion body.home .bf-manifesto:not(:has(h2.is-in)) :is(p, .bf-manifesto-inner > span, .bf-button) { opacity: 0; }
}

/* 1.3.98 bf-manifesto balance: the row used to start 31% in (left 40% empty) inside a 360–560px window. Now it spans
   the content width like every other section (title left, script middle, button right) and the window is shorter. */
html body.bfnd-body .bf-manifesto { min-height: clamp(calc(240*var(--bfnd-px)), 30vh, calc(340*var(--bfnd-px))); padding-block: calc(48*var(--bfnd-px)); }
html body.bfnd-body .bf-manifesto-inner { padding-left: 0; justify-content: space-between; gap: calc(40*var(--bfnd-px)); }
html body.bfnd-body .bf-manifesto h2 { font-size: clamp(calc(26*var(--bfnd-px)), 2.4vw, calc(38*var(--bfnd-px))); margin-bottom: calc(10*var(--bfnd-px)); }
html body.bfnd-body .bf-manifesto p { font-size: calc(14*var(--bfnd-px)); }
html body.bfnd-body .bf-manifesto-inner > span { margin-left: 0; font-size: calc(20*var(--bfnd-px)); }
html body.bfnd-body .bf-manifesto .bf-button { margin-left: 0; }
@media (max-width: 760px) {
  html body.bfnd-body .bf-manifesto, html.bf-depth body.home .bf-manifesto { min-height: 0; padding-block: calc(44*var(--bfnd-px)); }
  html body.bfnd-body .bf-manifesto-inner { gap: calc(10*var(--bfnd-px)); }
  html body.bfnd-body .bf-manifesto h2 { font-size: calc(22*var(--bfnd-px)); }
  html body.bfnd-body .bf-manifesto .bf-button { margin-top: calc(8*var(--bfnd-px)); }
}

/* Side panel of social links on every page (1.3.89): a slim paper-and-walnut pill on the right edge (page content hugs the left), hairline wood joints top and bottom, a quiet name on hover. Phones get a small round button that opens it. */
body.bfnd-body .bf-social-rail {
  position: fixed;
  top: 50%;
  right: calc(18*var(--bfnd-px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(4*var(--bfnd-px));
  padding: calc(8*var(--bfnd-px)) calc(5*var(--bfnd-px));
  background: rgba(248, 246, 242, .84);
  -webkit-backdrop-filter: blur(calc(10*var(--bfnd-px))) saturate(1.1);
  backdrop-filter: blur(calc(10*var(--bfnd-px))) saturate(1.1);
  border: calc(1*var(--bfnd-px)) solid rgba(119, 86, 64, .24);
  border-radius: calc(44*var(--bfnd-px));
  box-shadow: 0 calc(16*var(--bfnd-px)) calc(36*var(--bfnd-px)) rgba(52, 43, 37, .10), inset 0 calc(1*var(--bfnd-px)) 0 rgba(255, 255, 255, .75);
  transform: translateY(-50%);
}
body.bfnd-body .bf-rail-links { display: contents; }
body.bfnd-body .bf-rail-toggle,
body.bfnd-body .bf-rail-handle { display: none; }
body.bfnd-body .bf-social-rail::before,
body.bfnd-body .bf-social-rail::after {
  content: "";
  width: calc(1*var(--bfnd-px));
  height: calc(16*var(--bfnd-px));
  background: linear-gradient(to bottom, rgba(119, 86, 64, 0), var(--bf-wood));
}
body.bfnd-body .bf-social-rail::after { background: linear-gradient(to top, rgba(119, 86, 64, 0), var(--bf-wood)); }
body.bfnd-body .bf-social-rail a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(38*var(--bfnd-px));
  height: calc(38*var(--bfnd-px));
  border-radius: 50%;
  color: var(--bf-ink);
  text-decoration: none;
  transition: background-color 320ms cubic-bezier(.2, .7, .2, 1), color 320ms cubic-bezier(.2, .7, .2, 1), transform 320ms cubic-bezier(.2, .7, .2, 1);
}
body.bfnd-body .bf-social-rail svg {
  display: block;
  width: calc(18*var(--bfnd-px));
  height: calc(18*var(--bfnd-px));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.bfnd-body .bf-social-rail .bf-rail-line img {
  display: block;
  width: calc(20*var(--bfnd-px));
  height: calc(20*var(--bfnd-px));
  border-radius: calc(5*var(--bfnd-px));
}
body.bfnd-body .bf-social-rail a:hover,
body.bfnd-body .bf-social-rail a:focus-visible {
  background: var(--bf-wood);
  color: var(--bf-paper);
  transform: scale(1.07);
}
body.bfnd-body .bf-social-rail a:focus-visible { outline: calc(2*var(--bfnd-px)) solid var(--bf-wood); outline-offset: calc(3*var(--bfnd-px)); }
body.bfnd-body .bf-social-rail a::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 14*var(--bfnd-px));
  padding: calc(6*var(--bfnd-px)) calc(12*var(--bfnd-px));
  background: var(--bf-ink);
  color: var(--bf-paper);
  border-radius: calc(3*var(--bfnd-px));
  font-family: var(--bf-sans);
  font-size: calc(11*var(--bfnd-px));
  letter-spacing: .16em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(6*var(--bfnd-px)), -50%);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.2, .7, .2, 1);
}
body.bfnd-body .bf-social-rail a:hover::after,
body.bfnd-body .bf-social-rail a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: no-preference) {
  body.bfnd-body .bf-social-rail { animation: bfRailIn 900ms cubic-bezier(.2, .7, .2, 1) 700ms both; }
  @keyframes bfRailIn {
    from { opacity: 0; transform: translate(calc(16*var(--bfnd-px)), -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
  }
}
/* Narrower windows: the panel stays on the right edge but moves to the lower half and gets a little smaller. */
@media (max-width: 1100px) {
  body.bfnd-body .bf-social-rail {
    top: auto;
    bottom: calc(110*var(--bfnd-px));
    right: calc(8*var(--bfnd-px));
    gap: calc(2*var(--bfnd-px));
    padding: calc(6*var(--bfnd-px)) calc(4*var(--bfnd-px));
    transform: none;
  }
  body.bfnd-body .bf-social-rail::before,
  body.bfnd-body .bf-social-rail::after { height: calc(10*var(--bfnd-px)); }
  body.bfnd-body .bf-social-rail a { width: calc(34*var(--bfnd-px)); height: calc(34*var(--bfnd-px)); }
  body.bfnd-body .bf-social-rail svg { width: calc(17*var(--bfnd-px)); height: calc(17*var(--bfnd-px)); }
  body.bfnd-body .bf-social-rail a::after { display: none; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
  body.bfnd-body .bf-social-rail { animation-name: bfRailInRight; }
  @keyframes bfRailInRight {
    from { opacity: 0; transform: translateX(calc(16*var(--bfnd-px))); }
    to { opacity: 1; transform: none; }
  }
}
/* Phones: only a small round button sits at the corner; a tap opens the links above it, so nothing is covered until you ask. */
@media (max-width: 700px) {
  body.bfnd-body .bf-social-rail {
    bottom: calc(20*var(--bfnd-px));
    right: calc(14*var(--bfnd-px));
    padding: 0;
    gap: 0;
    border-radius: calc(26*var(--bfnd-px));
  }
  body.bfnd-body .bf-social-rail::before,
  body.bfnd-body .bf-social-rail::after { display: none; }
  body.bfnd-body .bf-rail-handle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(46*var(--bfnd-px));
    height: calc(46*var(--bfnd-px));
    color: var(--bf-ink);
  }
  body.bfnd-body .bf-rail-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    width: calc(46*var(--bfnd-px));
    height: calc(46*var(--bfnd-px));
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }
  body.bfnd-body .bf-rail-toggle:focus-visible + .bf-rail-handle { outline: calc(2*var(--bfnd-px)) solid var(--bf-wood); outline-offset: calc(3*var(--bfnd-px)); border-radius: 50%; }
  body.bfnd-body .bf-social-rail .bf-rail-icon-close { display: none; }
  body.bfnd-body .bf-rail-links {
    order: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: calc(2*var(--bfnd-px));
    padding: calc(8*var(--bfnd-px)) calc(4*var(--bfnd-px)) calc(2*var(--bfnd-px));
  }
  body.bfnd-body .bf-rail-toggle:checked ~ .bf-rail-links { display: flex; }
  body.bfnd-body .bf-rail-toggle:checked + .bf-rail-handle .bf-rail-icon-open { display: none; }
  body.bfnd-body .bf-social-rail .bf-rail-toggle:checked + .bf-rail-handle .bf-rail-icon-close { display: block; }
}
@media print { body.bfnd-body .bf-social-rail { display: none; } }
body.bfnd-body .bf-product-assurance a.bf-line-consult {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16*var(--bfnd-px));
  padding: calc(15*var(--bfnd-px)) calc(2*var(--bfnd-px));
  color: var(--bf-ink);
  font-size: calc(12.88*var(--bfnd-px));
  letter-spacing: .06em;
}
body.bfnd-body .bf-line-consult > span:first-child { display: inline-flex; align-items: center; gap: calc(10*var(--bfnd-px)); }
body.bfnd-body .bf-line-consult img { display: block; width: calc(22*var(--bfnd-px)); height: calc(22*var(--bfnd-px)); }
body.bfnd-body .bf-line-consult:hover { color: var(--bf-wood); text-decoration: none; }
body.bfnd-body .bf-course-line { margin: calc(18*var(--bfnd-px)) 0 0; }

/* The hover line under a work's name sits in its own gap, so it no longer covers the English name below (1.3.81). */
body.bfnd-body .bf-work-card h3 { margin-bottom: calc(12*var(--bfnd-px)); }

/* 1.3.98 footer balance (desktop): smaller social circles and LINE button at the same 40px height, larger and darker
   text, maker note with matching weight. Copyright: the CJK font draws ’ full width, so "Bear’s" looked like "Bear’ s";
   proportional punctuation (palt) closes the gap. */
body.bfnd-body .bf-footer-bottom small{font-feature-settings:"palt"}
@media (min-width:1101px){
  body.bfnd-body .bf-footer .bf-footer-main{column-gap:calc(28*var(--bfnd-px))}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-motto{font-size:calc(15*var(--bfnd-px));color:var(--bf-ink)}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-links a{font-size:calc(15*var(--bfnd-px));color:var(--bf-ink)}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social{gap:calc(10*var(--bfnd-px))}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a{flex-basis:calc(40*var(--bfnd-px));width:calc(40*var(--bfnd-px));min-width:calc(40*var(--bfnd-px));height:calc(40*var(--bfnd-px));min-height:calc(40*var(--bfnd-px))}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a:not(.bf-footer-line) svg{width:calc(20*var(--bfnd-px));height:calc(20*var(--bfnd-px))}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-social > a.bf-footer-line{flex-basis:auto;width:auto;height:calc(40*var(--bfnd-px));min-height:calc(40*var(--bfnd-px));margin-left:calc(6*var(--bfnd-px));padding:0 calc(18*var(--bfnd-px)) 0 calc(16*var(--bfnd-px));gap:calc(8*var(--bfnd-px));font-size:calc(13*var(--bfnd-px));letter-spacing:.1em}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-maker strong{font-size:calc(15*var(--bfnd-px))}
  body.bfnd-body .bf-footer .bf-footer-main .bf-footer-maker small{font-size:calc(13*var(--bfnd-px));color:var(--bf-ink)}
  body.bfnd-body .bf-footer .bf-footer-bottom small,body.bfnd-body .bf-footer .bf-footer-bottom nav a{font-size:calc(13*var(--bfnd-px))}
}
