/* SAFARI/FIREFOX FLIP-CARD FIX — use opacity gating instead of backface-visibility
 * Safari's backface-visibility is unreliable when transforms animate; opacity is
 * universally supported and renders identically across all browsers. */
@media (hover:hover){
  .about-member__face{transition:opacity 0.35s cubic-bezier(0.4,0,0.2,1);will-change:opacity}
  .about-member__back{opacity:0;pointer-events:none}
  .about-member__front{opacity:1}
  .about-member:hover .about-member__back,
  .about-member:focus-within .about-member__back{opacity:1;pointer-events:auto;transition-delay:0.18s}
  .about-member:hover .about-member__front,
  .about-member:focus-within .about-member__front{opacity:0;pointer-events:none}
  /* Keep the rotateY for the subtle tilt effect, but the opacity is what gates visibility */
  .about-member:hover .about-member__inner,
  .about-member:focus-within .about-member__inner{transform:rotateY(180deg)}
  .about-member__back{transform:rotateY(180deg)}
}

/* =============================================================================
   BLOG ARTICLE PAGE — bar (blog article reader)
   ============================================================================= */

/* === HERO SECTION (dark cream background) === */
.bar-hero{
  position:relative;
  padding:clamp(7rem,12vw,10rem) var(--gutter) clamp(3rem,6vw,5rem);
  background:#F5F4F1;
  color:#0F0D0B;
  overflow:hidden;
  border-bottom:1px solid rgba(15,13,11,0.08);
}
.bar-hero::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,36,60,0.5),transparent);
  z-index:1;
}
.bar-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(15,13,11,0.06) 1px, transparent 1px);
  background-size:22px 22px;
  background-position:0 0;
  pointer-events:none;
  opacity:0.55;
  -webkit-mask-image:radial-gradient(ellipse 75% 60% at 50% 50%, #000 25%, transparent 80%);
          mask-image:radial-gradient(ellipse 75% 60% at 50% 50%, #000 25%, transparent 80%);
}
.bar-hero__inner{
  position:relative;
  max-width:1480px;
  margin:0 auto;
  z-index:2;
}

.bar-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:clamp(2rem,4vw,3rem);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.04em;
  color:rgba(15,13,11,0.55);
  flex-wrap:wrap;
}
.bar-breadcrumb a{
  color:rgba(15,13,11,0.7);
  text-decoration:none;
  transition:color 0.3s ease;
}
.bar-breadcrumb a:hover{color:var(--red);}
.bar-breadcrumb__sep{
  color:rgba(15,13,11,0.32);
  font-size:11px;
}
.bar-breadcrumb__current{
  color:rgba(15,13,11,0.42);
  max-width:360px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* === FEATURED CARD (light cream, no hover animation) === */
.bar-feat{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  background:#FAF9F8;
  border:1px solid rgba(15,13,11,0.10);
  border-radius:var(--radius-xl);
  overflow:hidden;
  isolation:isolate;
  box-shadow:0 18px 48px -22px rgba(15,13,11,0.12), 0 2px 6px -2px rgba(15,13,11,0.06);
  /* IMPORTANT: no hover transform — explicitly absent per request */
}
.bar-feat::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,36,60,0.5),transparent);
  z-index:3;
  pointer-events:none;
}

.bar-feat__copy{
  position:relative;
  padding:clamp(2rem,3.5vw,3rem);
  display:flex;
  flex-direction:column;
  gap:1.25rem;
  justify-content:center;
}
.bar-feat__industry{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--red);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
}
.bar-feat__industry::before{
  content:"";
  width:5px;height:5px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 8px var(--red-glow);
  flex-shrink:0;
}
.bar-feat__back{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px 8px 12px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#0F0D0B;
  background:transparent;
  border:1px solid rgba(15,13,11,0.18);
  border-radius:999px;
  text-decoration:none;
  transition:color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  margin-bottom:0.25rem;
}
.bar-feat__back svg{
  width:14px;
  height:14px;
  flex-shrink:0;
  transition:transform 0.3s ease;
}
.bar-feat__back:hover{
  color:var(--red);
  border-color:var(--red);
  background:rgba(255,36,60,0.06);
}
.bar-feat__back:hover svg{
  transform:translateX(-3px);
}
.bar-feat__title{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.6rem,2.7vw,2.4rem);
  line-height:1.15;
  letter-spacing:-0.025em;
  color:#0F0D0B;
  margin:0;
  text-wrap:balance;
}
.bar-feat__excerpt{
  font-size:14.5px;
  line-height:1.6;
  color:rgba(15,13,11,0.7);
  max-width:54ch;
  margin:0;
  text-wrap:pretty;
}
.bar-feat__meta{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:rgba(15,13,11,0.10);
  border:1px solid rgba(15,13,11,0.10);
  border-radius:var(--radius-lg);
  overflow:hidden;
  margin-top:0.5rem;
}
.bar-feat__meta-cell{
  padding:0.85rem 1rem;
  background:#FAF9F8;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.bar-feat__meta-value{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(0.95rem,1.25vw,1.1rem);
  line-height:1.2;
  letter-spacing:-0.015em;
  color:#0F0D0B;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bar-feat__meta-label{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:rgba(15,13,11,0.5);
  line-height:1.3;
}

.bar-feat__visual{
  position:relative;
  background:linear-gradient(165deg,#1F1B17 0%,#15120F 50%,#0A0908 100%);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:420px;
}
.bar-feat__visual-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  opacity:1;
}
.bar-feat__visual-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 0%,transparent 62%,rgba(10,9,8,0.85) 73%,#0A0908 82%,#0A0908 100%);
  z-index:1;
  pointer-events:none;
}
.bar-feat__visual-pattern{
  position:absolute;
  inset:0;
  background-image:repeating-linear-gradient(45deg,rgba(245,242,234,0.022) 0 1px,transparent 1px 22px);
  pointer-events:none;
  z-index:1;
}
.bar-feat__visual-spark{
  position:absolute;
  top:1.5rem;
  right:1.5rem;
  width:22px;
  height:22px;
  color:var(--red);
  opacity:0.6;
  filter:drop-shadow(0 0 12px rgba(255,36,60,0.4));
  z-index:2;
}
.bar-feat__visual-spark svg{width:100%;height:100%;display:block;color:currentColor;fill:currentColor;}
.bar-feat__visual-tag{
  position:absolute;
  top:1.5rem;
  left:1.5rem;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(245,242,234,0.85);
  padding:6px 11px;
  border:1px solid rgba(245,242,234,0.18);
  border-radius:999px;
  background:rgba(10,9,8,0.45);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.bar-feat__visual-tag::before{
  content:"";
  width:5px;height:5px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 8px var(--red-glow);
  flex-shrink:0;
}
.bar-feat__visual-stamp{
  position:absolute;
  left:50%;
  bottom:1.75rem;
  transform:translateX(-50%);
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.1rem,1.6vw,1.35rem);
  line-height:1;
  letter-spacing:0.18em;
  color:rgba(245,242,234,0.92);
  z-index:2;
  white-space:nowrap;
  text-shadow:0 2px 12px rgba(0,0,0,0.5);
  text-transform:uppercase;
}

@media (max-width:760px){
  .bar-feat{grid-template-columns:1fr;}
  .bar-feat__visual{min-height:260px;order:-1;}
  .bar-feat__meta-value{font-size:1rem;}
}

/* === ARTICLE BODY (white background) === */
.article-body{
  padding:clamp(3.5rem,6vw,5.5rem) var(--gutter) clamp(1.5rem,3vw,2.5rem);
  background:#FFFFFF;
}
.article-body__inner{
  max-width:760px;
  margin:0 auto;
  font-family:var(--font);
  font-size:17px;
  line-height:1.78;
  color:#1A1715;
}
.article-body__lede{
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.18rem,1.7vw,1.4rem);
  line-height:1.5;
  letter-spacing:-0.012em;
  color:#0F0D0B;
  margin:0 0 2.25rem;
  text-wrap:pretty;
}
.article-body__lede::first-letter{
  font-family:var(--font-display);
  font-size:4.6em;
  line-height:0.82;
  font-weight:500;
  float:left;
  margin:0.05em 0.12em -0.05em 0;
  color:var(--red);
}
.article-body h2{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.45rem,2.3vw,1.9rem);
  line-height:1.18;
  letter-spacing:-0.025em;
  color:#0F0D0B;
  margin:clamp(2.75rem,4.5vw,3.5rem) 0 1rem;
  text-wrap:balance;
  position:relative;
  padding-top:1.5rem;
}
.article-body h2::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:32px;
  height:2px;
  background:var(--red);
}
.article-body h3{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.1rem,1.6vw,1.28rem);
  letter-spacing:-0.02em;
  color:#0F0D0B;
  margin:2.25rem 0 0.75rem;
}
.article-body p{
  margin:0 0 1.2rem;
  color:#1A1715;
  text-wrap:pretty;
}
.article-body a{
  color:var(--red);
  text-decoration:none;
  border-bottom:1px solid rgba(255,36,60,0.32);
  transition:border-color 0.3s ease;
}
.article-body a:hover{border-bottom-color:var(--red);}
.article-body strong{font-weight:600;color:#0F0D0B;}
.article-body em{font-style:italic;color:#0F0D0B;}
.article-body ul,.article-body ol{
  margin:0 0 1.5rem;
  padding-left:1.5rem;
  display:flex;
  flex-direction:column;
  gap:0.55rem;
}
.article-body li{color:#1A1715;line-height:1.65;}
.article-body li::marker{color:var(--red);}

/* Pull quote */
.article-pullquote{
  margin:clamp(2rem,4vw,2.75rem) 0;
  padding:clamp(1.4rem,2.8vw,2rem) clamp(1.5rem,3vw,2.25rem);
  background:#F5F4F1;
  border:1px solid rgba(15,13,11,0.08);
  border-left:4px solid var(--red);
  border-radius:0 16px 16px 0;
  position:relative;
}
.article-pullquote__mark{
  position:absolute;
  top:-2px;
  left:18px;
  font-family:var(--font-display);
  font-size:64px;
  line-height:1;
  color:var(--red);
  opacity:0.16;
  font-weight:600;
  pointer-events:none;
}
.article-pullquote__text{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.12rem,1.7vw,1.32rem);
  line-height:1.4;
  letter-spacing:-0.012em;
  color:#0F0D0B;
  margin:0;
  text-wrap:balance;
  position:relative;
}
.article-pullquote__attr{
  display:block;
  margin-top:0.85rem;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--text-mute);
}

/* Inline figure */
.article-figure{
  margin:clamp(2rem,4vw,3rem) 0;
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.article-figure__media{
  position:relative;
  aspect-ratio:16/9;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:#F5F4F1;
  border:1px solid rgba(15,13,11,0.06);
}
.article-figure__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.article-figure__caption{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.02em;
  color:var(--text-mute);
  padding:0 0.25rem;
  text-align:center;
}

/* === TAGS & SHARE row === */
.article-tags{
  background:#FFFFFF;
  padding:clamp(1.5rem,3vw,2rem) var(--gutter);
}
.article-tags__inner{
  max-width:760px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  padding-top:1.5rem;
  border-top:1px solid rgba(15,13,11,0.08);
}
.article-tags__list{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.article-tags__chip{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.04em;
  padding:6px 12px;
  border:1px solid rgba(15,13,11,0.16);
  border-radius:999px;
  color:var(--text-mute);
  background:transparent;
  text-decoration:none;
  transition:all 0.3s ease;
  cursor:pointer;
}
.article-tags__chip:hover{
  color:var(--red);
  border-color:var(--red);
  background:var(--red-soft);
}
.article-share{
  display:flex;
  align-items:center;
  gap:8px;
}
.article-share__label{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--text-mute);
  margin-right:4px;
}
.article-share__btn{
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid rgba(15,13,11,0.16);
  background:transparent;
  color:var(--text-mute);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all 0.3s ease;
  text-decoration:none;
}
.article-share__btn:hover{
  color:var(--red);
  border-color:var(--red);
  background:var(--red-soft);
}
.article-share__btn svg{width:14px;height:14px;}

/* === AUTHOR BIO === */
.article-author{
  background:#FFFFFF;
  padding:clamp(1rem,2vw,1.5rem) var(--gutter) clamp(2rem,4vw,3rem);
}
.article-author__inner{
  max-width:760px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1.25rem;
  padding:1.5rem;
  background:#F5F4F1;
  border:1px solid rgba(15,13,11,0.08);
  border-radius:var(--radius-lg);
}
.article-author__avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red) 0%,#C71E30 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:500;
  font-size:22px;
  color:#FFFFFF;
  flex-shrink:0;
  letter-spacing:-0.01em;
}
.article-author__info{display:flex;flex-direction:column;gap:0.2rem;}
.article-author__name{
  font-family:var(--font-display);
  font-weight:500;
  font-size:16px;
  letter-spacing:-0.015em;
  color:#0F0D0B;
}
.article-author__role{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.04em;
  color:var(--red);
  margin-bottom:0.4rem;
  text-transform:uppercase;
}
.article-author__bio{
  font-size:13.8px;
  line-height:1.6;
  color:var(--text-mute);
  margin:0;
}

/* === RELATED ARTICLES === */
.article-related{
  background:#F5F4F1;
  padding:clamp(4rem,7vw,6rem) var(--gutter);
  border-top:1px solid rgba(15,13,11,0.06);
}
.article-related__inner{
  max-width:1480px;
  margin:0 auto;
}
.article-related__head{
  display:flex;
  flex-direction:column;
  gap:0.75rem;
  margin-bottom:clamp(2rem,4vw,3rem);
}
.article-related__kicker{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--red);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.article-related__kicker::before{
  content:"";
  width:5px;height:5px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 8px var(--red-glow);
}
.article-related__title{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.7rem,2.8vw,2.4rem);
  line-height:1.15;
  letter-spacing:-0.025em;
  color:#0F0D0B;
  margin:0;
  text-wrap:balance;
}
.article-related__title .red{color:var(--red);}
.article-related__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(1.25rem,2vw,2rem);
}
.article-related__card{
  background:#FFFFFF;
  border:1px solid rgba(15,13,11,0.08);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform 0.4s var(--ease),border-color 0.4s var(--ease),box-shadow 0.4s var(--ease);
  text-decoration:none;
  color:inherit;
}
.article-related__card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,36,60,0.3);
  box-shadow:0 12px 32px rgba(15,13,11,0.08);
}
.article-related__visual{
  aspect-ratio:16/9;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#F5F4F1 0%,#FAF9F8 100%);
  border-bottom:1px solid rgba(15,13,11,0.08);
}
.article-related__visual::before{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(45deg, rgba(15,13,11,0.02) 0 1px, transparent 1px 12px);
  pointer-events:none;
}
.article-related__visual::after{
  content:"";
  position:absolute;
  top:50%;left:50%;
  width:60%;height:60%;
  transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center,var(--red-soft) 0%, transparent 70%);
  pointer-events:none;
}
.article-related__visual-mark{
  position:absolute;
  top:1rem;
  left:1rem;
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--red);
  background:rgba(255,255,255,0.92);
  padding:5px 10px;
  border-radius:6px;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  z-index:2;
}
.article-related__visual-spark{
  position:absolute;
  bottom:1rem;
  right:1rem;
  width:32px;height:32px;
  color:var(--red);
  opacity:0.35;
  z-index:2;
}
.article-related__visual-spark svg{width:100%;height:100%;}
.article-related__body{
  padding:1.5rem 1.5rem 1.75rem;
  display:flex;
  flex-direction:column;
  gap:0.75rem;
  flex:1;
}
.article-related__title-card{
  font-family:var(--font-display);
  font-weight:500;
  font-size:1.08rem;
  line-height:1.25;
  letter-spacing:-0.015em;
  color:#0F0D0B;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:color 0.3s ease;
}
.article-related__card:hover .article-related__title-card{color:var(--red);}
.article-related__excerpt{
  font-size:13.5px;
  line-height:1.55;
  color:var(--text-mute);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}
.article-related__read{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.04em;
  color:var(--red);
  margin-top:auto;
  padding-top:0.75rem;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.article-related__read::after{content:"→";}

@media (max-width:900px){
  .article-related__grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .article-related__grid{grid-template-columns:1fr;}
  .article-author__inner{grid-template-columns:1fr;}
  .article-author__avatar{width:56px;height:56px;font-size:20px;}
}

/* Reading progress bar (top of page when scrolling article) */
.bar-progress{
  position:fixed;
  top:0;left:0;
  height:3px;
  width:0;
  background:linear-gradient(90deg,var(--red) 0%,#FF4B5F 100%);
  z-index:300;
  transition:width 0.08s linear;
  box-shadow:0 0 8px rgba(255,36,60,0.4);
}