/* ─── Bitfinco — philosophy page styles (loaded after base.css + site.css) ─── */

.phil{max-width:var(--container-max);margin:0 auto;padding:0 var(--container-x) 140px}

/* Hero — image on the left, headline + lede on the right */
.phil-hero{
  margin:64px 0 96px;
  display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(40px,5vw,80px);
  align-items:center;
}
.phil-hero-media{
  overflow:hidden;border:1px solid var(--line);background:var(--bg-2);
  aspect-ratio:4/3;
}
.phil-hero-media img{
  width:100%;height:100%;display:block;object-fit:cover;object-position:center;
}
.phil-hero h1{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:300;
  font-size:clamp(44px,5.6vw,84px);letter-spacing:-.025em;line-height:1.04;
  color:var(--ink);margin:0 0 28px;
}
.phil-hero h1 em{font-style:italic;color:var(--gold);font-weight:400}
.phil-hero p{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:300;
  font-size:clamp(18px,1.6vw,22px);line-height:1.55;
  color:var(--text);margin:0;letter-spacing:-.005em;max-width:560px;
}
.phil-hero p em{font-style:italic;color:var(--ink);font-weight:400}
@media (max-width:880px){
  .phil-hero{grid-template-columns:1fr;gap:32px}
}

/* Principles — full-bleed navy band, 3 columns, big white headings */
.phil-grid{
  width:100vw;margin-left:calc(50% - 50vw);
  background:var(--navy);color:var(--bg);
  display:grid;grid-template-columns:repeat(3,1fr);
  margin-top:80px;
}
.phil-card{
  padding:clamp(36px,4vw,56px) clamp(28px,3vw,48px);
  display:flex;flex-direction:column;gap:24px;
  border-right:1px solid rgba(190,153,54,.18);
  border-bottom:1px solid rgba(190,153,54,.18);
}
/* 3-col grid with 6 items: 2 rows of 3. Right border off on every 3rd; bottom border off on last row. */
.phil-card:nth-child(3n){border-right:none}
.phil-card:nth-last-child(-n+3){border-bottom:none}
.phil-card-head .phil-num{display:none}
.phil-card h2{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:400;
  font-size:clamp(26px,2.6vw,36px);letter-spacing:-.015em;line-height:1.1;
  color:var(--bg);margin:0;
}
.phil-card h2 em{font-style:italic;color:var(--gold-hi);font-weight:400}
.phil-card p{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:300;
  font-size:16px;line-height:1.65;color:var(--footer-text);
  margin:0;letter-spacing:-.005em;max-width:none;
}
.phil-card p em{font-style:italic;color:var(--bg);font-weight:400}

/* Closing pledge band (cream, sits below the navy values grid) */
.phil-pledge{
  margin-top:80px;padding:clamp(48px,6vw,80px) clamp(32px,5vw,72px);
  background:var(--bg-2);border:1px solid var(--line);
}
.phil-pledge p{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:300;
  font-size:clamp(22px,2.4vw,32px);letter-spacing:-.015em;line-height:1.35;
  color:var(--ink);margin:0;max-width:980px;
}
.phil-pledge p em{font-style:italic;color:var(--gold);font-weight:400}

/* Responsive borders: the desktop nth-child(3n)/nth-last-child(-n+3) math above is wrong once the grid is no longer 3 columns, so re-add every card's right border, then strip it on the last column (2n) and re-derive the bottom border for the new last row. !important is needed to beat the 3-col rules above (same specificity, so they'd otherwise win on source order). */
@media (max-width:880px){
  .phil-grid{grid-template-columns:repeat(2,1fr)}
  .phil-card{border-right:1px solid rgba(190,153,54,.18) !important}
  .phil-card:nth-child(2n){border-right:none !important}
  .phil-card:nth-last-child(-n+2){border-bottom:1px solid rgba(190,153,54,.18) !important}
  .phil-card:nth-last-child(-n+1){border-bottom:none !important}
}
/* 1 col: only a bottom rule between cards, so kill every right border. */
@media (max-width:560px){
  .phil-grid{grid-template-columns:1fr}
  .phil-card{border-right:none !important}
}
