/*
 * Frontier Forge: cinematic layer (loads after frontier.css)
 * RedM pictures, colour grades and motion. Everything here is switched by theme options:
 *   body[data-grade]    Colour grade (Sundown, Dusk, Sepia, Bayou, Frost, Natural)
 *   body[data-motion]   Motion (Full, Calm, Off)
 *   body.ff-has-*       a section has a picture (head.twig sets --ff-pic-*)
 */

/* ---------- Colour grades ---------- */
.ff-body {
  --g-shadow: 31 18 10;
  --g-tint: 200 116 47;
  --g-tint-op: 0.32;
  --g-glow: 255 186 102;
  --g-accent: #e9b46c;
  --g-filter: sepia(0.2) saturate(1.08) contrast(1.06);
  --g-card-filter: sepia(0.45) saturate(0.9);
  /* Western cursors: broken wooden arrow, brass arrow, revolver or bowie knife, and a pointing hand for anything clickable */
  --ff-cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f6dc9c'/%3E%3Cstop offset='.55' stop-color='%23c49445'/%3E%3Cstop offset='1' stop-color='%237a5420'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 2L3 25L9 19.5L13.5 29L17.5 27.2L13 18L21 18Z' fill='url(%23b)' stroke='%232a1a0e' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M5.5 7L5.5 19.5' stroke='%23fff3d0' stroke-width='1' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") 3 2, auto;
  --ff-cursor-revolver: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e9ecef'/%3E%3Cstop offset='.5' stop-color='%239aa3ab'/%3E%3Cstop offset='1' stop-color='%235d646b'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23a0603a'/%3E%3Cstop offset='1' stop-color='%234e2a16'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(1.4 1.4) scale(0.8) rotate(45 2 2) translate(2 -9)' stroke='%231d140c' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M0 9.5H15V13H0Z' fill='url(%23s)'/%3E%3Cpath d='M1 8.2H3V9.5H1Z' fill='%231d140c'/%3E%3Cpath d='M14 7.5H22.5V14.5H14Z' rx='1.5' fill='url(%23s)'/%3E%3Cpath d='M16.8 7.8V14.2M19.6 7.8V14.2' stroke-width='0.8'/%3E%3Cpath d='M22 8.5H26.5L28 10.5V14.5H22Z' fill='url(%23s)'/%3E%3Cpath d='M24.5 14.5L27.5 14.5L31 24.5C31.3 25.6 30.6 26.5 29.5 26.5H26.6C25.7 26.5 25 25.9 24.8 25Z' fill='url(%23w)'/%3E%3Cpath d='M19.5 14.5C19.5 17.8 21.5 18.6 24.3 17.6' fill='none'/%3E%3Cpath d='M22 14.5L22.6 16.4' /%3E%3C/g%3E%3C/svg%3E") 2 2, auto;
  --ff-cursor-knife: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e9ecef'/%3E%3Cstop offset='.5' stop-color='%239aa3ab'/%3E%3Cstop offset='1' stop-color='%235d646b'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23a0603a'/%3E%3Cstop offset='1' stop-color='%234e2a16'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg stroke='%231d140c' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M2 2C8 5.5 14 10.5 19.5 16.5L16.5 19.5C11 14 6 7.5 2 2Z' fill='url(%23s)'/%3E%3Cpath d='M3.6 3.4C8.5 6.6 13 10.5 17.6 15.2' stroke='%23ffffff' stroke-width='0.7' opacity='.8' fill='none'/%3E%3Cpath d='M15 21L21 15L23 17L17 23Z' fill='%23c49445'/%3E%3Cpath d='M19 21L21 19L29.5 27.5C30.2 28.2 30.2 29.2 29.5 29.9S27.8 30.6 27.1 29.9L18.6 21.4Z' fill='url(%23w)'/%3E%3Ccircle cx='24' cy='24.5' r='0.9' fill='%23f6dc9c' stroke='none'/%3E%3Ccircle cx='26.6' cy='27.1' r='0.9' fill='%23f6dc9c' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 2 2, auto;
  --ff-cursor-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg stroke='%232a1a0e' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M10 13V3.2C10 1.9 11 1 12.1 1S14.2 1.9 14.2 3.2V12.5' fill='%23f3e6c8'/%3E%3Cpath d='M14.2 11.5C14.2 10.3 15.1 9.6 16.1 9.6S18 10.3 18 11.5V13M18 12C18 10.9 18.9 10.3 19.8 10.3S21.6 10.9 21.6 12V14M21.6 13.2C21.6 12.2 22.4 11.6 23.3 11.6S25 12.3 25 13.3V19.5C25 23.2 22.6 25 19.6 25H14.2C11.6 25 10.2 23.6 9.2 21.8L6.2 16.6C5.6 15.6 5.9 14.6 6.7 14.2S8.5 14 9.1 15L10 16.6' fill='%23f3e6c8'/%3E%3Cpath d='M14.2 12.5V16M18 13V16M21.6 14V16.4' fill='none'/%3E%3Cpath d='M11.6 25H23.4V30.4H11.6Z' fill='%237a2f25'/%3E%3Cpath d='M13 27.7H22' stroke='%23d9b56a' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") 12 1, pointer;
  --ff-cursor-wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d39456'/%3E%3Cstop offset='.5' stop-color='%239a5a2c'/%3E%3Cstop offset='1' stop-color='%235a3018'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 2L3 8.6L4.2 9.6L3 11L3 24L8.8 19L10.9 23.4L10.2 24.6L11.9 25.6L12.7 29.4L14.2 27.4L15.4 28.9L16.3 26.6L17.9 27.4L15.7 22.7L13.4 18.3L16.9 18.2L17.8 16.9L18.8 18.1L21 17.9Z' fill='url(%23p)' stroke='%231d1009' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M4.6 6.5C5.6 10 5.4 15 4.8 20M6.6 10.5C7.4 13 7.6 15.5 7.3 18M11 20.5C11.8 22.4 12.6 24 13.6 26' fill='none' stroke='%235a3018' stroke-width='0.7' opacity='.8'/%3E%3Cpath d='M3 13.8L5 13L5.8 14.6L7.9 13.3L8.8 14.4L10.6 13.6' fill='none' stroke='%231d1009' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M4.4 3.8L4.4 7.6' stroke='%23f2c58a' stroke-width='0.8' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") 3 2, auto;
  --ff-cursor-wood-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d39456'/%3E%3Cstop offset='.5' stop-color='%239a5a2c'/%3E%3Cstop offset='1' stop-color='%235a3018'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg stroke='%231d1009' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M10 13V3.2C10 1.9 11 1 12.1 1S14.2 1.9 14.2 3.2V12.5' fill='url(%23p)'/%3E%3Cpath d='M14.2 11.5C14.2 10.3 15.1 9.6 16.1 9.6S18 10.3 18 11.5V13M18 12C18 10.9 18.9 10.3 19.8 10.3S21.6 10.9 21.6 12V14M21.6 13.2C21.6 12.2 22.4 11.6 23.3 11.6S25 12.3 25 13.3V19.5C25 23.2 22.6 25 19.6 25H14.2C11.6 25 10.2 23.6 9.2 21.8L6.2 16.6C5.6 15.6 5.9 14.6 6.7 14.2S8.5 14 9.1 15L10 16.6' fill='url(%23p)'/%3E%3Cpath d='M14.2 12.5V16M18 13V16M21.6 14V16.4' fill='none'/%3E%3Cpath d='M12.1 3.5L11.4 6L12.4 7.6L11.6 10' fill='none' stroke-width='0.9'/%3E%3Cpath d='M16 18.5L18.2 20.6L17.4 22.4' fill='none' stroke-width='0.8'/%3E%3Cpath d='M11.6 25H23.4V30.4H11.6Z' fill='%234e2a16'/%3E%3Cpath d='M13 27.7H17.5L18.4 26.8L19.2 28.2L22 27.7' fill='none' stroke='%23c49445' stroke-width='0.9'/%3E%3C/g%3E%3C/svg%3E") 12 1, pointer;
  /* western line patterns (generated SVG, used as masks so the grade colours them) */
  --ff-pat-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cpath d='M0 468L10 459L20 446L29 430L32 420L36 400L33 380L28 370L19 360L0 352M900 352L880 351L860 355L846 360L830 370L820 378L810 388L801 400L795 410L790 421L785 440L790 455L800 464L810 470L830 478L840 480L860 482L874 480L890 474L900 468M600 398L590 403L579 410L568 420L559 430L550 446L544 460L540 475L537 490L534 510L533 530L532 550L531 570L531 590L530 610L530 630L531 650L533 670L538 690L544 700L559 710L563 710L580 702L590 690L597 680L604 670L611 660L620 648L630 636L640 623L650 611L659 600L667 590L676 580L684 570L692 560L700 549L710 535L720 521L727 510L733 500L740 482L743 470L740 457L730 445L720 436L710 429L698 420L682 410L670 403L660 398L640 393L620 393L600 398M900 312L880 310L860 310L840 311L820 312L800 312L785 310L770 306L758 300L740 290L730 285L718 280L700 277L680 278L670 281L650 287L640 290L620 299L610 303L595 310L580 317L570 322L553 330L540 337L530 343L520 350L509 360L500 373L494 390L491 410L492 430L495 450L497 470L500 490L501 500L502 520L503 540L503 560L502 580L501 600L500 610L497 630L494 650L491 670L489 680L488 700L490 718L493 730L500 745L510 760L519 770L530 780L540 787L550 793L564 800L580 807L590 810L610 815L630 818L650 815L659 800L653 780L650 770L643 750L640 730L640 720L640 710L644 690L650 671L655 660L661 650L670 636L680 622L690 610L699 600L709 590L719 580L730 570L740 563L750 556L761 550L780 542L790 540L810 537L830 537L850 537L870 535L890 531L900 527M0 527L11 520L23 510L32 500L40 489L50 472L55 460L60 448L66 430L70 411L71 400L71 380L70 369L63 350L57 340L47 330L31 320L20 316L0 312M900 280L890 279L870 276L850 272L839 270L820 263L810 259L795 250L780 240L770 234L760 228L740 222L720 221L700 224L680 230L670 233L653 240L640 245L628 250L610 257L600 260L580 266L562 270L550 272L530 272L515 270L500 265L490 259L480 250L470 235L462 220L458 210L450 190L445 180L440 170L430 157L420 147L409 140L390 134L370 135L353 140L340 148L330 160L326 170L325 190L330 206L337 220L344 230L351 240L360 251L370 263L380 275L390 289L397 300L401 310L407 330L409 350L410 360L413 380L417 400L421 410L430 429L436 440L443 450L450 462L459 480L463 490L470 510L473 520L476 540L477 560L477 580L475 600L472 620L470 630L465 650L460 667L457 680L453 700L453 720L457 740L461 750L470 767L479 780L488 790L498 800L509 810L520 818L530 825L540 832L555 840L570 847L580 851L600 858L610 862L630 868L640 872L660 878L670 881L690 885L710 887L730 880L738 870L742 860L743 840L740 822L736 810L730 798L720 782L712 770L705 760L698 750L690 735L684 720L682 700L685 680L690 665L698 650L704 640L712 630L722 620L733 610L747 600L760 593L770 588L790 583L808 580L820 579L840 579L860 579L880 577L900 574M0 574L13 570L30 562L40 555L50 546L60 532L66 520L70 510L78 490L81 480L86 460L90 446L94 430L97 410L99 390L98 370L95 350L90 335L82 320L73 310L60 300L50 294L40 290L20 284L0 280M637 0L650 5L663 10L680 17L690 21L710 29L720 32L740 35L758 30L768 20L773 10L776 0M900 252L890 249L870 244L860 240L840 230L830 224L820 216L810 207L800 198L790 190L776 180L760 174L740 174L720 179L710 183L695 190L680 197L670 202L652 210L640 215L628 220L610 227L598 230L580 234L560 235L540 232L530 229L514 220L503 210L495 200L488 190L480 176L471 160L465 150L458 140L450 129L440 120L425 110L410 104L390 102L370 102L350 106L337 110L320 117L310 123L300 131L290 143L283 160L283 180L288 200L292 210L300 224L310 240L317 250L324 260L331 270L340 284L349 300L353 310L360 330L362 340L365 360L367 380L369 400L371 410L378 430L383 440L390 450L400 462L410 472L420 484L430 497L438 510L443 520L450 540L452 550L453 570L453 590L450 609L447 620L442 640L438 650L431 670L427 680L422 700L420 710L420 729L422 740L430 759L437 770L444 780L451 790L460 800L470 811L480 821L490 830L501 840L515 850L530 859L540 864L552 870L570 877L580 880L600 887L610 890L630 897L637 900M0 608L20 605L38 600L50 595L62 590L77 580L86 570L93 560L100 540L102 530L105 510L108 490L110 474L112 460L115 440L118 420L120 405L121 390L122 370L120 351L118 340L112 320L107 310L100 299L90 288L80 280L63 270L50 265L35 260L20 256L0 252M900 608L886 610L870 611L850 612L830 613L810 615L790 618L780 621L762 630L750 638L740 648L730 660L725 670L720 690L722 710L729 730L734 740L740 750L750 767L756 780L761 790L769 810L772 820L776 840L779 860L779 880L776 900M552 0L570 5L588 10L600 13L619 20L630 24L643 30L660 39L670 45L680 51L692 60L702 70L710 80L719 100L717 120L710 132L700 145L690 154L680 162L670 170L654 180L640 187L630 192L610 199L600 202L580 205L560 203L548 200L530 190L520 181L510 170L504 160L497 150L490 137L480 120L473 110L465 100L455 90L440 81L430 77L410 74L390 74L370 75L350 78L340 80L320 85L302 90L290 94L275 100L260 108L250 116L240 128L235 140L234 160L238 180L242 190L250 206L258 220L265 230L272 240L280 250L290 264L300 278L308 290L313 300L320 316L325 330L328 350L330 370L330 380L331 400L332 420L335 440L340 453L350 469L360 480L370 489L380 497L390 506L400 515L410 527L417 540L422 550L426 570L426 590L423 610L420 620L412 640L407 650L400 663L390 680L385 690L380 701L375 720L379 740L383 750L390 761L400 774L410 785L420 797L430 808L440 818L450 829L460 840L470 850L480 860L490 869L500 877L510 883L523 890L540 896L552 900M811 0L813 20L815 40L816 60L816 80L817 100L820 117L823 130L830 149L835 160L841 170L850 182L860 193L870 202L884 210L900 217M0 637L20 634L40 630L50 629L70 624L90 620L100 617L120 611L130 607L141 600L150 588L153 570L150 552L148 540L143 520L140 500L140 490L139 470L140 450L141 440L142 420L144 400L145 380L145 360L144 340L141 320L138 310L131 290L125 280L117 270L107 260L94 250L80 243L70 239L50 232L40 229L20 224L8 220L0 217M900 637L880 640L870 641L850 644L830 648L819 650L800 657L790 662L779 670L770 683L766 700L767 720L770 731L776 750L780 762L786 780L790 794L794 810L799 830L801 840L805 860L808 880L810 892L811 900M457 0L459 20L448 30L430 35L410 40L400 42L380 45L360 49L350 51L330 54L310 56L290 58L270 59L250 58L230 57L210 57L190 58L180 61L160 69L150 75L140 83L130 96L124 110L125 130L130 149L134 160L138 180L130 191L110 190L100 189L80 186L60 182L50 180L30 172L20 165L10 156L0 141M840 0L843 10L850 27L856 40L861 50L870 69L875 80L880 90L888 110L892 120L900 140L900 141M510 36L494 50L497 70L500 81L506 100L510 110L520 130L526 140L534 150L544 160L560 170L570 173L590 174L610 170L620 166L632 160L646 150L656 140L663 130L670 110L670 108L667 90L660 79L650 68L640 60L622 50L610 45L594 40L580 37L560 34L540 33L520 35L510 36M500 40L500 40M180 230L172 240L172 260L173 280L173 300L174 320L174 340L173 360L173 380L172 400L172 420L173 440L175 460L180 477L186 490L193 500L202 510L215 520L230 530L240 537L250 546L259 560L263 570L270 589L274 600L280 614L290 630L300 640L310 646L328 650L331 650L350 645L360 639L370 630L380 615L385 600L386 580L380 562L371 550L360 542L350 536L336 530L320 524L310 519L298 510L290 496L287 480L287 460L288 440L290 424L292 410L294 390L294 370L293 350L290 336L285 320L280 310L270 295L260 282L250 272L240 263L230 255L220 248L207 240L190 232L180 230M457 900L450 886L441 870L435 860L427 850L419 840L410 830L399 820L388 810L375 800L360 790L350 784L340 779L320 770L310 766L296 760L280 751L270 743L260 734L250 723L240 712L230 701L220 692L210 684L200 677L187 670L170 663L160 659L140 654L120 652L100 651L80 651L60 653L40 656L20 659L10 661L0 663M900 663L880 667L870 670L850 677L840 682L828 690L818 700L810 716L807 730L807 750L809 770L811 780L814 800L818 820L820 830L825 850L830 869L833 880L840 900M187 0L170 7L160 11L141 20L130 25L120 30L100 39L90 44L70 50L60 52L40 53L28 50L10 43L0 36M254 0L270 7L280 11L300 15L320 17L340 15L360 11L370 6L379 0M869 0L875 10L883 20L893 30L900 36M570 84L560 95L560 108L566 120L580 129L590 131L600 129L612 120L615 100L608 90L590 82L570 84M379 900L386 890L385 870L380 860L370 849L357 840L340 833L330 830L310 827L290 826L270 823L260 819L248 810L240 800L230 786L221 770L215 760L209 750L200 737L190 724L180 714L170 705L160 698L146 690L130 684L117 680L100 677L80 676L60 676L40 678L29 680L10 684L0 687M900 687L890 691L871 700L860 707L850 717L842 730L838 740L834 760L834 780L835 800L839 820L841 830L846 850L850 861L858 880L863 890L869 900M254 900L240 894L220 892L200 895L187 900M6 0L20 8L30 12L50 15L70 13L83 10L100 4L109 0M109 900L120 895L130 889L144 880L157 870L168 860L177 850L183 840L189 820L189 800L185 780L180 768L171 750L163 740L154 730L142 720L130 712L120 707L100 701L90 699L70 698L50 699L40 700L20 705L6 710L0 713M900 713L888 720L876 730L868 740L860 759L857 770L856 790L858 810L860 822L865 840L870 853L879 870L886 880L894 890L900 896M6 900L0 896' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ff-pat-leather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none'%3E%3Cpath d='M0 0L120 120M120 0L0 120M-60 60L60 -60M60 180L180 60M60 -60L180 60M-60 60L60 180' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M7 0L127 120M113 0L-7 120' stroke='%23000' stroke-width='1.2' stroke-dasharray='5 5'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cg transform='translate(60 0)'%3E%3Cg transform='rotate(0)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(90)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(180)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(270)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Ccircle r='2.6'/%3E%3C/g%3E%3Cg transform='translate(0 60)'%3E%3Cg transform='rotate(0)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(90)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(180)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(270)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Ccircle r='2.6'/%3E%3C/g%3E%3Cg transform='translate(120 60)'%3E%3Cg transform='rotate(0)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(90)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(180)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(270)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Ccircle r='2.6'/%3E%3C/g%3E%3Cg transform='translate(60 120)'%3E%3Cg transform='rotate(0)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(90)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(180)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Cg transform='rotate(270)'%3E%3Cpath d='M0 -13C5 -8 5 -3 0 0C-5 -3 -5 -8 0 -13Z'/%3E%3C/g%3E%3Ccircle r='2.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --ff-pat-planks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='160' viewBox='0 0 480 160'%3E%3Cpath d='M0 0H480M0 40H480M0 80H480M0 120H480M0 160H480M150 0V40M330 40V80M60 80V120M250 120V160' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M0 9Q20 12 40 9Q60 6 80 9Q100 12 120 9Q140 6 160 9Q180 12 200 9Q220 6 240 9Q260 12 280 9Q300 6 320 9Q340 12 360 9Q380 6 400 9Q420 12 440 9Q460 6 480 9M0 20Q20 17 40 20Q60 23 80 20Q100 17 120 20Q140 23 160 20Q180 17 200 20Q220 23 240 20Q260 17 280 20Q300 23 320 20Q340 17 360 20Q380 23 400 20Q420 17 440 20Q460 23 480 20M0 31Q20 34 40 31Q60 28 80 31Q100 34 120 31Q140 28 160 31Q180 34 200 31Q220 28 240 31Q260 34 280 31Q300 28 320 31Q340 34 360 31Q380 28 400 31Q420 34 440 31Q460 28 480 31M0 49Q20 46 40 49Q60 52 80 49Q100 46 120 49Q140 52 160 49Q180 46 200 49Q220 52 240 49Q260 46 280 49Q300 52 320 49Q340 46 360 49Q380 52 400 49Q420 46 440 49Q460 52 480 49M0 60Q20 63 40 60Q60 57 80 60Q100 63 120 60Q140 57 160 60Q180 63 200 60Q220 57 240 60Q260 63 280 60Q300 57 320 60Q340 63 360 60Q380 57 400 60Q420 63 440 60Q460 57 480 60M0 71Q20 68 40 71Q60 74 80 71Q100 68 120 71Q140 74 160 71Q180 68 200 71Q220 74 240 71Q260 68 280 71Q300 74 320 71Q340 68 360 71Q380 74 400 71Q420 68 440 71Q460 74 480 71M0 89Q20 92 40 89Q60 86 80 89Q100 92 120 89Q140 86 160 89Q180 92 200 89Q220 86 240 89Q260 92 280 89Q300 86 320 89Q340 92 360 89Q380 86 400 89Q420 92 440 89Q460 86 480 89M0 100Q20 97 40 100Q60 103 80 100Q100 97 120 100Q140 103 160 100Q180 97 200 100Q220 103 240 100Q260 97 280 100Q300 103 320 100Q340 97 360 100Q380 103 400 100Q420 97 440 100Q460 103 480 100M0 111Q20 114 40 111Q60 108 80 111Q100 114 120 111Q140 108 160 111Q180 114 200 111Q220 108 240 111Q260 114 280 111Q300 108 320 111Q340 114 360 111Q380 108 400 111Q420 114 440 111Q460 108 480 111M0 129Q20 126 40 129Q60 132 80 129Q100 126 120 129Q140 132 160 129Q180 126 200 129Q220 132 240 129Q260 126 280 129Q300 132 320 129Q340 126 360 129Q380 132 400 129Q420 126 440 129Q460 132 480 129M0 140Q20 143 40 140Q60 137 80 140Q100 143 120 140Q140 137 160 140Q180 143 200 140Q220 137 240 140Q260 143 280 140Q300 137 320 140Q340 143 360 140Q380 137 400 140Q420 143 440 140Q460 137 480 140M0 151Q20 148 40 151Q60 154 80 151Q100 148 120 151Q140 154 160 151Q180 148 200 151Q220 154 240 151Q260 148 280 151Q300 154 320 151Q340 148 360 151Q380 154 400 151Q420 148 440 151Q460 154 480 151' fill='none' stroke='%23000' stroke-width='0.8' opacity='0.55'/%3E%3Cg fill='%23000'%3E%3Ccircle cx='143' cy='10' r='1.8'/%3E%3Ccircle cx='143' cy='30' r='1.8'/%3E%3Ccircle cx='157' cy='10' r='1.8'/%3E%3Ccircle cx='157' cy='30' r='1.8'/%3E%3Ccircle cx='323' cy='50' r='1.8'/%3E%3Ccircle cx='323' cy='70' r='1.8'/%3E%3Ccircle cx='337' cy='50' r='1.8'/%3E%3Ccircle cx='337' cy='70' r='1.8'/%3E%3Ccircle cx='53' cy='90' r='1.8'/%3E%3Ccircle cx='53' cy='110' r='1.8'/%3E%3Ccircle cx='67' cy='90' r='1.8'/%3E%3Ccircle cx='67' cy='110' r='1.8'/%3E%3Ccircle cx='243' cy='130' r='1.8'/%3E%3Ccircle cx='243' cy='150' r='1.8'/%3E%3Ccircle cx='257' cy='130' r='1.8'/%3E%3Ccircle cx='257' cy='150' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  --ff-pat-brands: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cg transform='translate(60 70) rotate(-12)'%3E%3Cpath d='M-15 16C-25 0 -22 -24 0 -24C22 -24 25 0 15 16' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='square'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='-17' cy='-4' r='1.4'/%3E%3Ccircle cx='-12' cy='-17' r='1.4'/%3E%3Ccircle cx='17' cy='-4' r='1.4'/%3E%3Ccircle cx='12' cy='-17' r='1.4'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(200 60) rotate(8)'%3E%3Ccircle r='25' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M0.0 -19.0L5.0 -6.9L18.1 -5.9L8.1 2.6L11.2 15.4L0.0 8.6L-11.2 15.4L-8.1 2.6L-18.1 -5.9L-5.0 -6.9Z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3Ccircle cx='0.0' cy='-19.0' r='2.4' fill='%23000'/%3E%3Ccircle cx='18.1' cy='-5.9' r='2.4' fill='%23000'/%3E%3Ccircle cx='11.2' cy='15.4' r='2.4' fill='%23000'/%3E%3Ccircle cx='-11.2' cy='15.4' r='2.4' fill='%23000'/%3E%3Ccircle cx='-18.1' cy='-5.9' r='2.4' fill='%23000'/%3E%3C/g%3E%3Cg transform='translate(70 210) rotate(-14)'%3E%3Ccircle r='25' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M0.0 -19.0L5.0 -6.9L18.1 -5.9L8.1 2.6L11.2 15.4L0.0 8.6L-11.2 15.4L-8.1 2.6L-18.1 -5.9L-5.0 -6.9Z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3Ccircle cx='0.0' cy='-19.0' r='2.4' fill='%23000'/%3E%3Ccircle cx='18.1' cy='-5.9' r='2.4' fill='%23000'/%3E%3Ccircle cx='11.2' cy='15.4' r='2.4' fill='%23000'/%3E%3Ccircle cx='-11.2' cy='15.4' r='2.4' fill='%23000'/%3E%3Ccircle cx='-18.1' cy='-5.9' r='2.4' fill='%23000'/%3E%3C/g%3E%3Cg transform='translate(210 200) rotate(18)'%3E%3Cpath d='M-15 16C-25 0 -22 -24 0 -24C22 -24 25 0 15 16' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='square'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='-17' cy='-4' r='1.4'/%3E%3Ccircle cx='-12' cy='-17' r='1.4'/%3E%3Ccircle cx='17' cy='-4' r='1.4'/%3E%3Ccircle cx='12' cy='-17' r='1.4'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='140' cy='140' r='2' fill='%23000'/%3E%3Ccircle cx='10' cy='140' r='2' fill='%23000'/%3E%3Ccircle cx='140' cy='10' r='2' fill='%23000'/%3E%3Ccircle cx='270' cy='270' r='2' fill='%23000'/%3E%3C/svg%3E");
}

.ff-body[data-grade="dusk"] {
  --g-shadow: 16 17 36;
  --g-tint: 64 78 150;
  --g-tint-op: 0.34;
  --g-glow: 242 196 109;
  --g-accent: #ecc77c;
  --g-filter: saturate(0.85) brightness(0.88) contrast(1.1);
  --g-card-filter: saturate(0.6) brightness(0.92);
  --ff-leather: #171827;
  --ff-leather-2: #24253b;
}

.ff-body[data-grade="sepia"] {
  --g-shadow: 34 24 15;
  --g-tint: 156 122 74;
  --g-tint-op: 0.5;
  --g-glow: 240 217 168;
  --g-accent: #e4cb9b;
  --g-filter: sepia(0.8) saturate(0.85) contrast(1.06);
  --g-card-filter: sepia(0.9) saturate(0.8);
  --ff-leather: #2a2118;
  --ff-leather-2: #3a2e22;
}

.ff-body[data-grade="bayou"] {
  --g-shadow: 13 27 22;
  --g-tint: 47 107 87;
  --g-tint-op: 0.3;
  --g-glow: 220 232 160;
  --g-accent: #cddc93;
  --g-filter: saturate(0.85) contrast(1.06);
  --g-card-filter: saturate(0.6) hue-rotate(-6deg);
  --ff-leather: #14211c;
  --ff-leather-2: #1f3029;
}

.ff-body[data-grade="frost"] {
  --g-shadow: 16 24 34;
  --g-tint: 125 156 192;
  --g-tint-op: 0.3;
  --g-glow: 230 241 255;
  --g-accent: #d3e3f4;
  --g-filter: saturate(0.72) contrast(1.05) brightness(1.02);
  --g-card-filter: saturate(0.5);
  --ff-leather: #161e29;
  --ff-leather-2: #232e3d;
}

.ff-body[data-grade="natural"] {
  --g-tint-op: 0;
  --g-filter: none;
  --g-card-filter: none;
}

/* ---------- Western cursors (Cursor option) ---------- */
.ff-body {
  --ff-cursor-link: var(--ff-cursor-hand);
}

/* Wooden: a cracked signpost arrow with a snapped tail, and a carved wooden hand for links */
.ff-body[data-cursor="wooden"] {
  --ff-cursor-link: var(--ff-cursor-wood-hand);
  cursor: var(--ff-cursor-wood);
}

.ff-body[data-cursor="arrow"] {
  cursor: var(--ff-cursor-arrow);
}

.ff-body[data-cursor="revolver"] {
  cursor: var(--ff-cursor-revolver);
}

.ff-body[data-cursor="knife"] {
  cursor: var(--ff-cursor-knife);
}

.ff-body:not([data-cursor="normal"]) :is(a[href], button:not(:disabled), [role="button"], select, label, summary, .ff-gallery-stage.is-zoomable, .ff-ticker) {
  cursor: var(--ff-cursor-link);
}

.ff-body:not([data-cursor="normal"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea) {
  cursor: text;
}

/* ---------- Film grain and vignette (Film grain option) ---------- */
.ff-film {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgb(var(--g-shadow) / 0.2) 100%);
}

.ff-film::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: var(--ff-grain);
  background-size: 180px 180px;
  opacity: 0.55;
}

.ff-body[data-motion="full"] .ff-film::before {
  animation: ff-grain 0.9s steps(5) infinite;
}

@keyframes ff-grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Cinematic hero (Hero look = Cinematic) ---------- */
.ff-hero[data-look="cinematic"] {
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88vh, 860px);
  padding: 86px 0 118px;
  border-bottom: 0;
  background: rgb(var(--g-shadow));
  color: var(--ff-paper-light);
}

.ff-hero[data-look="cinematic"]::before {
  display: none;
}

/* Bottom of the hero fades into the shadow colour, so the next scene follows on without a seam */
.ff-hero[data-look="cinematic"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgb(var(--g-shadow)));
  pointer-events: none;
}

.ff-hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ff-slides,
.ff-slide {
  position: absolute;
  inset: 0;
}

/* Tint and picture blend inside one layer: the grade colour paints over the photo */
.ff-slide {
  opacity: 0;
  background-color: rgb(var(--g-shadow));
  /* the hero is wider than the pictures, so cover crops top and bottom: keep heads in frame */
  background-position: center 18%;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: color, normal;
  filter: var(--g-filter);
  transform: scale(1.06);
  transform-origin: 50% 18%;
  transition: opacity 1.8s ease;
}

/* Only the first slide downloads with the page; ff-cinema.js marks the others ready after load */
/* Slide N: picture focus option */
.ff-slide[data-focus="center"] {
  background-position: center;
  transform-origin: 50% 50%;
}

.ff-slide[data-focus="bottom"] {
  background-position: center 85%;
  transform-origin: 50% 85%;
}

.ff-slide:first-child,
.ff-slide.is-ready {
  background-image:
    linear-gradient(rgb(var(--g-tint) / var(--g-tint-op)), rgb(var(--g-tint) / var(--g-tint-op))),
    var(--src);
}

.ff-slide:first-child {
  opacity: 1;
}

.ff-slides.is-live .ff-slide {
  opacity: 0;
}

.ff-slides.is-live .ff-slide.is-on {
  opacity: 1;
}

/* Slow drift on every slide (Motion = Full); each slide moves a different way */
.ff-body[data-motion="full"] .ff-slide {
  animation: ff-drift-a 26s ease-in-out infinite alternate;
}

.ff-body[data-motion="full"] .ff-slide:nth-child(2n) {
  animation-name: ff-drift-b;
  animation-duration: 30s;
}

.ff-body[data-motion="full"] .ff-slide:nth-child(3n) {
  animation-name: ff-drift-c;
  animation-duration: 24s;
}

@keyframes ff-drift-a {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2.5%, 0.8%, 0); }
}

@keyframes ff-drift-b {
  from { transform: scale(1.14) translate3d(2%, 0.8%, 0); }
  to { transform: scale(1.06) translate3d(0, 0, 0); }
}

@keyframes ff-drift-c {
  from { transform: scale(1.08) translate3d(-1.5%, 0.5%, 0); }
  to { transform: scale(1.14) translate3d(2%, 0.5%, 0); }
}

/* Shade on the text side and at the bottom so the copy always reads */
.ff-hero-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--g-shadow) / 0.9) 0%, rgb(var(--g-shadow) / 0.66) 32%, rgb(var(--g-shadow) / 0.18) 60%, rgb(var(--g-shadow) / 0.05) 80%),
    linear-gradient(180deg, rgb(var(--g-shadow) / 0.55) 0%, transparent 24%, transparent 58%, rgb(var(--g-shadow) / 0.85) 100%);
}

/* Low sun and light rays from the top right */
.ff-hero-sun {
  position: absolute;
  top: -30%;
  right: -8%;
  width: min(70vw, 1000px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--g-glow) / 0.5) 0%, rgb(var(--g-glow) / 0.16) 32%, transparent 64%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.ff-hero-rays {
  position: absolute;
  inset: -40% -20% -20% 10%;
  background: repeating-conic-gradient(from 190deg at 82% 18%, rgb(var(--g-glow) / 0.11) 0deg 3deg, transparent 3deg 11deg);
  mask-image: radial-gradient(circle at 82% 18%, #000 0%, transparent 52%);
  -webkit-mask-image: radial-gradient(circle at 82% 18%, #000 0%, transparent 52%);
  mix-blend-mode: screen;
  filter: blur(1.5px);
  transform-origin: 82% 18%;
  pointer-events: none;
}

.ff-body[data-motion="full"] .ff-hero-sun {
  animation: ff-sun 9s ease-in-out infinite alternate;
}

.ff-body[data-motion="full"] .ff-hero-rays {
  animation: ff-rays 34s ease-in-out infinite alternate;
}

@keyframes ff-sun {
  from { opacity: 0.75; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes ff-rays {
  from { transform: rotate(-5deg); opacity: 0.7; }
  to { transform: rotate(6deg); opacity: 1; }
}

/* Embers rising from the campfire (snow falling under the Frost grade) */
.ff-embers {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.ff-body[data-motion="full"] .ff-embers {
  display: block;
}

.ff-embers span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(var(--g-glow));
  box-shadow: 0 0 8px 2px rgb(var(--g-glow) / 0.7);
  opacity: 0;
  animation: ff-ember 11s linear infinite;
}

.ff-embers span:nth-child(1)  { left: 6%;  animation-delay: 0s; }
.ff-embers span:nth-child(2)  { left: 14%; animation-delay: 4s;   animation-duration: 13s; width: 3px; height: 3px; }
.ff-embers span:nth-child(3)  { left: 23%; animation-delay: 7s;   animation-duration: 10s; }
.ff-embers span:nth-child(4)  { left: 31%; animation-delay: 2s;   animation-duration: 14s; width: 2px; height: 2px; }
.ff-embers span:nth-child(5)  { left: 40%; animation-delay: 9s; }
.ff-embers span:nth-child(6)  { left: 49%; animation-delay: 5.5s; animation-duration: 12s; width: 3px; height: 3px; }
.ff-embers span:nth-child(7)  { left: 57%; animation-delay: 1s;   animation-duration: 15s; width: 2px; height: 2px; }
.ff-embers span:nth-child(8)  { left: 65%; animation-delay: 6.5s; }
.ff-embers span:nth-child(9)  { left: 73%; animation-delay: 3s;   animation-duration: 12s; width: 3px; height: 3px; }
.ff-embers span:nth-child(10) { left: 81%; animation-delay: 8s;   animation-duration: 10s; }
.ff-embers span:nth-child(11) { left: 88%; animation-delay: 2.5s; animation-duration: 14s; width: 2px; height: 2px; }
.ff-embers span:nth-child(12) { left: 95%; animation-delay: 10s;  animation-duration: 13s; }

@keyframes ff-ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: 0.95; }
  50% { transform: translate3d(28px, -45vh, 0); }
  80% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(-18px, -88vh, 0); }
}

.ff-body[data-grade="frost"] .ff-embers span {
  top: -10px;
  bottom: auto;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6);
  animation-name: ff-snow;
}

@keyframes ff-snow {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(-40px, 90vh, 0); }
}

/* Copy on the picture */
.ff-hero[data-look="cinematic"] .ff-eyebrow {
  color: var(--g-accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ff-hero[data-look="cinematic"] .ff-hero-title {
  color: #f7eedb;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* The accent word catches the light */
.ff-hero[data-look="cinematic"] .ff-hero-accent {
  background: linear-gradient(100deg, #b5863b 0%, #f2cf8b 40%, #fff4d6 50%, #f2cf8b 60%, #b5863b 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}

.ff-body:not([data-motion="off"]) .ff-hero[data-look="cinematic"] .ff-hero-accent {
  animation: ff-shine 7s ease-in-out 1.2s infinite;
}

@keyframes ff-shine {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0 0; }
}

.ff-hero[data-look="cinematic"] .ff-hero-text {
  color: rgba(247, 238, 219, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ff-hero[data-look="cinematic"] .ff-btn-paper {
  border-color: rgba(247, 238, 219, 0.7);
  background: rgba(247, 238, 219, 0.08);
  color: #f7eedb;
  backdrop-filter: blur(4px);
}

.ff-hero[data-look="cinematic"] .ff-btn-paper:hover {
  border-color: #f7eedb;
  background: rgba(247, 238, 219, 0.18);
  color: #fff;
}

.ff-hero[data-look="cinematic"] .ff-hero-studio {
  color: rgba(247, 238, 219, 0.75);
}

.ff-hero[data-look="cinematic"] .ff-hero-studio a {
  color: var(--g-accent);
}

.ff-hero[data-look="cinematic"] .ff-hero-art::before {
  background: repeating-conic-gradient(from 0deg, rgb(var(--g-glow) / 0.1) 0deg 5deg, transparent 5deg 12deg);
}

.ff-hero[data-look="cinematic"] .ff-hero-spot > * {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ff-body[data-motion="full"] .ff-hero[data-look="cinematic"] .ff-hero-spot {
  animation: ff-float 7s ease-in-out infinite alternate;
}

@keyframes ff-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* Opening shot: projector flicker, then the copy rises in */
.ff-body:not([data-motion="off"]) .ff-hero-stage {
  animation: ff-projector 1.6s ease-out both;
}

@keyframes ff-projector {
  0% { opacity: 0; filter: brightness(2); }
  12% { opacity: 0.7; }
  18% { opacity: 0.35; }
  30% { opacity: 0.9; filter: brightness(1.3); }
  40% { opacity: 0.75; }
  100% { opacity: 1; filter: none; }
}

.ff-body:not([data-motion="off"]) .ff-hero[data-look="cinematic"] .ff-hero-copy > *,
.ff-body:not([data-motion="off"]) .ff-hero[data-look="cinematic"] .ff-hero-art {
  animation: ff-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ff-hero[data-look="cinematic"] .ff-hero-copy > :nth-child(1) { animation-delay: 0.35s; }
.ff-hero[data-look="cinematic"] .ff-hero-copy > :nth-child(2) { animation-delay: 0.5s; }
.ff-hero[data-look="cinematic"] .ff-hero-copy > :nth-child(3) { animation-delay: 0.7s; }
.ff-hero[data-look="cinematic"] .ff-hero-copy > :nth-child(4) { animation-delay: 0.85s; }
.ff-hero[data-look="cinematic"] .ff-hero-copy > :nth-child(5) { animation-delay: 1s; }
.ff-hero[data-look="cinematic"] .ff-hero-art { animation-delay: 0.9s; }

@keyframes ff-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Slide markers and caption (built by ff-cinema.js) */
.ff-hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.ff-hero-caption {
  min-width: 0;
  margin: 0;
  color: rgba(247, 238, 219, 0.82);
  font-family: var(--ff-font-heading);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  transition: opacity 0.6s ease;
}

.ff-hero-caption b {
  margin-right: 10px;
  color: var(--g-accent);
  font-weight: 400;
}

.ff-hero-caption.is-changing {
  opacity: 0;
}

.ff-hero-dots {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ff-hero-dot {
  position: relative;
  width: 44px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.ff-hero-dot::before,
.ff-hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  height: 2px;
}

.ff-hero-dot::before {
  right: 0;
  background: rgba(247, 238, 219, 0.3);
}

.ff-hero-dot::after {
  width: 0;
  background: var(--g-accent);
  box-shadow: 0 0 6px rgb(var(--g-glow) / 0.8);
}

.ff-hero-dot.is-on::after {
  width: 100%;
  transition: width var(--ff-slide-ms, 7000ms) linear;
}

.ff-hero-dot:focus-visible {
  outline: 2px solid var(--g-accent);
}

@media (width <= 960px) {
  .ff-hero[data-look="cinematic"] {
    min-height: 0;
    padding: 56px 0 104px;
  }

  .ff-hero-grade {
    background:
      linear-gradient(180deg, rgb(var(--g-shadow) / 0.8) 0%, rgb(var(--g-shadow) / 0.55) 45%, rgb(var(--g-shadow) / 0.4) 65%, rgb(var(--g-shadow) / 0.9) 100%);
  }

  .ff-hero-meta {
    bottom: 38px;
  }

  .ff-hero-caption {
    font-size: 12px;
  }
}

/* ---------- Scenes: homepage sections on a RedM picture ----------
   Every section with a picture (How it works, Trust numbers, Showcase, Valuables,
   letter, More from FwB Studio, Discord) is a scene. Scenes melt into each other
   and into the cinematic hero; where a scene meets plain parchment it gets a
   straight brass double rule. */
.ff-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  padding: 92px 0 100px;
  border: 0;
  background: rgb(var(--g-shadow));
  color: var(--ff-paper-light);
}

.ff-scene:not(.ff-scene + .ff-scene) {
  margin-top: 56px;
  border-top: 3px double var(--ff-brass);
}

.ff-scene:not(:has(+ .ff-scene)):not(:last-child) {
  border-bottom: 3px double var(--ff-brass);
}

/* straight on from the cinematic hero (the hidden Featured modules pool sits between them) */
.ff-hero[data-look="cinematic"] + .ff-modules + .ff-scene {
  margin-top: 0;
  padding-top: 48px;
  border-top: 0;
}

.ff-scene + .ff-scene {
  padding-top: 64px;
}

/* the picture: fades out at the very top and bottom so neighbouring scenes melt together */
/* (fixed-length fades, so short strips such as Trust numbers blend as softly as tall sections;
   parallax can shift the layer a little, which only moves the already transparent edge) */
.ff-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgb(var(--g-tint) / var(--g-tint-op)), rgb(var(--g-tint) / var(--g-tint-op))),
    var(--ff-scene-pic, none) center 25% / cover no-repeat;
  background-blend-mode: color, normal;
  filter: var(--g-filter);
  mask-image: linear-gradient(180deg, transparent 0, #000 min(140px, 40%), #000 calc(100% - min(140px, 40%)), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 min(140px, 40%), #000 calc(100% - min(140px, 40%)), transparent 100%);
  transform: translate3d(0, var(--ff-par, 0px), 0);
  will-change: transform;
}

/* shade plus a lantern glow, on alternating sides */
.ff-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgb(var(--g-glow) / 0.14), transparent 42%),
    radial-gradient(ellipse at center, rgb(var(--g-shadow) / 0.38) 0%, rgb(var(--g-shadow) / 0.74) 100%);
  pointer-events: none;
}

.ff-scene:nth-of-type(even)::after {
  background:
    radial-gradient(circle at 88% 22%, rgb(var(--g-glow) / 0.14), transparent 42%),
    radial-gradient(ellipse at center, rgb(var(--g-shadow) / 0.38) 0%, rgb(var(--g-shadow) / 0.74) 100%);
}

.ff-steps.ff-scene { --ff-scene-pic: var(--ff-pic-steps); }
.ff-stats.ff-scene { --ff-scene-pic: var(--ff-pic-stats); }
.ff-showcase.ff-scene { --ff-scene-pic: var(--ff-pic-showcase); }
.ff-valuables.ff-scene,
.ff-reel.ff-scene { --ff-scene-pic: var(--ff-pic-reel); }
.ff-letter-section.ff-scene { --ff-scene-pic: var(--ff-pic-letter); }
.ff-family.ff-scene { --ff-scene-pic: var(--ff-pic-family); }
.ff-band.ff-scene { --ff-scene-pic: var(--ff-pic-band); }

/* last scene on the page runs into the footer */
.ff-scene:last-child {
  padding-bottom: 110px;
  background: linear-gradient(180deg, rgb(var(--g-shadow)) 60%, var(--ff-leather) 100%);
}

/* Headings on the picture */
.ff-scene .ff-section-title {
  color: #f7eedb;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ff-scene .ff-eyebrow {
  color: var(--g-accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ff-scene .ff-section-intro {
  color: rgba(247, 238, 219, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Trust numbers: a short strip between two scenes */
.ff-stats.ff-scene {
  padding: 36px 0;
}

.ff-stats.ff-scene .ff-stat-value {
  color: var(--g-accent);
  text-shadow: 0 0 24px rgb(var(--g-glow) / 0.45), 0 2px 0 rgba(0, 0, 0, 0.5);
}

.ff-stats.ff-scene .ff-stat-label {
  color: rgba(247, 238, 219, 0.85);
}

.ff-stats.ff-scene .ff-stat {
  border-color: rgb(var(--g-glow) / 0.22);
}

/* Cards on the picture lift off it */
.ff-scene :is(.ff-step, .ff-quote, .ff-letter, .ff-family-card, .ff-video) {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(0, 0, 0, 0.2);
}

.ff-scene .ff-quote:nth-child(odd) {
  rotate: -0.8deg;
}

.ff-scene .ff-quote:nth-child(even) {
  rotate: 0.7deg;
}

.ff-scene .ff-letter {
  rotate: -0.5deg;
}

/* brass tack at the top of the letter */
.ff-scene .ff-letter::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6dc9c, #a07a33 55%, #5a3f14);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

/* Cards on pictures = Paper: parchment cards keep ink-coloured text */
.ff-body[data-cards="paper"] .ff-scene :is(.ff-letter, .ff-quote, .ff-family-card) {
  color: var(--ff-ink);
}

/* Cards on pictures = Dark glass (default): smoked glass with a brass edge */
.ff-body:not([data-cards="paper"]) .ff-scene :is(.ff-step, .ff-quote, .ff-letter, .ff-family-card) {
  border: 1px solid rgb(var(--g-glow) / 0.3);
  outline-color: rgb(var(--g-glow) / 0.12);
  background: linear-gradient(160deg, rgb(var(--g-shadow) / 0.8), rgb(var(--g-shadow) / 0.6));
  color: rgba(247, 238, 219, 0.86);
  backdrop-filter: blur(8px) saturate(1.15);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgb(var(--g-glow) / 0.14);
}

.ff-body:not([data-cards="paper"]) .ff-scene :is(.ff-step, .ff-family-card):hover {
  border-color: var(--g-accent);
}

.ff-body:not([data-cards="paper"]) .ff-scene .ff-quote {
  border-left: 4px solid var(--g-accent);
}

.ff-body:not([data-cards="paper"]) .ff-scene .ff-quote::before {
  color: rgb(var(--g-glow) / 0.25);
}

.ff-body:not([data-cards="paper"]) .ff-scene :is(.ff-step-title, .ff-family-name, .ff-quote-author) {
  color: #f7eedb;
}

.ff-body:not([data-cards="paper"]) .ff-scene :is(.ff-step-text, .ff-family-text) {
  color: rgba(247, 238, 219, 0.78);
}

.ff-body:not([data-cards="paper"]) .ff-scene .ff-quote-text {
  color: #f3e3c0;
}

.ff-body:not([data-cards="paper"]) .ff-scene .ff-quote-role {
  color: rgba(247, 238, 219, 0.6);
}

.ff-body:not([data-cards="paper"]) .ff-scene :is(.ff-family-kicker, .ff-family-cta) {
  color: var(--g-accent);
}

.ff-body:not([data-cards="paper"]) .ff-scene .ff-letter :is(h1, h2, h3, h4) {
  color: var(--g-accent);
}

.ff-body:not([data-cards="paper"]) .ff-scene .ff-letter :is(p, li, td, th) {
  color: rgba(247, 238, 219, 0.86);
}

.ff-body:not([data-cards="paper"]) .ff-scene .ff-letter a {
  color: var(--g-accent);
}

/* Discord band as a scene: a big call on the picture */
.ff-band.ff-scene .ff-band-inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.ff-band.ff-scene .ff-band-title {
  color: #f7eedb;
  font-size: clamp(30px, 5vw, 48px);
}

.ff-band.ff-scene .ff-band-text {
  color: rgba(247, 238, 219, 0.85);
}

/* ---------- Patterns below the hero ("Below the hero" = Patterns, the default) ----------
   One continuous page under the hero: a single dark, grade-tinted background with a
   western line pattern runs from the first section to the footer. The sections sit on
   it with no boxes, rules or seams between them.
   Brands = horseshoes and sheriff stars, Map = survey contours, Leather = tooled and
   stitched, Planks = saloon floorboards. */
.ff-body {
  --ff-pat: var(--ff-pat-brands);
  --ff-pat-size: 280px;
}

.ff-body[data-pattern="map"] {
  --ff-pat: var(--ff-pat-map);
  --ff-pat-size: 900px;
}

.ff-body[data-pattern="leather"] {
  --ff-pat: var(--ff-pat-leather);
  --ff-pat-size: 120px;
}

.ff-body[data-pattern="planks"] {
  --ff-pat: var(--ff-pat-planks);
  --ff-pat-size: 480px;
}

/* the page itself carries the background; the hero covers its own part */
.ff-body.page-index:not([data-scenes="pictures"]) .ff-main {
  position: relative;
  isolation: isolate;
  padding-bottom: 0;
  background: linear-gradient(180deg, rgb(var(--g-shadow)) calc(100% - 220px), var(--ff-leather) 100%);
}

.ff-body.page-index:not([data-scenes="pictures"]) .ff-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--g-glow) / 0.13);
  mask: var(--ff-pat) center top / var(--ff-pat-size) repeat;
  -webkit-mask: var(--ff-pat) center top / var(--ff-pat-size) repeat;
  pointer-events: none;
}

/* sections are just content on the running background */
.ff-body.page-index:not([data-scenes="pictures"]) .ff-scene {
  isolation: auto;
  overflow: visible;
  margin: 0;
  padding: 72px 0 0;
  border: 0;
  background: none;
}

.ff-body.page-index:not([data-scenes="pictures"]) .ff-scene::before,
.ff-body.page-index:not([data-scenes="pictures"]) .ff-scene::after {
  content: none;
}

.ff-body.page-index:not([data-scenes="pictures"]) .ff-hero[data-look="cinematic"] + .ff-modules + .ff-scene {
  padding-top: 64px;
}

.ff-body.page-index:not([data-scenes="pictures"]) .ff-stats.ff-scene {
  padding-top: 56px;
}

.ff-body.page-index:not([data-scenes="pictures"]) .ff-scene:last-child {
  padding-bottom: 96px;
}

/* Parchment hero look keeps its paper behind it on the dark page */
.ff-body.page-index:not([data-scenes="pictures"]) .ff-hero[data-look="parchment"] {
  background: var(--ff-paper);
}

/* ---------- Valuables: three featured resources as pinned cards (ff-cinema.js) ---------- */
.ff-valuables-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 44px 32px;
  margin-top: 8px;
}

@media (width > 960px) {
  .ff-valuables-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  /* the middle card sits a little lower, like photos pinned by hand */
  .ff-valuable:nth-child(2) {
    margin-top: 28px;
  }
}

.ff-valuable .ff-spot {
  width: min(100%, 380px);
}

.ff-body .ff-valuable:nth-child(2) .ff-spot .ff-card {
  rotate: 1.2deg;
}

.ff-body .ff-valuable:nth-child(2) .ff-spot-badge {
  rotate: 2deg;
}

.ff-body .ff-valuable:nth-child(3) .ff-spot .ff-card {
  rotate: -0.8deg;
}

.ff-body .ff-valuable .ff-spot .ff-card:hover {
  rotate: 0deg;
}

.ff-valuables.ff-scene .ff-spot .ff-card {
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.2);
}

.ff-body[data-motion="full"] .ff-valuable.is-filled {
  animation: ff-float 7s ease-in-out infinite alternate;
}

.ff-body[data-motion="full"] .ff-valuable:nth-child(2) {
  animation-delay: -2.4s;
}

.ff-body[data-motion="full"] .ff-valuable:nth-child(3) {
  animation-delay: -4.8s;
}

/* ---------- Inner page header picture (category and information pages) ---------- */
.ff-has-head .ff-page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px 0 50px;
  border-bottom: 3px double var(--ff-brass);
  background: rgb(var(--g-shadow));
  color: var(--ff-paper-light);
}

.ff-has-head .ff-page-head::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  background:
    linear-gradient(rgb(var(--g-tint) / var(--g-tint-op)), rgb(var(--g-tint) / var(--g-tint-op))),
    var(--ff-pic-head) center 25% / cover no-repeat;
  background-blend-mode: color, normal;
  filter: var(--g-filter);
  transform: translate3d(0, var(--ff-par, 0px), 0);
}

.ff-has-head .ff-page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--g-shadow) / 0.88) 0%, rgb(var(--g-shadow) / 0.55) 55%, rgb(var(--g-shadow) / 0.3) 100%);
  pointer-events: none;
}

.ff-has-head .ff-page-head > .ff-wrap {
  position: relative;
}

.ff-has-head .ff-page-head .ff-page-title {
  color: #f7eedb;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.ff-has-head .ff-page-head .ff-breadcrumb,
.ff-has-head .ff-page-head .ff-page-total,
.ff-has-head .ff-page-head .ff-page-lead,
.ff-has-head .ff-page-head .ff-page-lead p {
  color: rgba(247, 238, 219, 0.82);
}

.ff-has-head .ff-page-head .ff-breadcrumb a {
  color: var(--g-accent);
  text-decoration-color: rgb(var(--g-glow) / 0.4);
}

/* ---------- Store cards (More from FwB Studio) ---------- */
.ff-family-card.has-pic {
  overflow: hidden;
}

.ff-family-pic {
  display: block;
  height: 150px;
  margin: -26px -26px 16px;
  background-color: rgb(var(--g-shadow));
  background-position: center 25%;
  background-size: cover;
  filter: var(--g-card-filter);
  transition: filter 0.6s ease, transform 0.8s ease;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.ff-family-card:hover .ff-family-pic {
  filter: none;
  transform: scale(1.04);
}

/* ---------- Product cards: pictures warm up to full colour on hover ---------- */
.ff-card-media .image {
  filter: var(--g-card-filter);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.ff-card:hover .ff-card-media .image {
  filter: none;
}

/* Category paging hides cards with [hidden]; the card's display: flex must not show them again */
.ff-body .ff-card[hidden] {
  display: none !important;
}

/* ---------- Category page: one dark running page like the homepage ----------
   Picture header (Category and page headers option) fading into the patterned page,
   a dark-glass search bar, and product cards pinned to the board. */
.ff-body.page-category .ff-main {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgb(var(--g-shadow)) calc(100% - 220px), var(--ff-leather) 100%);
}

.ff-body.page-category .ff-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--g-glow) / 0.13);
  mask: var(--ff-pat) center top / var(--ff-pat-size) repeat;
  -webkit-mask: var(--ff-pat) center top / var(--ff-pat-size) repeat;
  pointer-events: none;
}

/* Header */
.ff-body.page-category .ff-page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0 28px;
  border: 0;
  background: none;
  color: var(--ff-paper-light);
}

.ff-body.page-category.ff-has-head .ff-page-head {
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 48px 0 30px;
}

.ff-body.page-category.ff-has-head .ff-page-head > .ff-wrap {
  width: 100%;
}

/* picture fades into the page at the bottom instead of ending on a line */
.ff-body.page-category.ff-has-head .ff-page-head::before {
  mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}

.ff-body.page-category.ff-has-head .ff-page-head::after {
  background:
    linear-gradient(90deg, rgb(var(--g-shadow) / 0.88) 0%, rgb(var(--g-shadow) / 0.5) 50%, rgb(var(--g-shadow) / 0.2) 100%),
    linear-gradient(180deg, transparent 45%, rgb(var(--g-shadow)) 100%);
}

.ff-body.page-category .ff-page-title-row {
  align-items: center;
  gap: 12px 18px;
}

.ff-body.page-category .ff-page-title {
  border-bottom: 0;
  padding-bottom: 0;
  color: #f7eedb;
  font-size: clamp(40px, 7vw, 66px);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* count as a brass label, like the card badges */
.ff-body.page-category .ff-page-total {
  padding: 5px 14px;
  border: 1px solid #c79c4f;
  border-radius: 3px;
  background: linear-gradient(180deg, #b48a3e, #8e6a2b);
  color: #1f150d;
  font-family: var(--ff-font-heading);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.45), 0 3px 0 rgba(0, 0, 0, 0.3);
  rotate: -2deg;
}

.ff-body.page-category .ff-page-lead,
.ff-body.page-category .ff-page-lead p {
  max-width: 46em;
  color: rgba(247, 238, 219, 0.86);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ff-body.page-category .ff-breadcrumb {
  color: rgba(247, 238, 219, 0.7);
}

.ff-body.page-category .ff-breadcrumb a {
  color: var(--g-accent);
  text-decoration-color: rgb(var(--g-glow) / 0.4);
}

.ff-body.page-category .ff-tab:not(.is-active) {
  border-color: rgb(var(--g-glow) / 0.3);
  background: rgb(var(--g-shadow) / 0.6);
  color: #f7eedb;
}

.ff-body.page-category .ff-tab:not(.is-active):hover {
  border-color: var(--g-accent);
  color: var(--g-accent);
}

.ff-body.page-category .ff-page-body {
  padding-top: 8px;
}

/* Search bar: dark glass */
.ff-body.page-category .ff-toolbar {
  border: 1px solid rgb(var(--g-glow) / 0.28);
  background: linear-gradient(160deg, rgb(var(--g-shadow) / 0.88), rgb(var(--g-shadow) / 0.7));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgb(var(--g-glow) / 0.12);
  backdrop-filter: blur(8px);
}

.ff-body.page-category :is(.ff-search-input, .ff-sort-select) {
  border-color: rgb(var(--g-glow) / 0.3);
  background-color: rgba(0, 0, 0, 0.28);
  color: #f7eedb;
}

.ff-body.page-category .ff-search-input::placeholder {
  color: rgba(247, 238, 219, 0.45);
}

.ff-body.page-category :is(.ff-search-input, .ff-sort-select):focus {
  border-color: var(--g-accent);
  box-shadow: 0 0 0 3px rgb(var(--g-glow) / 0.15);
}

.ff-body.page-category .ff-sort-select {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b46c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat,
    rgba(0, 0, 0, 0.28);
}

.ff-body.page-category .ff-sort-select option {
  background: #1f150d;
  color: #f7eedb;
}

.ff-body.page-category .ff-search > svg {
  stroke: var(--g-accent);
}

.ff-body.page-category .ff-search-clear {
  color: rgba(247, 238, 219, 0.7);
}

.ff-body.page-category .ff-search-clear:hover {
  background: rgb(var(--g-glow) / 0.12);
  color: var(--g-accent);
}

.ff-body.page-category .ff-sort-label {
  color: rgba(247, 238, 219, 0.65);
}

.ff-body.page-category .ff-catalogue-count {
  color: var(--g-accent);
}

/* Cards pinned to the board: slight tilts, a brass tack, straighten on hover */
.ff-body.page-category .ff-catalogue-grid {
  gap: 38px 28px;
  padding-top: 14px;
}

.ff-body.page-category .ff-catalogue-grid .ff-card {
  position: relative;
  border-color: var(--ff-ink-soft);
  outline: 1px solid var(--ff-rule);
  outline-offset: -7px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, #f6eedc, #e8dbbb);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(0, 0, 0, 0.25);
  rotate: -0.7deg;
  transition: rotate 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.ff-body.page-category .ff-catalogue-grid .ff-card:nth-child(2n) {
  rotate: 0.6deg;
}

.ff-body.page-category .ff-catalogue-grid .ff-card:nth-child(3n) {
  rotate: -0.3deg;
}

.ff-body.page-category .ff-catalogue-grid .ff-card:nth-child(5n) {
  rotate: 0.9deg;
}

.ff-body.page-category .ff-catalogue-grid .ff-card:hover {
  rotate: 0deg;
  transform: translateY(-6px);
  border-color: var(--ff-ink-soft);
  box-shadow: 0 30px 54px rgba(0, 0, 0, 0.55), 0 0 0 1px rgb(var(--g-glow) / 0.5);
}

.ff-body.page-category .ff-catalogue-grid .ff-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 3;
  width: 16px;
  height: 16px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6dc9c, #a07a33 55%, #5a3f14);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.ff-body.page-category .store-product .product-title {
  font-family: var(--ff-font-display);
  font-size: 21px;
}

/* Pager */
.ff-body.page-category .ff-pager {
  margin-top: 48px;
  border-top-color: rgb(var(--g-glow) / 0.22);
}

.ff-body.page-category .ff-pager-btn:not([aria-current="page"]) {
  border-color: rgb(var(--g-glow) / 0.3);
  background: rgb(var(--g-shadow) / 0.75);
  color: #f7eedb;
}

.ff-body.page-category .ff-pager-btn:not([aria-current="page"]):hover:not(:disabled) {
  border-color: var(--g-accent);
  color: var(--g-accent);
}

.ff-body.page-category .ff-pager-gap {
  color: rgba(247, 238, 219, 0.6);
}

/* Empty states and sub-category cards: dark glass */
.ff-body.page-category :is(.ff-empty, .ff-category-card) {
  border: 1px solid rgb(var(--g-glow) / 0.28);
  background: linear-gradient(160deg, rgb(var(--g-shadow) / 0.88), rgb(var(--g-shadow) / 0.7));
  color: #f7eedb;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ff-body.page-category .ff-empty-text {
  color: rgba(247, 238, 219, 0.7);
}

.ff-body.page-category .ff-category-title a {
  color: #f7eedb;
}

.ff-body.page-category .ff-category-more {
  color: var(--g-accent);
}

@media (width <= 960px) {
  .ff-body.page-category.ff-has-head .ff-page-head {
    min-height: 220px;
    padding: 40px 0 26px;
  }
}

/* ---------- Product page: media on top, description with a buy box that follows the scroll ----------
   Same dark running page as the homepage and category pages. */
.ff-body.page-package .ff-main {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgb(var(--g-shadow)) calc(100% - 220px), var(--ff-leather) 100%);
}

.ff-body.page-package .ff-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--g-glow) / 0.13);
  mask: var(--ff-pat) center top / var(--ff-pat-size) repeat;
  -webkit-mask: var(--ff-pat) center top / var(--ff-pat-size) repeat;
  pointer-events: none;
}

.ff-body.page-package .ff-product-page {
  padding-top: 30px;
}

.ff-body.page-package .ff-breadcrumb {
  color: rgba(247, 238, 219, 0.7);
}

.ff-body.page-package .ff-breadcrumb a {
  color: var(--g-accent);
  text-decoration-color: rgb(var(--g-glow) / 0.4);
}

/* Media stage */
.ff-gallery {
  margin-top: 6px;
}

/* a wide, short band like FwB: the media keeps 16:9 in the middle, a blurred copy fills the sides */
.ff-gallery-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: clamp(220px, 24vw, 320px);
  border: 1px solid rgb(var(--g-glow) / 0.35);
  border-radius: 3px;
  background: rgb(var(--g-shadow));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 6px rgba(0, 0, 0, 0.25);
}

.ff-gallery-stage::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: var(--ff-stage-bg, none) center / cover no-repeat;
  filter: blur(26px) brightness(0.6) saturate(1.2);
}

.ff-gallery-stage > img,
.ff-gallery-video {
  display: block;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
}

.ff-gallery-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-gallery-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: rgba(247, 238, 219, 0.75);
  font-family: var(--ff-font-heading);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ff-gallery-bar [data-gallery-caption] {
  color: var(--g-accent);
}

.ff-gallery-video {
  position: relative;
  padding: 0;
  background: rgb(var(--g-shadow));
  cursor: pointer;
}

.ff-gallery-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgb(var(--g-shadow) / 0.55) 100%);
  transition: opacity 0.3s ease;
}

.ff-gallery-video:hover::after {
  opacity: 0.6;
}

/* wax-seal play button */
.ff-gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 76px;
  height: 76px;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #a24a3b, var(--ff-wax) 55%, var(--ff-wax-dark));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 0 4px rgba(0, 0, 0, 0.12), 0 0 0 6px rgb(var(--g-glow) / 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ff-gallery-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #f6e9d4;
}

.ff-gallery-video:hover .ff-gallery-play {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 0 4px rgba(0, 0, 0, 0.12), 0 0 0 10px rgb(var(--g-glow) / 0.3);
}

.ff-gallery-play-label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 1;
  translate: -50% 0;
  white-space: nowrap;
  color: #f7eedb;
  font-family: var(--ff-font-heading);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ff-gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.ff-gallery-empty img {
  width: min(34%, 240px);
}

/* Thumbnails */
.ff-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ff-gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 112px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--g-glow) / 0.25);
  border-radius: 3px;
  background: rgb(var(--g-shadow));
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ff-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-gallery-thumb:hover,
.ff-gallery-thumb.is-on {
  opacity: 1;
  border-color: var(--g-accent);
}

.ff-gallery-thumb.is-on {
  box-shadow: 0 0 0 2px var(--g-accent);
}

/* "Image 1" / "Video" on each thumbnail, like the FwB store */
.ff-gallery-thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 7px 4px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  color: #f7eedb;
  font-family: var(--ff-font-heading);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: left;
  pointer-events: none;
}

.ff-gallery-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a24a3b, var(--ff-wax) 55%, var(--ff-wax-dark));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.ff-gallery-thumb-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #f6e9d4;
}

/* Description and buy box */
.ff-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

/* on phones the buy box comes straight after the pictures */
.ff-product-layout .ff-buybox {
  order: -1;
}

@media (width > 960px) {
  .ff-product-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
  }

  .ff-product-layout .ff-buybox {
    order: 0;
    position: sticky;
    top: 24px;
  }
}

.ff-body.page-package .ff-product-descr {
  margin: 0;
  padding: 34px clamp(20px, 4vw, 44px) 40px;
  border: 1px solid rgb(var(--g-glow) / 0.28);
  border-radius: 3px;
  background: linear-gradient(160deg, rgb(var(--g-shadow) / 0.9), rgb(var(--g-shadow) / 0.72));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgb(var(--g-glow) / 0.12);
  color: rgba(247, 238, 219, 0.86);
}

.ff-body.page-package .ff-product-descr .ff-eyebrow {
  color: var(--g-accent);
}

.ff-body.page-package .ff-descr-title {
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(var(--g-glow) / 0.25);
  color: #f7eedb;
  font-family: var(--ff-font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
}

.ff-body.page-package .ff-descr-empty {
  margin: 0;
  color: rgba(247, 238, 219, 0.75);
  font-family: var(--ff-font-fell);
  font-size: 18px;
  font-style: italic;
}

/* Tebex description text on the dark panel */
.ff-body.page-package .ff-product-descr .text-content {
  color: rgba(247, 238, 219, 0.86);
}

.ff-body.page-package .ff-product-descr .text-content :is(h1, h2, h3) {
  color: var(--g-accent);
  border-color: rgb(var(--g-glow) / 0.22);
}

.ff-body.page-package .ff-product-descr .text-content h4 {
  color: #f7eedb;
}

.ff-body.page-package .ff-product-descr .text-content :is(p, li, td, strong, em) {
  color: inherit;
}

.ff-body.page-package .ff-product-descr .text-content a:not(.btn-primary):not(.btn-secondary):not(.ff-btn) {
  color: var(--g-accent);
  text-decoration-color: rgb(var(--g-glow) / 0.45);
}

.ff-body.page-package .ff-product-descr .text-content ul li::before {
  color: var(--g-accent);
}

.ff-body.page-package .ff-product-descr .text-content blockquote {
  border-left-color: var(--g-accent);
  color: rgba(247, 238, 219, 0.75);
}

.ff-body.page-package .ff-product-descr .text-content code {
  border-color: rgb(var(--g-glow) / 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #f3d9a4;
}

.ff-body.page-package .ff-product-descr .text-content table {
  border-color: rgb(var(--g-glow) / 0.3);
  background: rgba(0, 0, 0, 0.2);
}

.ff-body.page-package .ff-product-descr .text-content th {
  border-bottom-color: rgb(var(--g-glow) / 0.3);
  background: rgb(var(--g-glow) / 0.12);
  color: #f7eedb;
}

.ff-body.page-package .ff-product-descr .text-content td {
  border-top-color: rgb(var(--g-glow) / 0.18);
}

.ff-body.page-package .ff-product-descr .text-content hr {
  border-color: rgb(var(--g-glow) / 0.25);
  background: none;
}

.ff-body.page-package .ff-product-descr .text-content img {
  border-color: rgb(var(--g-glow) / 0.3);
}

/* Buy box: a pinned parchment card */
.ff-body.page-package .ff-buybox {
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.25);
}

.ff-body.page-package .ff-buybox::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 3;
  width: 18px;
  height: 18px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6dc9c, #a07a33 55%, #5a3f14);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

/* Need a hand: full-width rows for the docs and Discord, icon + text + arrow */
.ff-buybox-help {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--ff-rule);
}

.ff-body .ff-buybox-help-title {
  margin: 0 0 2px;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ff-body .ff-buybox-help .ff-help-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ff-rule);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(60, 35, 15, 0.12);
  color: var(--ff-ink);
  text-decoration: none;
  transition: border-color var(--ff-ease), transform var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-body .ff-buybox-help .ff-help-row:hover {
  border-color: var(--ff-wax);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 14px rgba(60, 35, 15, 0.18);
  transform: translateY(-2px);
}

.ff-help-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(140, 98, 40, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3d58f, #c08f3e 60%, #8a6125);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(60, 35, 15, 0.25);
}

.ff-help-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #3a2512;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ff-help-icon circle {
  fill: #3a2512;
  stroke: none;
}

.ff-help-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ff-help-text b {
  font-family: var(--ff-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
}

.ff-help-text small {
  color: var(--ff-wax);
  font-family: var(--ff-font-fell);
  font-size: 14px;
  font-style: italic;
  line-height: 1.3;
}

.ff-help-go {
  flex: none;
  color: var(--ff-wax);
  font-size: 18px;
  transition: transform var(--ff-ease);
}

.ff-help-row:hover .ff-help-go {
  transform: translate(2px, -2px);
}

.ff-buybox-back {
  display: inline-block;
  margin-top: 16px;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 15px;
  font-style: italic;
}

.ff-buybox-back:hover {
  color: var(--ff-wax);
}

@media (width <= 600px) {
  .ff-gallery-thumb {
    width: 92px;
  }

  /* phones: the full width is already short enough */
  .ff-gallery-stage {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ff-gallery-stage > img,
  .ff-gallery-video {
    width: 100%;
  }

  .ff-gallery-play {
    width: 72px;
    height: 72px;
  }

  .ff-gallery-play-label {
    bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }
}

/* Stage opens the lightbox */
.ff-gallery-stage.is-zoomable {
  cursor: zoom-in;
}

.ff-gallery-stage.is-zoomable .ff-gallery-video {
  cursor: pointer;
}

/* ---------- Lightbox: pictures and videos big, with arrows ---------- */
.ff-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7eedb;
  overflow: hidden;
}

.ff-lightbox::backdrop {
  background: rgb(var(--g-shadow, 20 14 9) / 0.94);
  backdrop-filter: blur(6px);
}

.ff-lightbox[open] {
  display: grid;
  place-items: center;
  animation: ff-lightbox-in 0.25s ease;
}

@keyframes ff-lightbox-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ff-lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ff-lightbox-media {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgb(var(--g-glow, 255 186 102) / 0.4);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  background: #000;
}

/* sized to the window, with room for the arrows at the sides and the controls above and below */
img.ff-lightbox-media {
  width: auto;
  height: auto;
  max-width: min(1280px, calc(100vw - 200px));
  max-height: calc(100vh - 170px);
  object-fit: contain;
}

iframe.ff-lightbox-media {
  width: min(1280px, calc(100vw - 200px), calc((100vh - 170px) * 16 / 9));
  max-width: none;
  max-height: none;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* wax-seal arrows */
.ff-lightbox-arrow {
  position: fixed;
  top: 50%;
  width: 58px;
  height: 58px;
  translate: 0 -50%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a24a3b, var(--ff-wax, #7a2f25) 55%, var(--ff-wax-dark, #5c2119));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 4px rgb(var(--g-glow, 255 186 102) / 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ff-lightbox-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid #f6e9d4;
  border-right: 3px solid #f6e9d4;
}

.ff-lightbox-prev {
  left: 22px;
}

.ff-lightbox-prev::before {
  translate: -30% -50%;
  rotate: -135deg;
}

.ff-lightbox-next {
  right: 22px;
}

.ff-lightbox-next::before {
  translate: -70% -50%;
  rotate: 45deg;
}

.ff-lightbox-arrow:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 7px rgb(var(--g-glow, 255 186 102) / 0.3);
}

.ff-lightbox-arrow[hidden] {
  display: none;
}

.ff-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(var(--g-glow, 255 186 102) / 0.4);
  border-radius: 50%;
  background: rgb(var(--g-shadow, 20 14 9) / 0.8);
  color: #f7eedb;
  font-size: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* the cross is two lines, so it sits exactly in the middle of the circle */
.ff-lightbox-close::before,
.ff-lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  translate: -50% -50%;
  rotate: 45deg;
}

.ff-lightbox-close::after {
  rotate: -45deg;
}

.ff-lightbox-close:hover {
  border-color: var(--g-accent, #e9b46c);
  color: var(--g-accent, #e9b46c);
}

.ff-lightbox-count {
  position: fixed;
  left: 50%;
  bottom: 18px;
  margin: 0;
  translate: -50% 0;
  color: rgba(247, 238, 219, 0.8);
  font-family: var(--ff-font-heading, Georgia, serif);
  font-size: 15px;
  letter-spacing: 0.2em;
}

.ff-lightbox-count[hidden] {
  display: none;
}

.ff-lightbox-arrow:focus-visible,
.ff-lightbox-close:focus-visible {
  outline: 2px solid var(--g-accent, #e9b46c);
  outline-offset: 3px;
}

/* no page scrolling behind the lightbox */
html.ff-lightbox-open {
  overflow: hidden;
}

@media (width <= 700px) {
  img.ff-lightbox-media {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 180px);
  }

  .ff-lightbox-arrow {
    top: auto;
    bottom: 14px;
    width: 46px;
    height: 46px;
    translate: none;
  }

  .ff-lightbox-prev {
    left: 14px;
  }

  .ff-lightbox-next {
    right: 14px;
  }

  .ff-lightbox-count {
    bottom: 28px;
  }

  iframe.ff-lightbox-media {
    width: calc(100vw - 20px);
  }
}

/* ---------- Header: currency and account menus, Login with Cfx.re ---------- */
.ff-body .ff-cfx-logo,
.ff-body .ff-signin-logo svg,
.ff-body .ff-signin-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: #f26b2b;
  stroke: none;
}

.ff-menu {
  position: relative;
  flex: none;
}

.ff-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 12px;
  border: 1px solid rgba(217, 181, 106, 0.4);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  color: #f6e9d4;
  font-family: var(--ff-font-heading);
  font-size: 16px;
  letter-spacing: 0.06em;
  list-style: none;
  transition: border-color var(--ff-ease), background-color var(--ff-ease);
}

.ff-menu-trigger::-webkit-details-marker {
  display: none;
}

.ff-menu-trigger:hover,
.ff-menu[open] .ff-menu-trigger {
  border-color: var(--ff-brass-light);
  background: rgba(217, 181, 106, 0.1);
}

.ff-menu-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate 0.2s ease;
}

.ff-menu[open] .ff-menu-chevron {
  rotate: 180deg;
}

.ff-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid rgba(217, 181, 106, 0.4);
  border-radius: 6px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, #2f2017, #1d130c);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(217, 181, 106, 0.15);
  color: #f6e9d4;
}

.ff-menu:not([open]) .ff-menu-panel {
  display: none;
}

.ff-menu-caption {
  margin: 4px 10px 6px;
  color: rgba(246, 233, 212, 0.6);
  font-family: var(--ff-font-heading);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ff-menu-panel a,
.ff-menu-item-static {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #f6e9d4;
  font-family: var(--ff-font-heading);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.ff-menu-panel a:hover,
.ff-menu-panel a:focus-visible {
  background: rgba(217, 181, 106, 0.14);
  color: var(--ff-brass-light);
}

.ff-menu-panel a[aria-current="true"],
.ff-menu-item-static {
  color: var(--ff-brass-light);
}

.ff-menu-panel a[aria-current="true"]::after {
  content: "✶";
  margin-left: auto;
  font-size: 13px;
}

.ff-menu-panel svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ff-menu-external {
  margin-left: auto;
  opacity: 0.7;
}

/* Currency: a compact grid, so Tebex's long currency list fits without scrolling */
.ff-body .ff-currency-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 340px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 181, 106, 0.4) transparent;
}

.ff-currency-panel .ff-menu-caption {
  grid-column: 1 / -1;
  white-space: nowrap;
}

.ff-body .ff-currency-panel a,
.ff-body .ff-currency-panel .ff-menu-item-static {
  position: relative;
  justify-content: center;
  min-height: 38px;
  padding: 6px 4px;
  border: 1px solid rgba(217, 181, 106, 0.14);
  font-size: 15px;
}

.ff-body .ff-currency-panel a[aria-current="true"] {
  border-color: rgba(217, 181, 106, 0.6);
  background: rgba(217, 181, 106, 0.16);
}

.ff-body .ff-currency-panel a[aria-current="true"]::after {
  position: absolute;
  top: 2px;
  right: 4px;
  margin: 0;
  font-size: 10px;
}

/* phones: the trigger sits mid-header, so the panel spans the screen under the header */
@media (width <= 600px) {
  .ff-body .ff-currency-panel {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    max-width: none;
    max-height: calc(100vh - 90px);
  }
}

/* Account */
.ff-account-trigger {
  padding: 4px 10px 4px 5px;
}

.ff-account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(217, 181, 106, 0.5);
  border-radius: 50%;
  background: rgba(242, 107, 43, 0.12);
}

.ff-account-avatar .ff-cfx-logo {
  width: 19px;
  height: 19px;
}

.ff-account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-account-panel {
  width: 250px;
}

.ff-account-name {
  display: block;
  margin: 0 10px 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(217, 181, 106, 0.3);
  color: #f7eedb;
  font-family: var(--ff-font-display);
  font-size: 19px;
  overflow-wrap: anywhere;
}

/* Login button with the Cfx.re mark */
.ff-cfx-login {
  gap: 9px;
  border: 1px solid rgba(217, 181, 106, 0.55);
  background: rgba(0, 0, 0, 0.25);
  color: #f6e9d4;
}

.ff-cfx-login:hover {
  border-color: var(--ff-brass-light);
  background: rgba(217, 181, 106, 0.12);
  color: #fff6e6;
}

@media (width <= 600px) {
  .ff-menu-trigger {
    min-height: 38px;
    padding: 4px 8px;
    font-size: 14px;
  }

  .ff-account-trigger {
    padding: 3px 7px 3px 3px;
  }

  .ff-account-avatar {
    width: 28px;
    height: 28px;
  }

  .ff-cfx-login span {
    display: none;
  }
}

/* ---------- Sign in (login page and popup) ---------- */
.ff-body .login-popup-content {
  max-width: 470px;
  padding: 38px 34px 30px;
  outline: 0;
  border: 1px solid rgba(217, 181, 106, 0.45);
  border-radius: 10px;
  background:
    var(--ff-grain),
    radial-gradient(ellipse at 50% 0%, rgba(242, 107, 43, 0.12), transparent 60%),
    linear-gradient(165deg, #2f2017, #1b120b);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(217, 181, 106, 0.18);
  color: #f6e9d4;
}

/* round close button with a drawn cross */
.ff-body .login-popup .popup-close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(217, 181, 106, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #f6e9d4;
  font-size: 0;
  opacity: 1;
  -webkit-mask: none;
  mask: none;
}

.ff-body .login-popup .popup-close::before,
.ff-body .login-popup .popup-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  -webkit-mask: none;
  mask: none;
  translate: -50% -50%;
  rotate: 45deg;
}

.ff-body .login-popup .popup-close::after {
  rotate: -45deg;
}

.ff-body .login-popup .popup-close:hover {
  border-color: var(--ff-brass-light);
  color: var(--ff-brass-light);
}

.ff-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* the page version sits on the dark card too */
.ff-login-page .ff-signin {
  max-width: 470px;
  margin: 48px auto;
  padding: 38px 34px 30px;
  border: 1px solid rgba(217, 181, 106, 0.45);
  border-radius: 10px;
  background:
    var(--ff-grain),
    radial-gradient(ellipse at 50% 0%, rgba(242, 107, 43, 0.12), transparent 60%),
    linear-gradient(165deg, #2f2017, #1b120b);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #f6e9d4;
}

.ff-body .ff-signin-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border: 1px solid rgba(217, 181, 106, 0.35);
  border-radius: 50%;
  background: rgba(242, 107, 43, 0.1);
}

.ff-body .ff-signin-logo svg {
  width: 36px;
  height: 36px;
  fill: #f26b2b;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-eyebrow {
  margin: 0 0 8px;
  color: var(--ff-brass-light);
  font-family: var(--ff-font-heading);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-title {
  margin: 0 0 10px;
  color: #f7eedb;
  font-family: var(--ff-font-display);
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 400;
  line-height: 1.1;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-text {
  margin: 0 0 22px;
  color: rgba(246, 233, 212, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-points {
  width: 100%;
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid rgba(217, 181, 106, 0.25);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  list-style: none;
  text-align: left;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-points li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 26px;
  color: #f6e9d4;
  font-size: 14px;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-points li::before {
  content: "✶";
  position: absolute;
  left: 4px;
  top: 7px;
  color: var(--ff-brass-light);
  font-size: 12px;
  line-height: 1.6;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #c79c4f;
  border-radius: 6px;
  background:
    var(--ff-grain),
    linear-gradient(180deg, #f6eedc, #e3d2ac);
  box-shadow: inset 0 1px 0 #fff8e8, 0 4px 0 rgba(0, 0, 0, 0.35);
  color: #2a1a0e;
  font-family: var(--ff-font-heading);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff8e8, 0 6px 0 rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(217, 181, 106, 0.25);
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-btn svg {
  width: 22px;
  height: 22px;
  fill: #f26b2b;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-note {
  margin: 16px 0 0;
  color: rgba(246, 233, 212, 0.6);
  font-family: var(--ff-font-fell);
  font-size: 15px;
  font-style: italic;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.ff-body :is(.ff-signin, .login-popup-content) .ff-signin-form input {
  min-height: 48px;
  border: 1px solid rgba(217, 181, 106, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: #f7eedb;
}

/* ---------- Scroll reveal (ff-cinema.js adds data-ff-reveal and .is-in) ---------- */
.ff-reveal-on [data-ff-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--ff-delay, 0s),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--ff-delay, 0s);
}

.ff-reveal-on [data-ff-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Ornament under section titles draws outwards */
.ff-reveal-on .ff-section-head[data-ff-reveal] .ff-ornament {
  transform: scaleX(0.2);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}

.ff-reveal-on .ff-section-head[data-ff-reveal].is-in .ff-ornament {
  transform: none;
}

/* ---------- Motion off, or the visitor asked their device for less motion ---------- */
.ff-body[data-motion="off"] .ff-slide,
.ff-body[data-motion="off"] .ff-hero-sun,
.ff-body[data-motion="off"] .ff-hero-rays,
.ff-body[data-motion="off"] .ff-film::before {
  animation: none;
}

.ff-body[data-motion="off"] .ff-slide,
.ff-body[data-motion="off"] .ff-hero-dot.is-on::after {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .ff-body .ff-slide,
  .ff-body .ff-hero-sun,
  .ff-body .ff-hero-rays,
  .ff-body .ff-film::before,
  .ff-body .ff-hero-stage,
  .ff-body .ff-hero-copy > *,
  .ff-body .ff-hero-art,
  .ff-body .ff-hero-spot,
  .ff-body .ff-valuable,
  .ff-body .ff-hero-accent {
    animation: none !important;
  }

  .ff-body .ff-embers {
    display: none;
  }
}

/* ---------- Basket drawer: close button that always shows, empty state ---------- */
.ff-body .basket-popup-content .popup-close {
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 181, 106, 0.6);
  border-radius: 4px;
  background-color: #3a2416;
  box-shadow: 0 2px 6px rgba(30, 18, 10, 0.35);
  opacity: 1;
}

/* the × is two drawn lines, so it never waits on Tebex's icon file */
.ff-body .basket-popup-content .popup-close::before,
.ff-body .basket-popup-content .popup-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: #f1e3c6;
  -webkit-mask: none;
  mask: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ff-body .basket-popup-content .popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ff-body .basket-popup-content .popup-close:hover {
  border-color: var(--ff-brass-light);
  background-color: var(--ff-wax);
}

.ff-body .basket .basket-empty,
.ff-body .basket-empty[data-ff-dressed] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: min(70vh, 560px);
  padding: 48px 28px;
  text-align: center;
}

.ff-basket-empty-icon {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(140, 98, 40, 0.45);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%235a3018' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M14 24h36l-3 26c-.3 3-2.7 5-5.7 5H22.7c-3 0-5.4-2-5.7-5z' fill='%23c79a55'/%3E%3Cpath d='M12 24c0-6 5-10 11-10h18c6 0 11 4 11 10z' fill='%23a87437'/%3E%3Cpath d='M24 14v-2c0-3 3.5-5 8-5s8 2 8 5v2'/%3E%3Cpath d='M28 24v12h8V24' fill='%23e9c98a'/%3E%3Ccircle cx='32' cy='32' r='1.6' fill='%235a3018'/%3E%3Cpath d='M20 46h24' stroke-dasharray='2 3' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") center / 58px no-repeat,
    radial-gradient(circle at 40% 35%, #f6e8c9, #e3cc9c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(60, 35, 15, 0.18);
}

.ff-body .ff-basket-empty-text {
  margin: 0;
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 22px;
  font-style: normal;
}

.ff-body .basket-empty .ff-basket-empty-link {
  margin-top: 6px;
  font-style: normal;
}

/* Store cards show the other stores' own colours, untouched by the colour grade */
.ff-family-pic,
.ff-family-card:hover .ff-family-pic {
  filter: none;
}
