/* Funnyeye — subpage content in the homepage "Azulejo Editorial" theme.
   Loaded on every subpage after the old page CSS + theme.css.  Every
   rule is prefixed with `body` so it out-ranks the old dark-theme
   selectors (chrome.css, chrome-extras*.css, page-*.css) without
   !important.  Tokens (--paper, --ink, --f-*) come from theme.css. */

/* ============================================================
   Base
   ============================================================ */

html body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-zh-serif);
}

html[lang="en"] body {
  font-family: var(--f-sans);
}

#main:not(.fe-subpage-card) {
  padding-top: var(--fe-nav-h, 4.5rem);
  color: var(--text);
}

/* ID-scoped so they beat the old `.x p { color: white }` rules;
   coloured blocks (product cards / detail hero) re-set their own. */
#main h1,
#main h2,
#main h3 {
  color: var(--ink);
}

#main a {
  color: var(--ink);
}

#main p,
#main li,
#main dd,
#main dt {
  color: var(--text);
  opacity: 1;
}

/* Fades waited on GSAP, which subpages never load — show by default. */
#main [data-fe-anim-fade],
#main [data-fe-anim-fade-stagger] > * {
  opacity: 1;
  transform: none;
}

/* Old ornament corners / tags from the Webflow template */
body .fe-section-corners,
body .fe-section-tag {
  display: none;
}

/* ============================================================
   Heroes (every page type)
   ============================================================ */

#main .fe-subpage-hero,
#main .brews-hero,
#main .collab-hero,
#main .fe-legal-hero,
#main .fe-gallery-hero,
#main.fe-subpage-card {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

/* Rosette tile strip under each hero */
#main .fe-subpage-hero::after,
#main .brews-hero::after,
#main .collab-hero::after,
#main .fe-legal-hero::after,
#main .fe-gallery-hero::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 5vw, 5rem);
  right: clamp(1rem, 5vw, 5rem);
  bottom: -20px;
  height: 18px;
  background: var(--tile-rosette) 0 0 / 18px repeat-x;
}

#main .fe-subpage-hero-eyebrow,
#main .brews-hero-eyebrow,
#main .collab-hero-eyebrow,
#main .fe-legal-eyebrow,
#main .fe-subpage-eyebrow,
#main .fe-subpage-section-eyebrow,
#main .fe-subpage-card-eyebrow,
#main .oem-section-eyebrow,
#main .fe-built-to-adapt-eyebrow,
#main .fe-philosophy-eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

#main .fe-subpage-hero-heading,
#main .brews-hero-title,
#main .collab-hero-title,
#main .fe-legal-title,
#main .fe-gallery-hero-heading,
#main.fe-subpage-card h1,
#main.fe-subpage-card h2 {
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

html[lang="en"] #main .fe-subpage-hero-heading,
html[lang="en"] #main .brews-hero-title,
html[lang="en"] #main .collab-hero-title,
html[lang="en"] #main .fe-legal-title,
html[lang="en"] #main .fe-gallery-hero-heading {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Accent words become the italic serif, like the homepage mixes */
#main .brews-hero-title em,
#main .collab-hero-title em,
#main .fe-subpage-hero-heading em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

#main .fe-subpage-hero-lead,
#main .brews-hero-lead,
#main .collab-hero-lead,
#main .fe-legal-meta {
  margin: 1.5rem 0 0;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--text);
  opacity: 1;
}

#main .fe-subpage-hero-lead--secondary {
  margin-top: 1rem;
  color: var(--ink-soft);
}

#main .brews-hero-counter {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  top: clamp(3rem, 7vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}

#main .brews-hero-counter-num {
  font-family: var(--f-sans);
  font-stretch: 68%;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.85;
  color: var(--ink);
}

/* Hero CTA + generic buttons → line buttons */
#main .collab-hero-cta,
#main .fe-subpage-cta-btn,
#main .fe-form-submit,
#main .fe-subpage-back,
#main .brew-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  margin-top: 2rem;
  padding: 0 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.25s, color 0.25s;
}

#main .collab-hero-cta:hover,
#main .fe-subpage-cta-btn:hover,
#main .fe-form-submit:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--paper);
}

#main .brew-back-link,
#main .fe-subpage-back {
  background: transparent;
  color: var(--ink);
  margin-top: 0;
}

#main .brew-back-link:hover,
#main .fe-subpage-back:hover {
  background: var(--ink);
  color: var(--paper);
}

#main .brew-back-nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 5rem) 0;
}

/* Section labels between blocks */
#main .fe-subpage-section-eyebrow {
  max-width: 80rem;
  margin: clamp(3.5rem, 7vw, 5rem) auto 1.25rem;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

#main .fe-subpage-section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============================================================
   Shared card / grid language: hairline tables on paper
   ============================================================ */

#main .fe-subpage-facts,
#main .fe-subpage-card-row,
#main .fe-subpage-values,
#main .collab-overview-grid,
#main .partners-grid,
#main .events-grid,
#main .oem-card-grid,
#main .oem-flow-steps {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#main .fe-subpage-facts > *,
#main .fe-subpage-card-row > *,
#main .fe-subpage-values > *,
#main .collab-overview-card,
#main .partner-card,
#main .event-card,
#main .oem-card,
#main .oem-step {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.25s;
}

#main .fe-subpage-facts > * + *,
#main .fe-subpage-card-row > * + *,
#main .fe-subpage-values > * + *,
#main .collab-overview-card + .collab-overview-card,
#main .oem-step + .oem-step {
  border-left: 1px solid var(--rule);
}

#main a.collab-overview-card:hover,
#main a.partner-card:hover,
#main a.event-card:hover,
#main .fe-subpage-card-row > *:hover {
  background: var(--paper-2);
}

/* Numbers */
#main .collab-overview-num,
#main .fe-subpage-value-num,
#main .oem-step-num,
#main .oem-section-num {
  display: block;
  margin: 0 0 1rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 1;
}

#main .collab-overview-num::before,
#main .fe-subpage-value-num::before,
#main .oem-step-num::before {
  content: "N°";
}

/* Card titles */
#main .collab-overview-title,
#main .fe-subpage-card-row h2,
#main .fe-subpage-values h3,
#main .oem-card-title,
#main .oem-step-title,
#main .event-name,
#main .partner-name {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.3;
}

html[lang="en"] #main .collab-overview-title,
html[lang="en"] #main .fe-subpage-card-row h2,
html[lang="en"] #main .fe-subpage-values h3,
html[lang="en"] #main .oem-card-title,
html[lang="en"] #main .oem-step-title,
html[lang="en"] #main .event-name {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.05;
}

#main .collab-overview-body,
#main .fe-subpage-card-row p,
#main .fe-subpage-values p,
#main .oem-card-body,
#main .oem-step-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text);
}

/* Card links */
#main .collab-overview-arrow,
#main .fe-subpage-card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

/* Facts */
#main .fe-subpage-fact-label,
#main .partner-meta,
#main .event-tag,
#main .brew-spec-label,
#main .brew-spec-unit {
  margin: 0 0 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

#main .fe-subpage-fact-value {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

/* ============================================================
   Collaboration · partners · events · OEM
   ============================================================ */

#main.collab {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

#main .collab-overview-grid,
#main .partners-grid,
#main .events-grid,
#main .oem-flow,
#main .oem-section {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

/* Partner wall — same as homepage credits */
#main .partners-grid {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

#main .partner-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11rem;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-top: 0;
  text-align: center;
}

#main .partners-grid {
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
  padding: 0;
  max-width: calc(80rem - 2 * clamp(1rem, 5vw, 5rem));
}

#main .partner-logo {
  color: var(--ink);
}

#main .partner-logo img {
  max-height: 4.5rem;
  max-width: 70%;
  mix-blend-mode: multiply;
}

#main .partner-wordmark {
  font-family: var(--f-serif);
  font-size: 1.45rem;
  color: var(--ink);
}

#main .partner-name {
  font-size: 0.95rem;
  margin: 0.75rem 0 0.25rem;
}

/* Event cards */
#main .event-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 1.5rem;
  border-top: 0;
}

#main .event-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 0;
}

#main .event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#main .event-card-body {
  padding: 1rem 0 0;
  border-top: 1px solid var(--ink);
  margin-top: 1rem;
}

#main .events-grid {
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

#main .event-date {
  margin: 0 0 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink);
}

/* OEM */
#main .oem-flow,
#main .oem-section {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

#main .oem-flow-steps {
  counter-reset: none;
}

#main .oem-section {
  padding: 0 clamp(1rem, 5vw, 5rem);
}

#main .oem-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: end;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

#main .oem-section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

#main .oem-section-intro {
  margin: 0;
  line-height: 1.9;
}

#main .oem-card-grid {
  padding: 0;
  margin-top: 0;
}

#main .oem-card-icon {
  color: var(--ink);
}

/* ============================================================
   Brews landing — colour cards with bottle cut-outs
   ============================================================ */

#main.brews {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

#main .brews-grid {
  max-width: 80rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

#main .brews-grid .brew-card,
#main .brews-grid .brews-card-feature,
#main .brews-grid .brews-card-half {
  --bg: var(--ink);
  position: relative;
  grid-column: auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: var(--bg);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: var(--paper);
  transform: none;
}

#main .brews-grid .brew-card[data-slug="macau-ipa"] { --bg: #6fa57c; }
#main .brews-grid .brew-card[data-slug="macau-ale"] { --bg: #2f5fc4; }
#main .brews-grid .brew-card[data-slug="egg-tart-hazy"] { --bg: #e48a56; }
#main .brews-grid .brew-card[data-slug="plum-cocktail"] { --bg: #3f9aa6; }
#main .brews-grid .brew-card[data-slug="magnolia-tea"] { --bg: #6f7d4f; }

#main .brews-grid .brew-card-num {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--paper);
  opacity: 0.9;
}

#main .brews-grid .brew-card-media {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0 1rem;
  background: transparent;
  border: 0;
}

#main .brews-grid .brew-card-media img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transform: rotate(-10deg);
  filter: drop-shadow(12px 18px 16px rgba(0, 0, 0, 0.28));
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}

#main .brews-grid .brew-card:hover .brew-card-media img {
  transform: rotate(-4deg) translateY(-6px);
}

#main .brews-grid .brew-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
  border-top: 1px solid rgba(242, 239, 230, 0.35);
}

#main .brews-grid .brew-card-body p,
#main .brews-grid .brew-card-body h2,
#main .brews-grid .brew-card-body a,
#main .brews-grid .brew-card-body span,
#main .brews-grid .brew-card-body strong {
  color: var(--paper);
}

#main .brews-grid .brew-card-en {
  margin: 0 0 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

#main .brews-grid .brew-card-zh {
  margin: 0;
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
}

#main .brews-grid .brew-card-zh .is-name {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--f-sans);
  font-stretch: 68%;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 1;
}

#main .brews-grid .brew-card-tagline {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

#main .brews-grid .brew-card-specs {
  display: flex;
  gap: 1.25rem;
  margin: 1rem 0 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

#main .brews-grid .brew-card-specs strong {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 400;
}

#main .brews-grid .brew-card-link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

#main .brews-grid .brew-card-link::after {
  content: " →";
}

/* ============================================================
   Brew detail page — full-colour hero with the bottle
   ============================================================ */

#main.brew-detail {
  --bg: var(--ink);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

body:has([data-beer="macau-ipa"]) #main.brew-detail { --bg: #6fa57c; }
body:has([data-beer="macau-ale"]) #main.brew-detail { --bg: #2f5fc4; }
body:has([data-beer="egg-tart-hazy"]) #main.brew-detail { --bg: #e48a56; }
body:has([data-beer="plum-cocktail"]) #main.brew-detail { --bg: #3f9aa6; }
body:has([data-beer="magnolia-tea"]) #main.brew-detail { --bg: #6f7d4f; }

#main.brew-detail .brew-hero {
  position: relative;
  max-width: none;
  margin: 1.5rem 0 0;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: min(80svh, 46rem);
  background: var(--bg);
  border: 0;
  border-radius: 0;
  color: var(--paper);
  overflow: hidden;
}

#main.brew-detail .brew-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tile-lattice) 0 0 / 110px;
  mix-blend-mode: soft-light;
  opacity: 0.1;
  pointer-events: none;
}

#main.brew-detail .brew-hero p,
#main.brew-detail .brew-hero h1,
#main.brew-detail .brew-hero span {
  color: var(--paper);
}

#main.brew-detail .brew-card-num {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: -0.15em;
  z-index: 0;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(10rem, 26vw, 24rem);
  line-height: 0.8;
  color: rgba(0, 0, 0, 0.1);
}

#main.brew-detail .brew-hero-counter {
  position: absolute;
  left: clamp(1rem, 5vw, 5rem);
  top: 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

#main.brew-detail .brew-card-body {
  position: relative;
  z-index: 2;
}

#main.brew-detail .brew-hero-en {
  margin: 0 0 1rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#main.brew-detail .brew-hero-en span + span::before {
  content: " · ";
}

#main.brew-detail .brew-card-en.is-name {
  margin: 0;
  font-family: var(--f-sans);
  font-stretch: 68%;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.86;
  text-transform: uppercase;
}

#main.brew-detail .brew-hero-title {
  margin: 0.6rem 0 0;
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: 0.06em;
  color: var(--paper);
}

#main.brew-detail .brew-hero-tagline {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
}

#main.brew-detail .brew-hero-media {
  position: relative;
  z-index: 1;
  height: min(70svh, 40rem);
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}

#main.brew-detail .brew-hero-media img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: rotate(-12deg);
  filter: drop-shadow(18px 28px 22px rgba(0, 0, 0, 0.3));
  animation: fe-bottle-in 1.1s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes fe-bottle-in {
  from { transform: translateY(40%) rotate(30deg); opacity: 0; }
  to { transform: rotate(-12deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #main.brew-detail .brew-hero-media img { animation: none; }
}

/* Specs strip */
#main .brew-specs {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: transparent;
  border: 0;
}

#main .brew-spec-cell {
  padding: 1.75rem 1.5rem 1.75rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
}

#main .brew-spec-cell + .brew-spec-cell {
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}

#main .brew-spec-value {
  margin: 0.25rem 0;
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
}

/* Long-form sections */
#main .brew-section {
  max-width: 80rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 1rem 3rem;
  background: transparent;
  border: 0;
}

#main .brew-section-rule {
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
}

#main .brew-section-title {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

#main .brew-section-body p {
  margin: 0 0 1rem;
  max-width: 44rem;
  font-size: 1.02rem;
  line-height: 1.95;
}

#main .brew-flavors,
#main .brew-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main .brew-flavor,
#main .brew-ingredient {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--f-zh-serif);
  font-size: 1.05rem;
  color: var(--text);
}

#main .brew-flavor::before,
#main .brew-ingredient::before {
  content: "✦ ";
  color: var(--ink);
}

/* ============================================================
   About extras (philosophy rows, awards, quote, photos)
   ============================================================ */

#main .fe-section {
  background: transparent;
  color: var(--text);
}

#main .fe-built-to-adapt {
  max-width: 80rem;
  margin: clamp(3rem, 6vw, 5rem) auto;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  text-align: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

#main .fe-built-to-adapt-quote {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.55;
}

#main .fe-philosophy-row,
#main .fe-awards-row {
  border-color: var(--rule);
}

#main .fe-philosophy-row-title,
#main .fe-awards-name {
  color: var(--ink);
  font-family: var(--f-zh-serif);
}

#main .fe-philosophy-row-desc,
#main .fe-awards-tags {
  color: var(--text);
}

#main .fe-awards-num {
  font-family: var(--f-mono);
  color: var(--ink);
}

#main .fe-parallax,
#main .fe-img-reveal,
#main .fe-img-placeholder {
  background: var(--paper-2);
  border-radius: 0;
}

/* Stub pages (story / tour / info / subscribe …) */
#main.fe-subpage-card {
  border-bottom: 0;
}

#main .fe-subpage-line {
  max-width: 40rem;
  margin-top: 1.25rem;
  line-height: 1.9;
  color: var(--text);
}

/* ============================================================
   Contact form
   ============================================================ */

#main .fe-contact-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 5rem);
  gap: clamp(2rem, 5vw, 5rem);
}

#main .fe-contact-info-heading {
  color: var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

#main .fe-contact-info-lead {
  color: var(--text);
  line-height: 1.9;
}

#main .fe-contact-channel {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  background: transparent;
  border-radius: 0;
}

#main .fe-contact-channel-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

#main .fe-contact-channel-link {
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 1.35rem;
}

#main .fe-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 0;
}

#main .fe-form-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

#main .fe-form-input,
#main .fe-form-select,
#main .fe-form-textarea {
  background: var(--paper);
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--f-zh-serif);
  font-size: 1rem;
}

#main .fe-form-input:focus,
#main .fe-form-select:focus,
#main .fe-form-textarea:focus {
  outline: none;
  border-bottom-width: 2px;
  background: #fff;
}

#main .fe-form-submit {
  margin-top: 1rem;
  cursor: pointer;
}

#main .fe-form-status {
  color: var(--ink);
}

/* ============================================================
   Gallery
   ============================================================ */

#main .fe-gallery-masonry {
  max-width: 80rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 0 clamp(1rem, 5vw, 5rem);
}

#main .fe-gallery-masonry-item {
  border-radius: 0;
  background: var(--paper-2);
}

/* ============================================================
   Legal (terms / privacy)
   ============================================================ */

#main .fe-legal-content {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 5vw, 2rem) clamp(4rem, 8vw, 6rem);
  color: var(--text);
}

#main .fe-legal-content h2,
#main .fe-legal-section h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: 1.3rem;
}

#main .fe-legal-content p,
#main .fe-legal-content li {
  line-height: 1.95;
  color: var(--text);
}

#main .fe-legal-note {
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  color: var(--text);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  #main.brew-detail .brew-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3.5rem;
  }

  #main.brew-detail .brew-hero-media {
    height: 52svh;
  }

  #main .brew-section {
    grid-template-columns: 1fr;
  }

  #main .oem-section-head {
    grid-template-columns: 1fr;
  }

  #main .brews-hero-counter {
    position: static;
    align-items: flex-start;
    margin-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  #main .fe-subpage-facts > * + *,
  #main .fe-subpage-card-row > * + *,
  #main .fe-subpage-values > * + *,
  #main .collab-overview-card + .collab-overview-card,
  #main .oem-step + .oem-step {
    border-left: 0;
  }

  #main .brew-specs {
    grid-template-columns: 1fr 1fr;
  }

  #main .brew-spec-cell:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
  }

  #main .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Detail hero shows the big English name in both languages (like the
   homepage reel); chrome.css hides [lang="en"] with !important. */
html[lang] #main.brew-detail .brew-hero .brew-card-en.is-name {
  display: block !important;
}

/* ============================================================
   Gallery grids (real photos) + reveal overlay off
   ============================================================ */

/* The reveal curtain was animated by GSAP, which subpages never
   load — it just covered the photos. */
#main .fe-img-reveal {
  display: none;
}

#main .fe-gallery-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

#main .fe-gallery-hero-grid .fe-parallax {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#main .fe-gallery-hero-grid .fe-parallax:first-child {
  border-radius: 999px 999px 0 0;
}

#main .fe-gallery-hero-grid img,
#main .fe-gallery-masonry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}

#main .fe-gallery-hero-grid .fe-parallax:hover img,
#main .fe-gallery-masonry-item:hover img {
  transform: scale(1.04);
}

#main .fe-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 14rem;
  grid-auto-flow: dense;
  gap: 0.75rem;
}

#main .fe-gallery-masonry-item {
  margin: 0;
  overflow: hidden;
}

#main .fe-gallery-masonry-item--tall {
  grid-row: span 2;
}

/* Event cards without a photo: text card with a hairline */
#main .event-card:not(:has(.event-card-media)) .event-card-body {
  margin-top: 0;
  padding-top: 1.25rem;
}

#main .event-card:not(:has(.event-card-media)) {
  min-height: 9rem;
}

@media (max-width: 767px) {
  #main .fe-gallery-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #main .fe-gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 11rem;
  }
}

/* Filled-in story / tour / info / subscribe pages */
#main .fe-subpage-cta-wrap {
  max-width: 80rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto clamp(4rem, 8vw, 6rem);
  padding: 0 clamp(1rem, 5vw, 5rem);
}

#main .fe-subpage-qr {
  width: 9rem;
  height: 9rem;
  margin-top: 0.75rem;
  border: 1px solid var(--rule);
  mix-blend-mode: multiply;
}

#main .fe-subpage-fact-value a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* Legal pages: the old navy card (+ inline padding) becomes a plain
   reading column on paper. */
#main.fe-legal {
  max-width: none;
  margin: 0;
  padding: var(--fe-nav-h, 4.5rem) 0 0 !important; /* beats inline style */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
}

#main.fe-legal .fe-legal-hero {
  max-width: 46rem;
  padding-left: clamp(1rem, 5vw, 2rem);
  padding-right: clamp(1rem, 5vw, 2rem);
}

#main.fe-legal .fe-legal-hero::after {
  left: clamp(1rem, 5vw, 2rem);
  right: clamp(1rem, 5vw, 2rem);
}

/* ============================================================
   銷售地點 / Where to Buy (subpage/where-to-buy, _chrome/where-to-buy.js)
   ============================================================ */
#main .fe-wtb-groups,
#main .fe-wtb-chains {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: border-box;
}
#main .fe-wtb-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 64px);
}
#main .fe-wtb-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--f-zh-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
}
html[lang="en"] #main .fe-wtb-group-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
#main .fe-wtb-count {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
#main .fe-wtb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main .fe-wtb-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
  color: var(--ink-deep);
}
#main .fe-wtb-chains {
  margin-top: clamp(48px, 7vw, 88px);
}
#main .fe-wtb-chain {
  border-bottom: 1px solid var(--rule);
}
#main .fe-wtb-chain summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  color: var(--ink-deep);
}
#main .fe-wtb-chain summary::-webkit-details-marker {
  display: none;
}
#main .fe-wtb-chain summary::after {
  content: "+";
  font-family: var(--f-mono);
  color: var(--ink);
  margin-left: 8px;
}
#main .fe-wtb-chain[open] summary::after {
  content: "−";
}
#main .fe-wtb-chain summary .fe-wtb-count {
  margin-left: auto;
}
#main .fe-wtb-branches {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#main .fe-wtb-branches li {
  padding: 5px 12px;
  border: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--paper-2);
}

/* ============================================================
   Gallery = events page (_chrome/gallery-events.js)
   ============================================================ */
#main .fe-gev-year,
#main .fe-gev-past,
#main .fe-gev-everyday {
  max-width: 80rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: border-box;
}
#main .fe-gev-everyday .fe-gallery-masonry {
  margin-top: 0;
  padding: 0;
}
#main .fe-gev-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--ink);
}
html[lang="en"] #main .fe-gev-heading {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
#main .fe-gev-num {
  font-family: var(--f-sans);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 1.6em;
  line-height: 1;
}
#main .fe-gev-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main .fe-gev-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}
#main .fe-gev-date {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
#main .fe-gev-name {
  font-size: 1rem;
  color: var(--ink-deep);
}
#main .fe-gev-thumb {
  width: 5.5rem;
  height: 4rem;
  object-fit: cover;
}
#main .fe-gev-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}
#main .fe-gev-strip figure,
#main .fe-gev-grid figure {
  margin: 0;
}
#main .fe-gev-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
#main .fe-gev-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
#main .fe-gev-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
#main .fe-gev-grid figcaption {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-deep);
}
@media (max-width: 640px) {
  #main .fe-gev-row {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
  #main .fe-gev-thumb {
    display: none;
  }
  #main .fe-gev-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   OEM page (subpage/collaboration/oem) — Comments V3 rebuild
   ============================================================ */
#main .fe-oem-why,
#main .fe-oem-models,
#main .fe-oem-cases,
#main .fe-oem-matrix,
#main .fe-oem-cta {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: border-box;
}

/* Hero: copy + statue in front of the sky blob */
#main .fe-oem-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}
#main .fe-oem-graffiti {
  position: absolute;
  z-index: 3;
  left: -8%;
  top: 44%;
  margin: 0;
  font-family: "Sedgwick Ave Display", var(--f-sans);
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.95;
  color: #e4452e;
  transform: rotate(-9deg);
  text-shadow: 2px 2px 0 var(--paper), 4px 5px 0 rgba(20, 29, 99, 0.2);
  pointer-events: none;
}
#main .fe-oem-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}
#main .fe-oem-link {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
#main .fe-oem-hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
}
#main .fe-oem-hero-art img {
  position: absolute;
  height: auto;
  pointer-events: none;
}
#main .fe-oem-sky {
  left: -14%;
  top: 6%;
  width: 128%;
}
#main .fe-oem-cloud {
  right: -12%;
  top: 0;
  width: 46%;
  animation: fe-oem-drift 14s ease-in-out infinite;
}
#main .fe-oem-statue {
  left: 50%;
  bottom: 0;
  height: 96% !important;
  width: auto;
  translate: -50% 0;
  filter: drop-shadow(0 24px 30px rgba(20, 29, 99, 0.25));
}
#main .fe-oem-stamp {
  /* big seal under the graffiti tag, left of the statue */
  z-index: 4;
  left: -6%;
  bottom: 3%;
  width: 46%;
  transform: rotate(-6deg);
  mix-blend-mode: multiply;
  opacity: 0.95;
}
@keyframes fe-oem-drift {
  50% { margin-right: 6%; }
}

/* Why — 3 × 2 grid, no empty cells */
#main .fe-oem-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#main .fe-oem-why > div {
  padding: 1.5rem 1.4rem 1.6rem;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--rule);
}
#main .fe-oem-why > div:nth-child(3n) {
  border-right: 0;
}
#main .fe-oem-why-n {
  margin: 0 0 0.6rem;
  font-family: var(--f-sans);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.25;
}
#main .fe-oem-why h3 {
  margin: 0 0 0.4rem;
  font-family: var(--f-zh-serif);
  font-size: 1.15rem;
  color: var(--ink);
}
#main .fe-oem-why p:not(.fe-oem-why-n) {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-deep);
}

/* Models — tabs + horizontal flow timeline */
#main .fe-oem-tablist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
}
#main .fe-oem-tablist [role="tab"] {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 0;
  border-right: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
#main .fe-oem-tablist [role="tab"]:last-child {
  border-right: 0;
}
#main .fe-oem-tablist [role="tab"][aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}
#main .fe-oem-tablist .fe-oem-model-key {
  grid-row: span 2;
}
#main .fe-oem-model-key {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.3rem;
}
#main .fe-oem-tab-kicker {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
#main .fe-oem-tab-name {
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: 1.1rem;
}
#main .fe-oem-model {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}
#main .fe-oem-model-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
#main .fe-oem-model h2 {
  margin: 0 0 0.4rem;
  font-family: var(--f-zh-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--ink);
}
#main .fe-oem-model-head p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-deep);
}
#main .fe-oem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}
#main .fe-oem-tags li {
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
}
#main .fe-oem-total {
  flex: none;
  margin: 0;
  text-align: right;
  font-family: var(--f-sans);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}
#main .fe-oem-total small {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
/* the flow: numbered nodes on one line, arrows between, day pills */
#main .fe-oem-flow {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  counter-reset: none;
}
#main .fe-oem-flow li {
  position: relative;
  padding: 0 0.8rem 0 0;
}
#main .fe-oem-flow li::before {
  /* connector line from this node to the next */
  content: "";
  position: absolute;
  left: 2.6rem;
  right: 0.3rem;
  top: 1.3rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 13px);
}
#main .fe-oem-flow li::after {
  content: "›";
  position: absolute;
  right: -0.15rem;
  top: 0.45rem;
  font-family: var(--f-mono);
  font-size: 1.3rem;
  color: var(--ink);
}
#main .fe-oem-flow li:last-child::before,
#main .fe-oem-flow li:last-child::after {
  display: none;
}
#main .fe-oem-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink);
}
#main .fe-oem-flow li:last-child .fe-oem-node {
  background: var(--ink);
  color: var(--paper);
}
#main .fe-oem-flow h4 {
  margin: 0.9rem 0 0.25rem;
  font-size: 1rem;
  color: var(--ink-deep);
}
#main .fe-oem-flow p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(20, 29, 99, 0.72);
}
#main .fe-oem-time {
  position: absolute;
  z-index: 2;
  left: 3.1rem;
  top: 0.62rem;
  padding: 1px 8px;
  background: #f5c84c;
  color: var(--ink-deep);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  white-space: nowrap;
}
#main .fe-oem-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
#main .fe-oem-uses {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
#main .fe-oem-sub {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
#main .fe-oem-uses ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#main .fe-oem-uses li {
  padding: 3px 10px;
  border: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-deep);
}

/* Cases — dense 3-col grid, no gaps */
#main .fe-oem-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.8rem, 1.6vw, 1.25rem);
}
#main .fe-oem-case {
  margin: 0;
  display: flex;
  flex-direction: column;
}
#main .fe-oem-case--andaz {
  grid-column: span 2;
  grid-row: span 2;
}
#main .fe-oem-case-pics {
  flex: 1;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
}
#main .fe-oem-case[data-n="2"] .fe-oem-case-pics,
#main .fe-oem-case[data-n="4"] .fe-oem-case-pics {
  --cols: 2;
}
#main .fe-oem-case-pics img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}
#main .fe-oem-case--andaz .fe-oem-case-pics img {
  aspect-ratio: auto;
}
#main .fe-oem-case--shot .fe-oem-case-pics {
  padding: 1.2rem 1rem 0.8rem;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(20, 29, 99, 0.16), transparent 60%),
    var(--paper-2);
}
#main .fe-oem-case-pics img.is-shot {
  object-fit: contain;
  background: none;
  filter: drop-shadow(0 12px 14px rgba(20, 29, 99, 0.25));
}
#main .fe-oem-case figcaption {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.2rem;
}
#main .fe-oem-case figcaption strong {
  font-size: 1rem;
  color: var(--ink);
}
#main .fe-oem-case figcaption span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Products & formats — product shots + drawn packs */
#main .fe-oem-matrix-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
#main .fe-oem-matrix-types > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
}
#main .fe-oem-matrix-types img {
  grid-row: span 2;
  width: 100%;
  height: 8rem;
  object-fit: contain;
}
#main .fe-oem-matrix-types h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}
#main .fe-oem-matrix-types p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-deep);
}
#main .fe-oem-packs {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--rule);
}
#main .fe-oem-packs li {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1rem 0.5rem 0.9rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}
#main .fe-oem-packs li:last-child {
  border-right: 0;
}
#main .fe-oem-pack-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 7.5rem;
  margin-bottom: 0.4rem;
}
#main .fe-oem-pack-art img {
  max-height: 100%;
  width: auto;
}
#main .fe-oem-packs li:nth-child(1) .fe-oem-pack-art img { height: 68%; }
#main .fe-oem-packs li:nth-child(2) .fe-oem-pack-art img { height: 80%; }
#main .fe-oem-packs li:nth-child(3) .fe-oem-pack-art img { height: 100%; }
#main .fe-oem-packs li:nth-child(4) .fe-oem-pack-art img { height: 78%; }
/* cans: same width, so the 500 ml one is simply taller */
#main .fe-oem-packs li:nth-child(5) .fe-oem-pack-art img,
#main .fe-oem-packs li:nth-child(6) .fe-oem-pack-art img {
  width: 2.7rem;
  height: auto;
}
#main .fe-oem-packs li:nth-child(5) .fe-oem-pack-art img { width: 3.1rem; }
#main .fe-oem-packs li:nth-child(7) .fe-oem-pack-art img { height: 86%; }
#main .fe-oem-packs strong {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
#main .fe-oem-packs li > span:last-child {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* CTA over the beer-pour loop */
#main .fe-oem-cta {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
  padding: 0;
  overflow: hidden;
  max-width: calc(80rem - 2 * clamp(1rem, 5vw, 5rem));
  width: calc(100% - 2 * clamp(1rem, 5vw, 5rem));
}
#main .fe-oem-cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#main .fe-oem-cta-inner {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  text-align: center;
  background: linear-gradient(rgba(20, 29, 99, 0.72), rgba(20, 29, 99, 0.82));
}
#main .fe-oem-cta-title {
  max-width: 22em;
  margin: 0 auto 1.75rem;
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  color: var(--paper);
}
html[lang="en"] #main .fe-oem-cta-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
#main .fe-oem-cta .fe-subpage-cta-btn {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 860px) {
  #main .fe-oem-hero {
    grid-template-columns: 1fr;
  }
  #main .fe-oem-hero-art {
    max-width: 24rem;
    width: 100%;
    margin: 0 auto;
  }
  #main .fe-oem-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #main .fe-oem-why > div:nth-child(3n) {
    border-right: 1px solid var(--rule);
  }
  #main .fe-oem-why > div:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 640px) {
  #main .fe-oem-tablist {
    grid-template-columns: 1fr;
  }
  #main .fe-oem-tablist [role="tab"] {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}
@media (max-width: 860px) {
  /* timeline turns vertical */
  #main .fe-oem-flow {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  #main .fe-oem-flow li {
    padding: 0 0 0 3.6rem;
    min-height: 2.6rem;
  }
  #main .fe-oem-node {
    position: absolute;
    left: 0;
    top: 0;
  }
  #main .fe-oem-flow li::before {
    left: 1.25rem;
    right: auto;
    top: 2.6rem;
    bottom: -1.25rem;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 13px);
  }
  #main .fe-oem-flow li::after {
    display: none;
  }
  #main .fe-oem-flow h4 {
    margin-top: 0.3rem;
  }
  #main .fe-oem-time {
    position: static;
    display: inline-block;
    margin-top: 0.4rem;
  }
  #main .fe-oem-model-head {
    flex-direction: column;
    gap: 1rem;
  }
  #main .fe-oem-total {
    text-align: left;
  }
  #main .fe-oem-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #main .fe-oem-case--andaz {
    grid-row: auto;
  }
  #main .fe-oem-case--andaz .fe-oem-case-pics {
    --cols: 4 !important;
  }
  #main .fe-oem-case--andaz .fe-oem-case-pics img {
    aspect-ratio: 3 / 4;
  }
  #main .fe-oem-matrix-types {
    grid-template-columns: 1fr;
  }
  #main .fe-oem-packs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #main .fe-oem-packs li:nth-child(4n) {
    border-right: 0;
  }
  #main .fe-oem-packs li:nth-child(-n + 4) {
    border-bottom: 1px solid var(--rule);
  }
}

/* ============================================================
   Our Story — founder + University of Macau
   ============================================================ */
#main .fe-founder {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
#main .fe-founder-media {
  margin: 0;
}
#main .fe-founder-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}
#main .fe-founder-media figcaption {
  margin-top: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
#main .fe-founder-quote {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--ink);
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink);
}
html[lang="en"] #main .fe-founder-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}
#main .fe-founder-copy > p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: var(--ink-deep);
}
#main .fe-founder-sign {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.5rem !important;
}
#main .fe-founder-sign strong {
  font-family: var(--f-zh-serif);
  font-size: 1.2rem;
  color: var(--ink);
}
#main .fe-founder-sign > span,
#main .fe-founder-sign strong + span {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  #main .fe-founder {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Brewery tour — photos, ink sketches, certificates
   ============================================================ */
#main .fe-tour-photos,
#main .fe-tour-certs {
  position: relative;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: border-box;
}
#main .fe-tour-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
#main .fe-tour-photo {
  margin: 0;
}
#main .fe-tour-photo--wide {
  grid-column: 1 / -1;
}
#main .fe-tour-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
#main .fe-tour-photo--wide img {
  aspect-ratio: 21 / 9;
}
#main .fe-tour-photo figcaption {
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
#main .fe-tour-certs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}
#main .fe-tour-certs li a {
  display: block;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--rule);
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  transition: transform 0.25s;
}
#main .fe-tour-certs li a:hover {
  transform: translateY(-3px);
}
#main .fe-tour-certs img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}
#main .fe-tour-certs li span {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-deep);
}
#main .fe-tour-certs-lead {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  line-height: 1.8;
  color: var(--ink-deep);
}
@media (max-width: 640px) {
  #main .fe-tour-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #main .fe-tour-certs ul {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Contact (no form) — ink sketches on a blue & yellow azulejo panel
   ============================================================ */
#main .fe-contact-v2 {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 6rem);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
#main .fe-contact-v2 .fe-subpage-hero-heading {
  margin-top: 0.75rem;
}
#main .fe-contact-v2-list {
  margin: 2rem 0 0;
  border-top: 2px solid var(--ink);
}
#main .fe-contact-v2-list > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
#main .fe-contact-v2-list dt {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.2rem;
}
#main .fe-contact-v2-list dd {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-deep);
}
#main .fe-contact-v2-list a {
  color: var(--ink);
}
#main .fe-contact-v2-actions {
  margin-top: 2rem;
}
#main .fe-contact-v2-art {
  margin: 0;
}
#main .fe-contact-v2-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: clamp(18px, 3vw, 34px);
  background: url("../img/azulejo/pack-05.webp") center / 300px auto;
  box-sizing: border-box;
}
#main .fe-contact-v2-panel::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 3vw, 34px);
  background: var(--paper);
  outline: 1px solid var(--ink);
  outline-offset: -8px;
}
/* colour painting fills the frame (Comments V4), slow drift */
#main .fe-contact-v2-painting {
  position: absolute;
  z-index: 1;
  inset: clamp(18px, 3vw, 34px);
  width: calc(100% - 2 * clamp(18px, 3vw, 34px));
  height: calc(100% - 2 * clamp(18px, 3vw, 34px));
  object-fit: cover;
  outline: 1px solid var(--ink);
  outline-offset: -8px;
  animation: fe-contact-drift 22s ease-in-out infinite alternate;
}
@keyframes fe-contact-drift {
  from { object-position: 50% 35%; }
  to { object-position: 50% 65%; }
}
@media (prefers-reduced-motion: reduce) {
  #main .fe-contact-v2-painting { animation: none; }
}
#main .fe-contact-v2-art figcaption {
  margin-top: 0.75rem;
  text-align: right;
}
@media (max-width: 860px) {
  #main .fe-contact-v2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Narrow page column (tour page) — content at 68rem; full-bleed
   sections (toile hero / bands) opt out below.
   ============================================================ */
#main.fe-narrow {
  --col: 68rem;
  position: relative;
}
#main.fe-narrow > * {
  max-width: var(--col);
}

/* Tour hero (Comments V5) — 3:1 ink banner, title in the open sky,
   colour version painted through a blob that follows the cursor
   (_chrome/tour-hero.js), right-hand pan swings, swallows fly by */
@property --s {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
@property --o {
  /* eye openness: 0 = shut, 1 = open */
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
#main.fe-narrow > .fe-th {
  max-width: none;
}
#main .fe-th {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
#main .fe-th-stage {
  --x: 50%;
  --y: 50%;
  --s: 0px;
  position: relative;
  aspect-ratio: 1999 / 667;
  overflow: hidden;
  --o: 0;
  transition: --o 0.38s cubic-bezier(0.3, 0.7, 0.3, 1);
}
/* open eye: blinks now and then while it rests */
#main .fe-th-stage.is-looking {
  --o: 1;
  animation: fe-th-blink 5.5s 1.2s infinite;
}
@keyframes fe-th-blink {
  0%, 93%, 100% { --o: 1; }
  96% { --o: 0.06; }
}
#main .fe-th-stage > img {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
#main .fe-th-ink,
#main .fe-th-colour {
  inset: 0;
  width: 100%;
  height: 100%;
}
#main .fe-th-colour {
  z-index: 3;
  -webkit-mask: url("../img/hero-tour/eye-mask.png") no-repeat;
  mask: url("../img/hero-tour/eye-mask.png") no-repeat;
  /* feathered almond; its height follows --o so it opens and blinks */
  -webkit-mask-size: var(--s) calc(var(--s) * 0.5 * var(--o));
  mask-size: var(--s) calc(var(--s) * 0.5 * var(--o));
  -webkit-mask-position: calc(var(--x) - var(--s) / 2) calc(var(--y) - var(--s) * 0.25 * var(--o));
  mask-position: calc(var(--x) - var(--s) / 2) calc(var(--y) - var(--s) * 0.25 * var(--o));
}
/* right-hand pan: cut from the banner, hangs from its ring */
#main .fe-th-pan {
  z-index: 2;
  left: 94.05%;
  top: 15.89%;
  width: 4.35%;
  height: auto;
  transform-origin: 47.1% 5%;
  animation: fe-th-swing 4.2s ease-in-out infinite;
}
@keyframes fe-th-swing {
  0%, 100% { rotate: -5deg; }
  50% { rotate: 5deg; }
}
/* swallows crossing the sky */
#main .fe-th-bird {
  z-index: 4;
  left: 0;
  height: auto;
  offset-rotate: 0deg;
}
#main .fe-th-bird--1 { top: 14%; width: clamp(34px, 3.6vw, 64px); animation: fe-th-fly 19s linear infinite; }
#main .fe-th-bird--2 { top: 26%; width: clamp(24px, 2.4vw, 44px); animation: fe-th-fly 25s linear infinite -9s; }
#main .fe-th-bird--3 { top: 8%; width: clamp(20px, 2vw, 36px); animation: fe-th-fly-back 31s linear infinite -4s; }
@keyframes fe-th-fly {
  0% { translate: -12vw 0; }
  25% { translate: 22vw -2.5vw; }
  50% { translate: 50vw 1vw; }
  75% { translate: 78vw -2vw; }
  100% { translate: 112vw 0.5vw; }
}
@keyframes fe-th-fly-back {
  0% { translate: 112vw 0; transform: scaleX(-1); }
  50% { translate: 50vw 2vw; transform: scaleX(-1); }
  100% { translate: -12vw -1vw; transform: scaleX(-1); }
}
#main .fe-th-copy {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 8%;
  width: min(44%, 40rem);
  translate: -50% 0;
  text-align: center;
  pointer-events: none;
}
#main .fe-th-title {
  margin: 0.5rem 0 0.7rem;
  font-family: var(--f-zh-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.7vw, 3.4rem);
  line-height: 1.15;
  color: var(--ink);
  text-shadow: 0 0 18px var(--paper), 0 0 6px var(--paper);
}
#main .fe-th-title em {
  font-family: var(--f-serif);
  font-weight: 400;
}
html[lang="en"] #main .fe-th-title {
  font-family: var(--f-serif);
  font-weight: 400;
}
#main .fe-th-sub {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  #main .fe-th-stage.is-looking { animation: none; }
  #main .fe-th-pan,
  #main .fe-th-bird { animation: none; }
  #main .fe-th-bird { display: none; }
}
/* below 1100px the open sky is too short for the title: it moves
   above the banner (which keeps its full width, so the scale and the
   statue stay in frame) */
@media (max-width: 1100px) {
  #main .fe-th-stage {
    aspect-ratio: auto;
    padding-top: calc(var(--th-copy, 9rem));
  }
  #main .fe-th-stage::before {
    content: "";
    display: block;
    aspect-ratio: 1999 / 667;
  }
  #main .fe-th-ink,
  #main .fe-th-colour {
    inset: auto 0 0 0;
    height: auto;
  }
  #main .fe-th-pan {
    top: calc(var(--th-copy, 9rem) + (100% - var(--th-copy, 9rem)) * 0.1589);
  }
  #main .fe-th-copy {
    top: 1.5rem;
    width: min(92%, 40rem);
  }
  #main .fe-th-title {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
  }
}
@media (max-width: 760px) {
  #main .fe-th-colour,
  #main .fe-th-pan,
  #main .fe-th-bird {
    display: none;
  }
  #main .fe-th-stage {
    padding-top: 8.5rem;
  }
}

/* visit button right under the equipment section */
#main .fe-tour-visit {
  max-width: var(--col, 80rem);
  margin: 1.75rem auto 0;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: border-box;
}


/* Process video strip */
#main .fe-tour-videos {
  max-width: var(--col, 80rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
#main .fe-tour-videos figure {
  margin: 0;
}
#main .fe-tour-videos video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
}
#main .fe-tour-videos figcaption {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-deep);
}
#main .fe-tour-step {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}
#main .fe-tour-certs-h {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  font-family: var(--f-zh-serif);
  font-size: 1.1rem;
  color: var(--ink);
}
#main .fe-tour-certs-h small {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  #main .fe-tour-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Our Story — founder portrait inset + interview video */
#main .fe-founder-media {
  position: relative;
}
#main .fe-founder-portrait {
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: 34% !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover;
  border-radius: 0 !important;
  border: 6px solid var(--paper);
  box-shadow: 0 18px 32px -14px rgba(20, 29, 99, 0.45);
  transform: rotate(3deg);
}
#main .fe-interview {
  /* 720p frame: 1280 × 720 at most */
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  box-sizing: content-box;
}
#main .fe-yt,
#main .fe-yt-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
#main .fe-yt {
  position: relative;
  padding: 0;
  background: var(--ink-deep);
  cursor: pointer;
  overflow: hidden;
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}
#main .fe-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.6s;
}
#main .fe-yt:hover img {
  opacity: 1;
  transform: scale(1.03);
}
#main .fe-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5rem;
  height: 5rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
#main .fe-yt-play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.35rem;
  border-color: transparent transparent transparent var(--ink);
}
#main .fe-interview-cap {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--ink-deep);
}

/* Where to Buy hero — Guia lighthouse painting, clouds drift past
   the painting's edges, a swallow crosses */
#main .fe-wtb-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
#main .fe-wtb-hero > div:first-child {
  position: relative;
  z-index: 5;
}
#main .fe-wtb-art {
  position: relative;
  aspect-ratio: 1.25;
}
#main .fe-wtb-art img {
  position: absolute;
  height: auto;
  pointer-events: none;
}
#main .fe-wtb-guia {
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  filter: drop-shadow(0 18px 24px rgba(20, 29, 99, 0.18));
}
#main .fe-wtb-cloud { z-index: 1; }
#main .fe-wtb-cloud--1 { left: -4%; top: -4%; width: 78%; animation: fe-wtb-drift 26s ease-in-out infinite; }
#main .fe-wtb-cloud--2 { right: -16%; top: 6%; width: 48%; animation: fe-wtb-drift 20s ease-in-out infinite reverse; }
#main .fe-wtb-cloud--3 { z-index: 3; right: 18%; top: 22%; width: 30%; opacity: 0.9; animation: fe-wtb-drift 16s ease-in-out infinite; }
#main .fe-wtb-swallow {
  z-index: 4;
  left: 8%;
  top: 4%;
  width: 18%;
  animation: fe-wtb-fly 12s ease-in-out infinite;
}
@keyframes fe-wtb-drift {
  50% { translate: 9% 0; }
}
@keyframes fe-wtb-fly {
  0% { translate: 0 0; rotate: -6deg; }
  50% { translate: 160% 28%; rotate: 6deg; }
  100% { translate: 0 0; rotate: -6deg; }
}
@media (prefers-reduced-motion: reduce) {
  #main .fe-wtb-art img { animation: none; }
}
@media (max-width: 860px) {
  #main .fe-wtb-hero {
    grid-template-columns: 1fr;
  }
}
#main .fe-wtb-still {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 1.5rem auto 0;
}

/* Gallery hero — A-Ma Temple painting beside the title */
#main .fe-gallery-hero2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}
#main .fe-gallery-hero-art {
  width: 100%;
  max-width: 22rem;
  height: auto;
  justify-self: end;
  transform: rotate(2deg);
  filter: drop-shadow(0 18px 26px rgba(20, 29, 99, 0.2));
}
@media (max-width: 760px) {
  #main .fe-gallery-hero2 {
    grid-template-columns: 1fr;
  }
  #main .fe-gallery-hero-art {
    justify-self: center;
    max-width: 15rem;
  }
}


/* breathing room before the footer on the tour page */
#main.fe-tour {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* bigger visit button, under the intro */
#main .fe-tour-intro .fe-tour-visit--big {
  margin: 2rem 0 0;
  padding: 0;
}
#main .fe-tour-visit--big .fe-subpage-cta-btn {
  padding: 1.15rem 2.4rem;
  font-size: 1.05rem;
}
/* brewhouse drawing beside the equipment heading */
#main .fe-tour-equip-art {
  display: block;
  width: min(30rem, 70%);
  height: auto;
  margin: clamp(2.5rem, 5vw, 4rem) auto -1.5rem;
}
