.site-settings { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-settings-trigger {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #d2d2d7;
  cursor: pointer; transition: color .2s ease, background .2s ease;
}
.site-settings-trigger:hover, .site-settings-trigger[aria-expanded="true"] { background: #39393d; color: #fff; }
.site-settings-trigger:focus-visible, .site-settings-switch:focus-visible { outline: 2px solid #f26a21; outline-offset: 3px; }
.site-settings-trigger svg { width: 19px; height: 19px; }
.site-settings-menu {
  position: absolute; top: calc(100% + 13px); right: 0; z-index: 130;
  width: 248px; padding: 17px; border: 1px solid #d9d9de; border-radius: 18px;
  background: #fff; color: #1d1d1f; box-shadow: 0 10px 35px #0000001f;
  text-align: left;
}
.site-settings-menu[hidden] { display: none; }
.site-settings-title { margin: 0 0 11px; color: #6e6e73; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.site-settings-switch {
  display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 14px;
  width: 100%; padding: 12px 0 2px; border: 0; border-top: 1px solid #ececef;
  background: transparent; color: #1d1d1f; cursor: pointer; font: inherit; text-align: left;
}
.site-settings-switch strong { display: block; font-size: 14px; font-weight: 600; }
.site-settings-switch > span:first-child { min-width: 0; white-space: normal; overflow-wrap: break-word; }
.site-settings-switch small { display: block; margin-top: 3px; color: #6e6e73; font-size: 11px; }
.site-settings-track { position: relative; display: block; width: 38px; height: 23px; flex: 0 0 38px; border-radius: 999px; background: #d0d0d5; transition: background .2s ease; }
.site-settings-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #00000028; transition: transform .2s ease; }
.site-settings-switch[aria-checked="true"] .site-settings-track { background: #f26a21; }
.site-settings-switch[aria-checked="true"] .site-settings-track::after { transform: translateX(15px); }
body.minimal-mode > main:not(.bento-board), body.minimal-mode > .site-footer { display: none !important; }
body.mode-switching > main { pointer-events: none; }
.bento-board[hidden] { display: none !important; }
.bento-board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.06fr) minmax(0, .94fr) 70px;
  gap: 10px; width: 100%; height: calc(100svh - 54px); min-height: 610px;
  padding: 12px; background: #e9e9ed; color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow: auto;
}
.bento-board * { box-sizing: border-box; }
.bento-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #dedee2; border-radius: 28px; background: #fff; padding: clamp(19px, 2vw, 28px); }
.bento-eyebrow { display: block; color: #d75e21; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.bento-tile h2 { margin: 13px 0 0; font-size: clamp(27px, 3vw, 43px); line-height: 1; letter-spacing: -.06em; font-weight: 660; }
.bento-tile p { color: #5d5d62; line-height: 1.38; }
.bento-tile a { text-decoration: none; }
.bento-tile a:focus-visible { outline: 2px solid #f26a21; outline-offset: 3px; }
.bento-hero { grid-column: 1 / 6; grid-row: 1 / 3; background: #fff; }
.bento-hero-copy { position: relative; z-index: 2; }
.bento-hero h1 { margin: 15px 0 10px; color: #f26a21; font-size: clamp(65px, 6.8vw, 105px); line-height: .9; letter-spacing: -.08em; font-weight: 700; }
.bento-hero p { max-width: 300px; margin: 0; color: #252528; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.035em; }
.bento-hero img { position: absolute; right: 0; bottom: -1px; width: auto; height: 76%; max-width: 90%; object-fit: contain; object-position: bottom right; }
.bento-flicks { grid-column: 6 / 13; grid-row: 1; display: flex; flex-direction: column; background: #f5f5f7; }
.bento-flicks h2 { margin-top: 11px; }
.bento-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-block: auto; }
.bento-themes a { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid #e0e0e4; border-radius: 13px; background: #fff; color: #262629; font-size: clamp(12px, 1.1vw, 15px); font-weight: 570; transition: border-color .2s ease, transform .2s ease; }
.bento-themes a:hover { border-color: #f26a21; transform: translateY(-2px); }
.bento-themes a span { color: #f26a21; }
.bento-about { grid-column: 6 / 9; grid-row: 2; display: flex; flex-direction: column; }
.bento-about p { margin: 14px 0 0; font-size: clamp(13px, 1.18vw, 16px); }
.bento-interest { grid-column: 9 / 13; grid-row: 2; display: flex; flex-direction: column; background: #f5f5f7; }
.bento-interest h2 { font-size: clamp(27px, 2.7vw, 38px); }
.bento-interest p { max-width: 340px; margin: 14px 0 0; font-size: clamp(13px, 1.18vw, 16px); }
.bento-tile-link { margin-top: auto; padding-top: 14px; align-self: flex-start; color: #006ee1; font-size: 14px; font-weight: 600; }
.bento-tile-link:hover { text-decoration: underline; }
.bento-social { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #242426; color: #f5f5f7; border-color: #242426; padding-block: 12px; }
.bento-social h2 { margin: 0; color: #f5f5f7; font-size: 24px; }
.bento-social-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
.bento-social-links a { color: #f5f5f7; font-size: 13px; }
.bento-social-links a:hover { color: #ff8a48; }
.bento-social-links a:last-child { color: #ff8a48; }
.back-to-top {
  position: fixed; right: clamp(15px, 2vw, 30px); bottom: clamp(16px, 2vw, 30px); z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid #d6d6dc; border-radius: 50%; background: #fff; color: #1d1d1f;
  box-shadow: 0 5px 18px #00000018; font-size: 24px; line-height: 1; cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: #f26a21; transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid #f26a21; outline-offset: 3px; }
body.minimal-mode .back-to-top { display: none; }
@supports (view-transition-name: none) {
  body:not(.minimal-mode) .hero { view-transition-name: wdfb-hero; }
  body:not(.minimal-mode) .category-panel { view-transition-name: wdfb-flicks; }
  body.minimal-mode .bento-hero { view-transition-name: wdfb-hero; }
  body.minimal-mode .bento-flicks { view-transition-name: wdfb-flicks; }
  ::view-transition-group(wdfb-hero), ::view-transition-group(wdfb-flicks) {
    animation-duration: 720ms;
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  }
  ::view-transition-old(root) { animation: 380ms ease-out both mode-fade-out; }
  ::view-transition-new(root) { animation: 540ms ease-in both mode-fade-in; }
  @keyframes mode-fade-out { to { opacity: 0; } }
  @keyframes mode-fade-in { from { opacity: 0; } }
}
body.minimal-mode .bento-about, body.minimal-mode .bento-interest, body.minimal-mode .bento-social {
  animation: tile-arrive 580ms cubic-bezier(.22, 1, .36, 1) both;
}
body.minimal-mode.mode-no-morph .bento-hero, body.minimal-mode.mode-no-morph .bento-flicks,
body.mode-no-morph:not(.minimal-mode) > main:not(.bento-board) {
  animation: tile-arrive 580ms cubic-bezier(.22, 1, .36, 1) both;
}
body.minimal-mode .bento-interest { animation-delay: 55ms; }
body.minimal-mode .bento-social { animation-delay: 95ms; }
@keyframes tile-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@media (max-width: 1050px) {
  .bento-board { height: auto; min-height: calc(100svh - 54px); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .bento-hero, .bento-flicks, .bento-about, .bento-interest, .bento-social { grid-column: auto; grid-row: auto; }
  .bento-hero, .bento-flicks { min-height: 440px; }
  .bento-about, .bento-interest { min-height: 240px; }
  .bento-social { grid-column: 1 / -1; min-height: 76px; }
  .bento-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bento-board { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  .bento-tile { border-radius: 23px; padding: 23px; }
  .bento-hero, .bento-flicks, .bento-about, .bento-interest, .bento-social { grid-column: 1; }
  .bento-hero { min-height: 420px; }
  .bento-hero h1 { font-size: clamp(62px, 16vw, 90px); }
  .bento-hero img { height: 85%; }
  .bento-flicks { min-height: 330px; }
  .bento-about, .bento-interest { min-height: 215px; }
  .bento-social { min-height: 115px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .bento-social-links { justify-content: flex-start; gap: 11px 20px; }
}
@media (max-width: 600px) {
  .site-settings-trigger { width: 27px; height: 30px; }
  .site-settings-trigger svg { width: 17px; height: 17px; }
  .site-settings-menu { right: -1px; }
  .back-to-top { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-settings-trigger, .site-settings-track, .site-settings-track::after, .bento-themes a, .back-to-top { transition-duration: .01ms !important; }
  body.minimal-mode .bento-about, body.minimal-mode .bento-interest, body.minimal-mode .bento-social { animation: none !important; }
  body.minimal-mode.mode-no-morph .bento-hero, body.minimal-mode.mode-no-morph .bento-flicks,
  body.mode-no-morph:not(.minimal-mode) > main:not(.bento-board) { animation: none !important; }
}
