.brewery-page{
  min-height:100svh;
  margin:0;
  background:
    radial-gradient(circle at 18% 12%, rgba(214,173,47,.20), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(215,25,32,.16), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(0,139,69,.18), transparent 34%),
    linear-gradient(135deg, #070604 0%, #10170f 44%, #1a0909 100%);
  color:#fff8e8;
  overflow-x:hidden;
}

.brewery-page::before{
  content:"";
  position:fixed;
  inset:-18%;
  display:none;
  pointer-events:none;
  background:
    radial-gradient(circle, rgba(255,255,255,.24) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(214,173,47,.22) 0 1.4px, transparent 2.4px),
    radial-gradient(circle, rgba(0,139,69,.20) 0 1.2px, transparent 2.2px),
    radial-gradient(circle, rgba(215,25,32,.18) 0 1.1px, transparent 2px);
  background-position:0 0, 52px 34px, 108px 72px, 170px 120px;
  background-size:72px 72px, 118px 118px, 156px 156px, 210px 210px;
  opacity:.42;
  animation:
    breweryParticlesDrift 18s linear infinite,
    breweryParticlesPulse 4.5s ease-in-out infinite alternate;
  will-change:background-position, opacity;
}

.brewery-page::after{
  content:"";
  position:fixed;
  inset:-12%;
  pointer-events:none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(214,173,47,.10) 47%, transparent 54%),
    radial-gradient(circle at 16% 24%, rgba(255,255,255,.18), transparent 18%),
    radial-gradient(circle at 86% 72%, rgba(0,139,69,.14), transparent 20%);
  opacity:.34;
  animation:breweryLightSweep 12s ease-in-out infinite alternate;
  will-change:transform, opacity;
}

.brewery-particles{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  overflow:hidden;
}

.brewery-particle-canvas{
  width:100%;
  height:100%;
  display:block;
  opacity:.9;
  filter:saturate(1.12);
}

.brewery-shell{
  position:relative;
  z-index:2;
  width:min(1180px, calc(100% - 32px));
  min-height:100svh;
  display:grid;
  align-content:center;
  gap:clamp(34px, 5vw, 70px);
  margin:0 auto;
  padding:clamp(32px, 6vw, 84px) 0;
}

.brewery-header{
  display:grid;
  gap:22px;
  text-align:center;
}

.brewery-back{
  justify-self:start;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(214,173,47,.52);
  border-radius:999px;
  padding:0 20px;
  color:#fff8e8;
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:transform .22s ease, background .22s ease, border-color .22s ease;
}

.brewery-back:hover,
.brewery-back:focus-visible{
  transform:translateY(-2px);
  border-color:#d6ad2f;
  background:rgba(214,173,47,.16);
  outline:0;
}

.brewery-kicker{
  margin:0 0 10px;
  color:#d6ad2f;
  font-weight:900;
  letter-spacing:.32em;
  text-transform:uppercase;
}

.brewery-header h1{
  margin:0;
  color:#fff8e8;
  font-family:Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size:clamp(46px, 8vw, 116px);
  line-height:.88;
  letter-spacing:.045em;
  text-transform:uppercase;
  text-shadow:0 8px 34px rgba(0,0,0,.35);
}

.brewery-lead{
  max-width:760px;
  margin:18px auto 0;
  color:rgba(255,248,232,.78);
  font-size:clamp(16px, 1.6vw, 21px);
  line-height:1.55;
}

.brewery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:clamp(18px, 3vw, 34px);
}

.brewery-card{
  position:relative;
  min-height:360px;
  display:grid;
  place-items:center;
  gap:18px;
  overflow:hidden;
  border:1px solid rgba(214,173,47,.45);
  border-radius:34px;
  padding:34px;
  color:#111;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,248,232,.90)),
    #fff8e8;
  text-align:center;
  text-decoration:none;
  box-shadow:0 30px 80px rgba(0,0,0,.34);
  isolation:isolate;
  transform:translate3d(0, 0, 0);
  transition:transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .32s ease, border-color .32s ease;
  will-change:transform;
}

.brewery-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(135deg, rgba(0,139,69,.13), transparent 34%),
    linear-gradient(315deg, rgba(215,25,32,.14), transparent 34%),
    radial-gradient(circle at 50% 18%, rgba(214,173,47,.20), transparent 28%);
}

.brewery-card::after{
  content:"";
  position:absolute;
  inset:-35%;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(115deg, transparent 34%, rgba(255,255,255,.72) 48%, transparent 62%);
  opacity:0;
  transform:translateX(-34%) rotate(8deg);
  transition:opacity .24s ease;
}

.brewery-card > *{
  position:relative;
  z-index:1;
}

.brewery-card:hover,
.brewery-card:focus-visible{
  transform:translateY(-10px) scale(1.025) rotateX(2deg);
  border-color:#d6ad2f;
  box-shadow:0 38px 96px rgba(0,0,0,.42);
  outline:0;
}

.brewery-card:hover::after,
.brewery-card:focus-visible::after{
  opacity:.55;
  animation:breweryCardShine .9s ease forwards;
}

.brewery-card img{
  width:min(270px, 72vw);
  height:auto;
  aspect-ratio:1;
  display:block;
  object-fit:contain;
  border-radius:999px;
  background:#fff;
  box-shadow:
    0 0 0 3px #d6ad2f,
    0 18px 42px rgba(0,0,0,.18);
  transition:transform .28s cubic-bezier(.2,.9,.2,1);
}

.brewery-card:hover img,
.brewery-card:focus-visible img{
  animation:breweryLogoHover .72s cubic-bezier(.2,.9,.2,1) both;
}

.brewery-glow{
  position:absolute;
  width:260px;
  height:260px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(214,173,47,.34), transparent 65%);
  filter:blur(18px);
  opacity:.72;
  z-index:0;
  transform:scale(.96);
  transition:transform .3s ease, opacity .3s ease, filter .3s ease;
}

.brewery-card:hover .brewery-glow,
.brewery-card:focus-visible .brewery-glow{
  opacity:1;
  filter:blur(24px);
  transform:scale(1.18);
}

.brewery-card-copy{
  display:grid;
  gap:8px;
}

.brewery-card-copy strong{
  color:#090806;
  font-family:Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size:clamp(32px, 4vw, 54px);
  letter-spacing:.04em;
  text-transform:uppercase;
}

.brewery-card-copy small{
  color:#008b45;
  font-size:15px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

@media (max-width:640px){
  .brewery-shell{
    width:min(100% - 24px, 1180px);
    align-content:start;
  }

  .brewery-back{
    justify-self:center;
  }

  .brewery-card{
    min-height:310px;
    border-radius:26px;
    padding:26px;
  }

  .brewery-card img{
    width:min(220px, 70vw);
  }
}

@keyframes breweryParticlesDrift{
  0%{
    background-position:0 0, 52px 34px, 108px 72px, 170px 120px;
  }
  100%{
    background-position:220px -180px, -160px 210px, 260px 190px, -240px -220px;
  }
}

@keyframes breweryParticlesPulse{
  from{
    opacity:.28;
  }
  to{
    opacity:.48;
  }
}

@keyframes breweryLightSweep{
  from{
    transform:translate3d(-3%, -2%, 0) rotate(-1deg);
    opacity:.24;
  }
  to{
    transform:translate3d(3%, 2%, 0) rotate(1deg);
    opacity:.42;
  }
}

@keyframes breweryCardShine{
  from{
    transform:translateX(-46%) rotate(8deg);
  }
  to{
    transform:translateX(46%) rotate(8deg);
  }
}

@keyframes breweryLogoHover{
  0%{
    transform:rotate(0deg) scale(1);
  }
  45%{
    transform:rotate(-3deg) scale(1.07);
  }
  100%{
    transform:rotate(-1.5deg) scale(1.045);
  }
}

@media (prefers-reduced-motion:reduce){
  .brewery-page::before,
  .brewery-page::after,
  .brewery-card:hover::after,
  .brewery-card:focus-visible::after,
  .brewery-card:hover img,
  .brewery-card:focus-visible img{
    animation:none;
  }
}
