/*
 * "O nas" page (public/academy/o-nas.html): the story of BAM – Become A Master. Builds on main.css and uses its tokens only.
 */
.about-main .section { padding: 72px 0; }

/* Hero: the promise on the left, three photos on the right. */
.about-main .about-hero { padding-top: 148px; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 56px; }
.about-hero h1 { margin: 16px 0 20px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; }
.about-hero h1 em { color: var(--accent); font-style: italic; }
.about-lead { margin: 0 0 32px; max-width: 600px; color: var(--text-muted); font-size: 19px; line-height: 1.6; }
.about-hero-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1; }
.about-hero-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--bam-radius-lg); box-shadow: var(--shadow-card); }
.about-hero-photos img:first-child { grid-row: 1 / 3; }

/* Numbers */
.about-main .about-stats-section { padding-top: 0; }
.about-stats { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.about-stats div { padding: 22px 18px; display: flex; flex-direction: column-reverse; gap: 6px; border: 1px solid var(--bam-gold-line); border-radius: var(--bam-radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.about-stats dd { margin: 0; font-family: var(--bam-serif); font-size: clamp(28px, 3vw, 38px); line-height: 1; color: var(--accent); }
.about-stats dt { color: var(--text-muted); font-size: 13px; line-height: 1.4; }

/* Story */
.about-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 56px; }
.about-story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--bam-radius-lg); box-shadow: var(--shadow-card); }
.about-story h2, .about-company h2 { margin: 14px 0 20px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.about-story p { margin: 0 0 16px; color: var(--text-muted); font-size: 17px; line-height: 1.7; }

/* Team: the group photo, a word from the managing director and three moments from shops, tastings and pick-up. */
.about-team .section-heading p { max-width: 680px; margin: 12px auto 0; color: var(--text-muted); font-size: 17px; line-height: 1.6; }
.about-team-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: stretch; }
.about-team figure { margin: 0; }
.about-team-photo img { width: 100%; height: 100%; aspect-ratio: 787 / 855; object-fit: cover; border-radius: var(--bam-radius-lg); box-shadow: var(--shadow-card); }
.about-team-side { display: grid; gap: 16px; align-content: start; }
.about-director { padding: 28px; border: 1px solid var(--bam-gold-line); border-radius: var(--bam-radius-lg); background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--bam-rose) 14%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow-sm); }
.about-director-head { display: flex; align-items: center; gap: 14px; }
.about-director-head strong { display: block; font-size: 18px; }
.about-director-head span { color: var(--text-muted); font-size: 14px; }
.about-director-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--bam-gold-line); }
.about-director blockquote { margin: 18px 0 0; }
.about-director blockquote p { margin: 0; font-family: var(--bam-serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; font-style: italic; }
.about-moments { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.about-moments li:first-child { grid-column: 1 / -1; }
.about-moments li:first-child img { aspect-ratio: 16 / 7; object-position: 50% 30%; }
.about-moments img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--bam-radius-md); box-shadow: var(--shadow-sm); }
.about-moments figcaption { margin-top: 8px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }

/* Timeline: a rose line with one year per step; 2027 is the open next chapter. */
.about-timeline { position: relative; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.about-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 64px; width: 2px; background: var(--bam-gold-line); }
.about-timeline li { position: relative; padding: 0 0 28px 104px; }
.about-timeline li::before { content: ""; position: absolute; top: 8px; left: 58px; width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--bam-rose-gradient); box-shadow: 0 0 0 1px var(--bam-gold-line); }
.about-year { position: absolute; top: 2px; left: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; font-weight: 700; color: var(--accent); }
.about-timeline h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.about-timeline p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.about-timeline .about-timeline-next { padding-bottom: 0; }
.about-timeline .about-timeline-next::before { background: var(--surface); border-color: var(--accent); }
.about-timeline-next h3 { color: var(--accent); }

/* Products: one card per BAM product, a horizontal strip that snaps card by card. */
.about-product-strip { margin: 0; padding: 4px 4px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, calc((100% - 4 * 16px) / 5)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 4px; list-style: none; scrollbar-color: var(--border-strong) transparent; }
.about-product { min-width: 0; scroll-snap-align: start; }
.about-product a { height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color var(--bam-duration) ease, transform var(--bam-duration) var(--bam-ease); }
.about-product a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.about-product a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.about-product img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-product span { padding: 14px 16px 16px; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.about-products-more { margin: 24px 0 0; text-align: center; }

/* What we do: one clickable card per line of business. */
.about-cards, .about-value-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.about-card { position: relative; padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--bam-duration) ease, transform var(--bam-duration) var(--bam-ease); }
.about-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.about-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.about-card > .ti, .about-value-list .ti { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--bam-radius-md); background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.about-card h3, .about-value-list h3 { margin: 18px 0 8px; font-size: 22px; line-height: 1.2; }
.about-card-link { color: var(--text); }
.about-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.about-card-link:focus-visible { outline: none; }
.about-card p, .about-value-list p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Values */
.about-value-list li { padding: 8px 4px; }

/* Vision: one bold panel. */
.about-main .about-vision { padding: 88px 48px; }
.about-vision { width: min(calc(100% - 32px), 1280px); border: 1px solid var(--bam-gold-line); border-radius: 36px; text-align: center; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--bam-rose) 16%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow-card); }
.about-vision h2 { max-width: 860px; margin: 14px auto 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.about-vision > p { max-width: 680px; margin: 0 auto 40px; color: var(--text-muted); font-size: 18px; line-height: 1.6; }
.about-vision-list { max-width: 980px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; text-align: left; }
.about-vision-list li { padding: 22px; display: grid; gap: 6px; border-radius: var(--bam-radius-lg); background: var(--surface-subtle); }
.about-vision-list .ti { color: var(--accent); font-size: 24px; }
.about-vision-list strong { font-size: 17px; }
.about-vision-list span { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
/* The pastry map is a whole clickable card. */
.about-vision-link { position: relative; border: 1px solid transparent; transition: border-color var(--bam-duration) ease, transform var(--bam-duration) var(--bam-ease); }
.about-vision-link:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.about-vision-link:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.about-vision-link a { color: var(--text); }
.about-vision-link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.about-vision-link a:focus-visible { outline: none; }
.about-vision-link strong .ti { font-size: 18px; vertical-align: -3px; }

/* Company details */
.about-company { max-width: 820px; text-align: center; }
.about-company-list { margin: 0; display: grid; gap: 14px; text-align: left; }
.about-company-list div { padding: 16px 20px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--border); }
.about-company-list dt { color: var(--text-muted); font-size: 14px; }
.about-company-list dd { margin: 0; font-size: 16px; line-height: 1.5; }
.about-company-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .about-team-grid { grid-template-columns: 1fr; }
  .about-team-photo img { aspect-ratio: 3 / 2; object-position: 50% 30%; }
  .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-cards, .about-value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .about-hero, .about-story { grid-template-columns: 1fr; gap: 32px; }
  .about-main .about-hero { padding-top: 116px; }
  .about-hero-photos { aspect-ratio: 3 / 2; }
  .about-story-photo img { aspect-ratio: 3 / 2; }
  .about-vision-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-product-strip { grid-auto-columns: 62%; }
  .about-main .section { padding: 48px 0; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-cards, .about-value-list { grid-template-columns: 1fr; }
  .about-timeline::before { left: 10px; }
  .about-timeline li { padding-left: 40px; }
  .about-timeline li::before { left: 4px; }
  .about-year { position: static; display: block; margin-bottom: 4px; }
  .about-main .about-vision { padding: 56px 20px; }
  .about-company-list div { grid-template-columns: 1fr; gap: 4px; padding: 12px 4px; }
  .about-team-photo img { aspect-ratio: 4 / 5; }
  .about-director { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .about-card, .about-vision-link, .about-product a { transition: none; } .about-card:hover, .about-vision-link:hover, .about-product a:hover { transform: none; } .about-product-strip { scroll-behavior: auto; } }
