.star-border { isolation: isolate; }
@property --star-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.star-border::before {
  position: absolute;
  inset: -2px;
  z-index: 1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--star-angle), transparent 0 68%, #f36b1622 79%, #ffb16b 91%, #fff 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: star-border-orbit 5.5s linear infinite;
  content: "";
  pointer-events: none;
}
.hero-seal.star-border { box-shadow: 0 14px 44px #0008, 0 0 24px #f36b161b; }
@keyframes star-border-orbit { to { --star-angle: 360deg; } }
@media (min-width: 901px) { .hero-seal.star-border { right: max(112px, calc((100vw - 1180px) / 2 + 85px)); } }

.number-pop { font-variant-numeric: tabular-nums; white-space: nowrap; }
.roll-digit { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.roll-strip { display: block; transform: translateY(0); transition: transform 1.55s cubic-bezier(.16, 1, .3, 1); }
.roll-strip span { display: block; height: 1em; line-height: 1; }
.number-pop.is-counted .roll-strip { transform: translateY(calc(-1em * var(--roll-steps))); }
.number-pop .roll-digit:last-child .roll-strip { transition-duration: 1.8s; }

.brands { padding: 108px 0 116px; color: #171513; background: #f2efe8; }
.brands-head { display: flex; align-items: end; justify-content: space-between; gap: 44px; }
.brands-head .eyebrow { color: #bd4b05; }
.brands-head p:last-child { max-width: 29ch; margin: 0 0 5px; color: #5e5751; font-size: 16px; line-height: 1.55; }
.brand-folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 66px; }
.brand-folder { position: relative; isolation: isolate; min-height: 162px; padding: 0; border: 0; border-radius: 8px 24px 20px 20px; color: #f6f2ec; background: #22201e; cursor: pointer; text-align: left; transition: transform .28s, background .28s, box-shadow .28s; }
.brand-folder::before { position: absolute; inset: -7px 8px 7px; z-index: -2; border: 1px solid #b5aca0; border-radius: 8px 22px 20px 20px; background: #ded8cd; content: ""; transform: rotate(-2deg); }
.brand-folder:hover, .brand-folder:focus-visible { transform: translateY(-5px) rotate(-.5deg); }
.brand-folder.is-active { color: #17110d; background: #f36b16; box-shadow: 0 18px 34px #a7430d35; }
.brand-folder-tab { position: absolute; z-index: 2; top: -24px; left: 0; display: flex; min-height: 29px; align-items: center; padding: 0 18px; border-radius: 11px 11px 0 0; color: inherit; background: inherit; font: 700 10px/1 var(--mono); letter-spacing: .09em; }
.brand-folder-body { position: relative; z-index: 1; display: flex; height: 100%; min-height: 162px; flex-direction: column; justify-content: end; padding: 28px 28px 24px; border-radius: inherit; background: inherit; }
.brand-folder-body strong { max-width: 13ch; font: 800 clamp(26px, 3vw, 39px)/.94 var(--display); text-transform: uppercase; }
.brand-folder-body small { margin-top: 12px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brand-folder-arrow { position: absolute; right: 24px; bottom: 22px; font: 400 34px/1 var(--display); }
.brand-pages { margin-top: 26px; padding: 26px 30px 30px; border: 1px solid #ded8cf; border-radius: 24px; background: #fff; box-shadow: 0 24px 55px #54412b17; }
.brand-pages[hidden] { display: none; }
.brand-pages-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #e8e3dc; }
.brand-pages-head span { color: #a24b15; font: 700 10px/1 var(--mono); letter-spacing: .1em; }
.brand-pages-head strong { font: 800 28px/1 var(--display); text-transform: uppercase; }
.brand-pages-head span:last-child { margin-left: auto; color: #8b8279; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 22px; }
.brand-card { display: flex; min-height: 130px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid #e8e3db; border-radius: 16px; background: #fdfcfa; transition: transform .22s, border-color .22s, box-shadow .22s; }
.brand-card:hover { transform: translateY(-3px); border-color: #edaa80; box-shadow: 0 8px 20px #edaa8022; }
.brand-mark { display: block; width: min(100%, 230px); height: 68px; overflow: hidden; }
.brand-card strong { color: #5c554d; font: 700 10px/1.3 var(--mono); letter-spacing: .04em; text-align: center; text-transform: uppercase; }

@media (max-width: 760px) {
  .brands { padding: 84px 0 90px; }
  .brands-head { display: block; }
  .brands-head p:last-child { margin-top: 18px; }
  .brand-folders { gap: 12px; margin-top: 58px; }
  .brand-folder, .brand-folder-body { min-height: 142px; }
  .brand-folder-body { padding: 21px 18px 18px; }
  .brand-folder-body strong { font-size: 27px; }
  .brand-folder-arrow { right: 14px; bottom: 14px; font-size: 26px; }
  .brand-folder-tab { padding: 0 10px; font-size: 8px; }
}
@media (min-width: 601px) and (max-width: 900px) { .hero-seal.star-border { right: 104px; } }
@media (max-width: 600px) {
  .brand-folders { grid-template-columns: 1fr; gap: 37px; }
  .brand-folder, .brand-folder-body { min-height: 110px; }
  .brand-folder-body { padding: 18px 22px 16px; }
  .brand-folder-body strong { max-width: none; font-size: 31px; }
  .brand-folder-body small { margin-top: 8px; }
  .brand-pages { padding: 18px 14px 16px; border-radius: 18px; }
  .brand-pages-head { flex-wrap: wrap; gap: 8px 12px; }
  .brand-pages-head strong { width: 100%; order: 2; font-size: 25px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-card { min-height: 116px; padding: 10px 6px; }
  .brand-mark { height: 58px; }
  .brand-card strong { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .star-border::before { animation: none; }
  .roll-strip, .brand-folder, .brand-card { transition: none; }
}
