.brands-page { background: #f8fafc; color: #0a192f; }
.brands-page-container { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; }
.brands-hero { padding: 11rem 0 7rem; background: radial-gradient(circle at 82% 20%, rgba(246,139,30,.18), transparent 28%), linear-gradient(135deg,#0a192f,#112240 62%,#1e3a8a); color: #fff; }
.brands-eyebrow { display: block; margin-bottom: 1.25rem; color: #f68b1e; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brands-eyebrow-dark { color: #c5660c; }
.brands-hero h1 { max-width: 900px; font-size: clamp(3rem,7vw,6.5rem); line-height: .98; letter-spacing: -.055em; }
.brands-hero h1 em { color: #f68b1e; font-style: normal; }
.brands-hero p { max-width: 680px; margin: 2rem 0 2.5rem; color: #cbd5e1; font-size: 1.15rem; }
.brands-primary-button,.brands-secondary-button { display: inline-flex; align-items: center; gap: .8rem; padding: 1rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s ease,box-shadow .2s ease; }
.brands-primary-button { background: #f68b1e; color: #fff; box-shadow: 0 12px 28px rgba(246,139,30,.25); }
.brands-primary-button:hover,.brands-secondary-button:hover { transform: translateY(-2px); }
.brands-directory { padding: 7rem 0; }
.brands-directory-header { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.brands-directory-header h2,.brands-partner-cta h2 { font-size: clamp(2.2rem,4vw,4rem); line-height: 1.05; letter-spacing: -.04em; }
.brands-directory-header p { color: #64748b; }
.brand-filters { display: flex; gap: .65rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid #dbe3ec; }
.brand-filter { border: 1px solid #cbd5e1; background: transparent; color: #334155; padding: .7rem 1.05rem; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.brand-filter:hover,.brand-filter.is-active { border-color: #0a192f; background: #0a192f; color: #fff; }
.brands-directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 2.5rem; background: #dbe3ec; border: 1px solid #dbe3ec; }
.portfolio-brand-card { min-height: 410px; padding: 2rem; background: #fff; display: flex; flex-direction: column; transition: background .25s ease,transform .25s ease; }
.portfolio-brand-card:hover { background: #fffaf5; }
.portfolio-brand-card[hidden] { display: none; }
.portfolio-brand-meta { display: flex; justify-content: space-between; color: #64748b; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-brand-name { margin: auto 0; color: #0a192f; font-size: clamp(2.4rem,5vw,4.8rem); font-weight: 900; line-height: .92; letter-spacing: -.06em; }
.portfolio-brand-category { color: #c5660c; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portfolio-brand-copy p { max-width: 500px; margin-top: .65rem; color: #64748b; }
.portfolio-brand-link { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; color: #0a192f; font-weight: 800; text-decoration: none; }
.portfolio-brand-link:hover { color: #c5660c; }
.brands-partner-cta { padding: 6rem 0; background: #0a192f; color: #fff; }
.brands-partner-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.brands-partner-cta p { max-width: 700px; margin-top: 1rem; color: #cbd5e1; }
.brands-secondary-button { border: 1px solid rgba(255,255,255,.3); color: #fff; white-space: nowrap; }
.brands-secondary-button:hover { border-color: #f68b1e; }
@media (max-width: 768px) {
  .brands-page-container { width: min(100% - 2rem,1180px); }
  .brands-hero { padding: 8.5rem 0 5rem; }
  .brands-directory { padding: 4.5rem 0; }
  .brands-directory-header,.brands-partner-cta-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .brands-directory-grid { grid-template-columns: 1fr; }
  .portfolio-brand-card { min-height: 350px; padding: 1.5rem; }
  .brands-secondary-button { justify-self: start; white-space: normal; }
  .brands-hero h1 { font-size:clamp(2.8rem,14vw,4.5rem);overflow-wrap:anywhere; }
  .brands-hero p { font-size:1rem; }
  .brand-filters { overflow-x:auto;flex-wrap:nowrap;padding-bottom:.75rem;scroll-snap-type:x proximity; }
  .brand-filter { flex:0 0 auto;min-height:44px;scroll-snap-align:start; }
  .portfolio-brand-name { font-size:clamp(2.3rem,13vw,3.7rem);overflow-wrap:anywhere; }
  .brands-secondary-button { justify-content:center;width:100%; }
}
@media (prefers-reduced-motion: reduce) { .brands-page * { scroll-behavior: auto !important; transition: none !important; } }
