.brewery-profile-page {
  --brewery-gold: var(--gold);
  --brewery-panel: rgba(9, 17, 22, .9);
  --brewery-line: rgba(173, 198, 209, .18);
  background:
    radial-gradient(circle at 72% 12%, rgba(245, 180, 0, .08), transparent 30rem),
    linear-gradient(180deg, #020609 0%, #061016 58%, #020608 100%);
}

.brewery-page-shell {
  width: min(var(--product-content-max), calc(100% - 40px));
  padding: var(--page-pad-block) 0 72px;
}

.brewery-story-hero {
  position: relative;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  grid-template-rows: minmax(314px, 1fr) auto;
  grid-template-areas: "identity story" "identity metadata";
  min-height: min(430px, var(--profile-panel-max-h));
  overflow: hidden;
  border: 1px solid var(--brewery-line);
  border-radius: 8px;
  background: #081116;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .42);
  animation: brewery-hero-enter 520ms cubic-bezier(.2, .8, .2, 1) both;
  isolation: isolate;
}

.brewery-hero-media,
.brewery-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brewery-hero-media { z-index: -3; }
.brewery-hero-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.brewery-hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(2, 8, 12, 1) 0%, rgba(2, 8, 12, .98) 24%, rgba(2, 8, 12, .9) 50%, rgba(2, 8, 12, .78) 70%, rgba(2, 8, 12, 0) 82%, rgba(2, 8, 12, 0) 100%);
}

.brewery-identity-panel {
  grid-area: identity;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 14px 0 14px 14px;
  padding: 16px 15px 14px;
  border: 1px solid rgba(190, 213, 222, .2);
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(18, 30, 37, .95), rgba(6, 14, 19, .92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .36);
  backdrop-filter: blur(14px);
}

.brewery-logo-frame {
  display: grid;
  place-items: center;
  min-height: 154px;
  margin-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brewery-logo-frame img { width: 100%; max-width: 158px; max-height: 145px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.brewery-monogram { color: var(--brewery-gold); font-family: Georgia, serif; font-size: 58px; letter-spacing: -.08em; line-height: 1; }

.brewery-kicker {
  margin: 0 0 7px;
  color: var(--brewery-gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.brewery-identity-copy h1 {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-transform: uppercase;
}

.brewery-origin { margin: 8px 0 0; color: var(--brewery-gold); font-size: 12px; font-weight: 800; }
.brewery-identity-facts { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: auto; padding-top: 16px; }
.brewery-identity-facts span { display: inline-flex; align-items: center; gap: 6px; color: #d7e0e4; font-size: 11px; }
.brewery-identity-facts img { width: 18px; height: 12px; object-fit: cover; }
.brewery-identity-facts svg { width: 14px; height: 14px; fill: currentColor; color: var(--brewery-gold); }

.brewery-story-copy {
  grid-area: story;
  align-self: center;
  max-width: 560px;
  margin: 30px clamp(28px, 4vw, 48px) 22px clamp(34px, 4vw, 48px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .94), 0 5px 18px rgba(0, 0, 0, .64);
}

.brewery-story-copy h2 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(29px, 2.2vw, 38px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.brewery-story-copy > p:last-child { max-width: 540px; margin: 15px 0 0; color: #d3dce0; font-size: 14px; line-height: 1.52; }

.brewery-meta-rail {
  grid-area: metadata;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
  margin: 0 14px 14px 24px;
}

.brewery-meta-item {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(173, 198, 209, .24);
  border-radius: 4px;
  color: #e8edef;
  background: linear-gradient(155deg, rgba(16, 27, 33, .94), rgba(5, 14, 19, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 20px rgba(0, 0, 0, .16);
  backdrop-filter: blur(12px);
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

a.brewery-meta-item:is(:hover, :focus-visible) { border-color: rgba(245, 180, 0, .68); color: var(--brewery-gold); background: rgba(20, 31, 36, .98); box-shadow: 0 0 0 1px rgba(245, 180, 0, .13), 0 11px 24px rgba(0, 0, 0, .28); outline: 0; transform: translateY(-1px); }
a.brewery-meta-item:is(:hover, :focus-visible) > svg { stroke: currentColor; }
a.brewery-meta-item:is(:hover, :focus-visible) > svg.brewery-social-mark { fill: currentColor; stroke: none; }
a.brewery-meta-item:is(:hover, :focus-visible) strong { color: #fff; }
.brewery-meta-item > svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: #aebcc2; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.brewery-meta-item > svg.brewery-social-mark { fill: #aebcc2; stroke: none; }
.brewery-meta-item strong { min-width: 0; overflow: hidden; color: #e8edef; font-size: 10px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.brewery-meta-item i { margin-left: 1px; color: var(--brewery-gold); font-size: 10px; font-style: normal; }
.brewery-meta-item--location { max-width: 180px; }
.brewery-meta-item--website { max-width: 200px; }

.brewery-beer-section { margin-top: clamp(14px, 1.5vw, 20px); }
.brewery-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; padding: 0 4px 9px; border-bottom: 1px solid var(--brewery-line); }
.brewery-section-heading .brewery-range-title { margin: 0; font-size: 10px; letter-spacing: .19em; line-height: 1.2; }
.brewery-section-heading > p { margin: 0; color: #7e9098; font-size: 12px; }
.brewery-section-heading > p strong { color: var(--brewery-gold); font-size: 18px; }

.brewery-beer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); justify-content: start; gap: 10px; }
.brewery-beer-card {
  position: relative;
  display: grid;
  grid-template-rows: 128px 100px;
  min-width: 0;
  height: 228px;
  overflow: hidden;
  border: 1px solid rgba(173, 198, 209, .16);
  border-radius: 7px;
  background: linear-gradient(165deg, rgba(15, 28, 35, .95), rgba(5, 13, 18, .98));
  box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
  opacity: 1;
  transform: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.brewery-js .brewery-beer-card { opacity: 0; transform: translateY(14px); }
.brewery-beer-card.is-visible { animation: brewery-card-reveal 380ms calc(var(--card-order) * 35ms) ease-out both; }
.brewery-beer-card:is(:hover, :focus-within) { z-index: 1; border-color: rgba(245, 180, 0, .62); background: linear-gradient(165deg, rgba(22, 35, 41, .98), rgba(8, 17, 21, .99)); box-shadow: 0 0 0 1px rgba(245, 180, 0, .16), 0 22px 45px rgba(0,0,0,.38); transform: translateY(-3px); }
.brewery-beer-image { position: relative; display: grid; place-items: end center; min-height: 0; padding: 8px 8px 5px; overflow: hidden; background: radial-gradient(circle at 50% 65%, rgba(55, 93, 112, .28), transparent 55%); }
.brewery-beer-image::after { position: absolute; right: 10%; bottom: 0; left: 10%; height: 22px; border-radius: 50%; background: rgba(0,0,0,.52); filter: blur(8px); content: ''; }
.brewery-beer-image img { z-index: 1; width: 100%; height: 112px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 7px rgba(0,0,0,.52)); transition: transform 200ms ease; }
.brewery-beer-card:is(:hover, :focus-within) .brewery-beer-image img { transform: translateY(-5px) scale(1.025); }
.brewery-beer-bookmark { position: absolute; z-index: 3; top: 7px; right: 7px; width: 20px; height: 24px; }
.brewery-beer-bookmark svg { width: 15px; height: 18px; }
.brewery-beer-state { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; color: #c5cdd1; background: rgba(5, 10, 13, .86); font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.brewery-beer-card.is-discontinued .brewery-beer-image img { filter: grayscale(.72) saturate(.55) drop-shadow(0 16px 10px rgba(0,0,0,.52)); opacity: .72; }
.brewery-beer-copy { display: flex; min-height: 0; flex-direction: column; padding: 8px 8px 9px; border-top: 1px solid rgba(255,255,255,.07); text-align: center; }
.brewery-beer-copy h3 { display: -webkit-box; min-height: 30px; max-height: 30px; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; letter-spacing: -.015em; line-height: 1.16; }
.brewery-beer-copy h3 a:focus-visible { border-radius: 2px; outline: 2px solid var(--brewery-gold); outline-offset: 3px; }
.brewery-beer-copy > p { min-height: 13px; margin: 2px 0 5px; overflow: hidden; color: #82939b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.brewery-beer-copy dl { display: flex; justify-content: center; gap: 15px; margin: auto 0 0; }
.brewery-beer-copy dl div { display: grid; }
.brewery-beer-copy dt { color: #71838b; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.brewery-beer-copy dd { margin: 0; color: #f1f5f6; font-size: 12px; font-weight: 900; line-height: 1.05; }

.brewery-empty-range,
.brewery-not-found { border: 1px solid var(--brewery-line); background: rgba(9, 18, 23, .8); }
.brewery-empty-range { padding: 40px; color: #a5b1b6; text-align: center; }
.brewery-empty-range a,
.brewery-not-found a { display: inline-block; margin-top: 10px; color: var(--brewery-gold); font-weight: 900; }
.brewery-not-found { width: min(850px, calc(100% - 40px)); min-height: 360px; margin: 70px auto; padding: clamp(40px, 8vw, 90px); }
.brewery-not-found h1 { margin: 0; font-size: clamp(38px, 6vw, 74px); letter-spacing: -.05em; }
.brewery-not-found > p:not(.brewery-kicker) { color: #aab6bb; }

@keyframes brewery-hero-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes brewery-card-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1399px) {
  .brewery-story-hero { grid-template-columns: 225px minmax(0, 1fr); }
  .brewery-identity-panel { margin: 12px 0 12px 12px; }
  .brewery-meta-rail { margin: 0 12px 12px 20px; }
}

@media (max-width: 900px) {
  .brewery-page-shell { width: min(var(--product-content-max), calc(100% - 28px)); }
  .brewery-story-hero { display: block; min-height: 0; padding: 12px; }
  .brewery-hero-shade { background: linear-gradient(180deg, rgba(3,9,13,.48), rgba(3,9,13,.93) 54%, #03090d 100%); }
  .brewery-identity-panel { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px 18px; margin: 0; padding: 14px; }
  .brewery-logo-frame { grid-row: 1 / 4; min-height: 128px; margin: 0; border: 0; border-right: 1px solid rgba(255,255,255,.08); }
  .brewery-logo-frame img { max-width: 110px; max-height: 110px; }
  .brewery-identity-copy { align-self: end; }
  .brewery-identity-facts { margin: 0; padding-top: 8px; }
  .brewery-story-copy { margin: 28px 12px 22px; }
  .brewery-meta-rail { margin: 0; }
  .brewery-beer-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 150px)); }
}

@media (max-width: 700px) {
  .brewery-page-shell { padding-bottom: 54px; }
  .brewery-story-hero { padding: 8px; }
  .brewery-identity-panel { grid-template-columns: 98px minmax(0, 1fr); padding: 11px; }
  .brewery-logo-frame { min-height: 98px; }
  .brewery-logo-frame img { max-width: 84px; max-height: 84px; }
  .brewery-identity-copy h1 { font-size: clamp(20px, 6vw, 27px); }
  .brewery-identity-facts { gap: 7px 12px; }
  .brewery-story-copy { margin: 27px 10px 22px; }
  .brewery-story-copy h2 { font-size: clamp(27px, 8vw, 36px); }
  .brewery-meta-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brewery-meta-item { width: 100%; }
  .brewery-meta-item--location { max-width: none; }
  .brewery-meta-item--website { max-width: none; }
  .brewery-meta-item { min-height: 44px; }
  .brewery-beer-grid { gap: 8px; }
  .brewery-section-heading { align-items: start; }
  .brewery-section-heading > p { padding-top: 5px; text-align: right; }
}

@media (max-width: 430px) {
  .brewery-identity-panel { display: block; text-align: center; }
  .brewery-logo-frame { min-height: 112px; margin-bottom: 12px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .brewery-identity-facts { justify-content: center; }
  .brewery-story-copy { margin-top: 25px; }
  .brewery-beer-copy dl { gap: 13px; }
}

@media (max-width: 330px) {
  .brewery-meta-rail { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .brewery-story-hero,
  .brewery-beer-card,
  .brewery-beer-card.is-visible { animation: none; opacity: 1; transform: none; transition: none; }
  .brewery-beer-image img { transition: none; }
}
