/* BGF Cafe: the about page only (body class .bgf-about). Generated from the demo stylesheet by tools/split-css.py; edit freely. */
/* 2. Story chapters: pinned photo + scrolling chapters */
:where(.bgf-about) .achapters__heading { margin: 0 0 clamp(2rem, 5vw, 3.5rem); font-size: clamp(2.3rem, 5.4vw, 4.4rem); text-transform: uppercase; line-height: .98; }
:where(.bgf-about) .achapters__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  :where(.bgf-about) .achapters__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
}
:where(.bgf-about) .achapters__media { display: none; }
@media (min-width: 960px) {
  :where(.bgf-about) .achapters__media { display: block; }
}
:where(.bgf-about) .achapters__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
:where(.bgf-about) .achapters__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--navy-900); box-shadow: 0 40px 80px -40px rgba(11,26,42,.45); }
:where(.bgf-about) .achapters__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
:where(.bgf-about) .achapters__frame img.is-active { opacity: 1; transform: scale(1); }
:where(.bgf-about) .achapter { padding-block: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  :where(.bgf-about) .achapter { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; opacity: .28; transition: opacity .7s var(--ease); }
  :where(.bgf-about) .achapter.is-active { opacity: 1; }
}
:where(.bgf-about) .achapter__img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 1.25rem; }
:where(.bgf-about) .achapter__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  :where(.bgf-about) .achapter__img { display: none; }
}
:where(.bgf-about) .achapter__num { display: block; font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
:where(.bgf-about) .achapter h3 { margin: .6rem 0 1rem; font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
:where(.bgf-about) .achapter p { margin: 0; max-width: 520px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--ink); }

/* 3. Founder */
:where(.bgf-about) .afounder__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  :where(.bgf-about) .afounder__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* Founder video: placeholder frame until a YouTube / mp4 link is added in site.json */
:where(.bgf-about) .afounder__video { min-width: 0; }
:where(.bgf-about) .fvideo { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-lg, 18px); overflow: hidden; background: var(--navy); color: #fff; box-shadow: 0 30px 60px -30px rgba(11,26,42,.55); font: inherit; }
:where(.bgf-about) .fvideo--vertical { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }

/* Shorts: narrow phone-shaped column so the text gets the room */
@media (min-width: 860px) {
  :where(.bgf-about) .afounder__grid:has(.afounder__video--vertical) { grid-template-columns: minmax(0, 340px) minmax(0, 640px); justify-content: center; gap: clamp(3rem, 7vw, 6rem); }
}
@media (max-width: 859px) {
  :where(.bgf-about) .fvideo--vertical { max-width: min(300px, 80vw); }
}
:where(.bgf-about) .fvideo--soon { background: radial-gradient(120% 90% at 30% 20%, #24486a 0%, var(--navy) 55%, #0f2234 100%); }
:where(.bgf-about) .fvideo__ring { position: absolute; width: 62%; aspect-ratio: 1; color: rgba(207,166,112,.22); }
:where(.bgf-about) .fvideo__ring svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
:where(.bgf-about) .fvideo__play { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(64px, 8vw, 88px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--navy); box-shadow: 0 0 0 10px rgba(207,166,112,.18); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
:where(.bgf-about) .fvideo__play svg { width: 42%; height: 42%; fill: currentColor; margin-left: 8%; }
:where(.bgf-about) .fvideo__label { position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 1; display: flex; flex-direction: column; gap: .15rem; text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c9d4df; }
:where(.bgf-about) .fvideo__label b { color: #fff; font-size: 1rem; letter-spacing: .08em; }
:where(.bgf-about) .fvideo--soon .fvideo__play { background: rgba(207,166,112,.16); color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
:where(.bgf-about) .fvideo--yt { cursor: pointer; }
:where(.bgf-about) .fvideo--yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
:where(.bgf-about) .fvideo--yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,42,.1), rgba(11,26,42,.7)); }
:where(.bgf-about) .fvideo--yt:hover img { transform: scale(1.04); }
:where(.bgf-about) .fvideo--yt:hover .fvideo__play, :where(.bgf-about) .fvideo--yt:focus-visible .fvideo__play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(207,166,112,.25); }
:where(.bgf-about) .fvideo--playing iframe, :where(.bgf-about) .fvideo--playing video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
:where(.bgf-about) .afounder__kicker { margin: 0; font-size: .78rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
:where(.bgf-about) .afounder__name { margin: .25rem 0 1rem; font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: 1; color: var(--navy); letter-spacing: 0; text-transform: none; }

/* 4. Values: expanding photo panels */
:where(.bgf-about) .values-head { align-items: flex-end; }
:where(.bgf-about) .values-head__lead { max-width: 520px; margin: 0; color: #b9c6d3; font-size: 1.05rem; line-height: 1.7; }
:where(.bgf-about) .vpanels { display: flex; gap: clamp(.6rem, 1.2vw, 1rem); height: clamp(420px, 52vw, 560px); }
:where(.bgf-about) .vpanel { position: relative; flex: 1; min-width: 0; border-radius: 18px; overflow: hidden; isolation: isolate; cursor: pointer; outline: none; transition: flex-grow .9s var(--ease); }
:where(.bgf-about) .vpanel.is-open { flex-grow: 3; cursor: default; }
:where(.bgf-about) .vpanel:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
:where(.bgf-about) .vpanel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); transition: transform 1.4s var(--ease), filter .8s; filter: grayscale(.35) brightness(.8); }
:where(.bgf-about) .vpanel.is-open img { transform: scale(1); filter: none; }
:where(.bgf-about) .vpanel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,26,42,.05) 35%, rgba(11,26,42,.92)); }
:where(.bgf-about) .vpanel__body { position: absolute; left: clamp(1.1rem, 2.4vw, 2rem); right: clamp(1.1rem, 2.4vw, 2rem); bottom: clamp(1.1rem, 2.4vw, 2rem); color: #fff; }
:where(.bgf-about) .vpanel__num { display: block; font-size: clamp(2.6rem, 4.5vw, 4rem); font-weight: 900; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--gold); transition: color .6s var(--ease); }
:where(.bgf-about) .vpanel.is-open .vpanel__num { color: var(--gold); }
:where(.bgf-about) .vpanel h3 { margin: .45rem 0 0; color: #fff; font-size: clamp(1.3rem, 2.4vw, 2.2rem); text-transform: uppercase; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
:where(.bgf-about) .vpanel p { margin: 0; max-width: 420px; color: #dbe3ec; font-size: 1.02rem; line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(12px); transition: max-height .8s var(--ease), opacity .5s .15s, transform .8s var(--ease), margin .8s var(--ease); }
:where(.bgf-about) .vpanel.is-open p { max-height: 8rem; opacity: 1; transform: none; margin-top: .8rem; }
@media (max-width: 760px) {
  :where(.bgf-about) .vpanels { flex-direction: column; height: auto; }
  :where(.bgf-about) .vpanel, :where(.bgf-about) .vpanel.is-open { flex: none; height: 280px; }
  :where(.bgf-about) .vpanel img { filter: none; transform: none; }
  :where(.bgf-about) .vpanel p { max-height: none; opacity: 1; transform: none; margin-top: .7rem; }
  :where(.bgf-about) .vpanel .vpanel__num { color: var(--gold); }
}

/* 6. Closing: come eat with us + branch list */
:where(.bgf-about) .aclose__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  :where(.bgf-about) .aclose__grid { grid-template-columns: 1fr 1fr; }
}
:where(.bgf-about) .aclose__title { margin: 0; font-size: clamp(3rem, 8vw, 6.5rem); text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }
:where(.bgf-about) .alist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
:where(.bgf-about) .alist li { border-bottom: 1px solid var(--line); }
:where(.bgf-about) .alist a { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1.4rem 0; text-decoration: none; color: var(--navy); }
:where(.bgf-about) .alist a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
:where(.bgf-about) .alist a:hover::after, :where(.bgf-about) .alist a:focus-visible::after { transform: scaleX(1); }
:where(.bgf-about) .alist__n { font-size: .8rem; font-weight: 900; letter-spacing: .14em; color: var(--gold-text); }
:where(.bgf-about) .alist__txt b { display: block; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; transition: transform .6s var(--ease); }
:where(.bgf-about) .alist__txt small { display: block; margin-top: .2rem; color: var(--muted); font-size: .9rem; }
:where(.bgf-about) .alist a:hover .alist__txt b { transform: translateX(8px); }
:where(.bgf-about) .alist__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .5s var(--ease), border-color .5s, color .4s; }
:where(.bgf-about) .alist__arrow svg { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform .6s var(--ease); }
:where(.bgf-about) .alist a:hover .alist__arrow { background: var(--navy); border-color: var(--navy); color: #fff; }
:where(.bgf-about) .alist a:hover .alist__arrow svg { transform: none; }
