/* THE GREY AREA — Directory (extends /the-grey-area/assets/styles.css) */

.proto-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #f4f3f0; color: #0e0e0e;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  text-align: center; padding: 8px 16px;
}

/* ---------- Directory hero ---------- */
.d-hero { position: relative; padding: 168px 0 72px; overflow: hidden; isolation: isolate; }
.d-hero .hero__glow { inset: -30%; -webkit-mask-image: linear-gradient(#000 55%, transparent 80%); mask-image: linear-gradient(#000 55%, transparent 80%); }
.d-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 7.4vw, 124px);
  line-height: .86; letter-spacing: -.02em; margin: 0;
}
.d-hero h1 .line { display: block; white-space: nowrap; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
@media (max-width: 600px) { .d-hero h1 { font-size: 11.6vw; } }
.d-hero__sub {
  margin: clamp(32px, 5vh, 56px) 0 0; max-width: 40ch;
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 300; color: var(--fog);
}
.d-hero__sub strong { font-weight: 500; color: var(--paper); }
@media (min-width: 760px) { .d-hero__sub { max-width: none; white-space: nowrap; } }

/* ---------- Intro ---------- */
.d-intro { background: linear-gradient(var(--ink), var(--charcoal)); padding: clamp(56px, 9vh, 112px) 0 clamp(72px, 11vh, 128px); }
.d-intro__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.d-intro h2 {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(24px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.01em;
}
.d-intro p { margin: 0 0 1em; font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--fog); max-width: 52ch; }
.d-intro p strong { font-weight: 500; color: var(--paper); }
.d-intro .d-intro__lead { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 44px); line-height: 1.2; letter-spacing: -.005em; color: var(--paper); max-width: 30ch; margin: 0; }
@media (max-width: 820px) { .d-intro__grid { grid-template-columns: 1fr; } }

/* ---------- Directory list ---------- */
.d-list { background: var(--paper); color: var(--ink); padding: clamp(64px, 10vh, 120px) 0 clamp(80px, 12vh, 140px); }
.d-list__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.d-list__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; margin: 0; }
.d-list__count { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 32px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-right: 6px; }
.dchip {
  appearance: none; font: inherit; font-size: 14px; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid rgba(14,14,14,.3); border-radius: 0; padding: 7px 13px;
  transition: background .25s, color .25s, border-color .25s;
}
.dchip:hover { border-color: var(--ink); }
.dchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters select {
  font: inherit; font-size: 14px; color: var(--ink); background: transparent;
  border: 1px solid rgba(14,14,14,.3); border-radius: 0; padding: 7px 30px 7px 12px;
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.dcard {
  --bg: var(--fog); --fg: var(--ink); --mute: rgba(14,14,14,.62);
  background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; min-height: 420px;
  padding: 26px 26px 24px; text-decoration: none;
  transition: transform .5s var(--ease);
}
.dcard.is-dark { --fg: var(--paper); --mute: rgba(244,243,240,.66); }
.dcard:hover, .dcard:focus-visible { transform: translateY(-4px); }
.dcard[hidden] { display: none; }
.dcard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dcard__name { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.dcard__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-align: right; }
.dcard__quote {
  font-family: var(--serif); font-weight: 400; margin: auto 0 28px; padding-top: 40px;
  font-size: clamp(26px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -.005em;
}
.dcard__text { margin: auto 0 28px; padding-top: 40px; font-size: 17px; line-height: 1.5; font-weight: 300; }
.dcard__more { font-size: 14px; font-weight: 500; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.empty { padding: 48px 0; color: var(--slate); }

/* ---------- Method note ---------- */
.d-method { background: var(--paper); color: var(--ink); padding: 0 0 clamp(72px, 10vh, 120px); }
.d-method__box { padding-top: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.d-method h3 { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--slate); }
.d-method p { margin: 0 0 .8em; max-width: 68ch; color: var(--graphite); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 700px) { .d-method__box { grid-template-columns: 1fr; } }

/* ---------- Footer on dark ---------- */
.d-foot { background: var(--ink); padding: 8px 0 72px; }
.d-foot .footer { margin-top: 48px; border-top: 0; padding-top: 0; }

/* ---------- Brand page ---------- */
.b-hero { --bg: var(--fog); --fg: var(--ink); --mute: rgba(14,14,14,.62); background: var(--bg); color: var(--fg); padding: 140px 0 clamp(56px, 9vh, 104px); }
.b-hero.is-dark { --fg: var(--paper); --mute: rgba(244,243,240,.66); }
.b-back { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-bottom: clamp(40px, 7vh, 72px); }
.b-meta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.b-hero h1 { font-family: var(--serif); font-weight: 400; margin: 0; font-size: clamp(52px, 9vw, 150px); line-height: .9; letter-spacing: -.02em; }
.b-quote { font-family: var(--serif); font-weight: 400; margin: clamp(36px, 6vh, 64px) 0 0; max-width: 22ch; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.1; }
.b-two { margin: clamp(28px, 5vh, 48px) 0 0; max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; font-weight: 300; }

.b-body { background: var(--paper); color: var(--ink); padding: clamp(56px, 9vh, 104px) 0; }
.b-body__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.b-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--slate); margin: 0 0 14px; }
.b-why p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; font-weight: 300; margin: 0; max-width: 46ch; }
.b-src { font-size: 13px; color: var(--slate); margin-top: 18px; }
.b-aside { border-top: 1px solid var(--ink); padding-top: 22px; position: sticky; top: 96px; }
.b-aside .b-offer { font-size: 18px; line-height: 1.45; margin: 0 0 28px; }
.b-links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.b-links .ig { font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 820px) { .b-body__grid { grid-template-columns: 1fr; } .b-aside { position: static; } }

.b-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(56px, 9vh, 96px); }
.b-images[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.b-images[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph { aspect-ratio: 4 / 5; background: var(--fog); display: flex; align-items: end; padding: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.b-images[data-n="1"] .ph { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .b-images, .b-images[data-n="2"] { grid-template-columns: 1fr; } }

.b-more { background: var(--paper); color: var(--ink); padding: 0 0 clamp(72px, 10vh, 120px); }
.b-more h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); margin: 0 0 28px; padding-top: 28px; border-top: 1px solid rgba(14,14,14,.18); }
.b-more .dcard { min-height: 340px; }

/* ---------- Hero overrides (landing structure) ---------- */
.hero__sub.d-sub { max-width: 46ch; font-weight: 300; }
.hero__sub.d-sub .reg { font-weight: 400; color: var(--paper); }

/* ---------- Logo marquee ---------- */
.d-marquee { padding: 26px 0; }
.d-marquee .marquee__track { align-items: center; animation-duration: 46s; }
.d-marquee .mq-item { display: inline-flex; align-items: center; height: 44px; padding: 0 clamp(28px, 4vw, 56px); text-decoration: none; opacity: .72; transition: opacity .3s; }
.d-marquee .mq-item:hover { opacity: 1; }
.d-marquee .mq-item img { height: 100%; width: auto; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); }
.d-marquee .mq-name { font-family: var(--sans); font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.d-marquee .mq-item:nth-child(3n+2) { opacity: .5; }
.d-marquee .mq-item:nth-child(3n+3) { opacity: .62; }

/* ---------- Full-bleed card grid ---------- */
.grid--bleed { gap: 0; }
.grid--bleed .dcard { padding: clamp(24px, 2.6vw, 40px); min-height: clamp(380px, 34vw, 520px); }
.grid--bleed .dcard:hover, .grid--bleed .dcard:focus-visible { transform: none; filter: brightness(1.04); }
.dcard { transition: transform .5s var(--ease), filter .4s var(--ease); }
.d-list { padding-bottom: 0; }
.d-method { padding-top: clamp(56px, 8vh, 96px); }
.b-more { padding-bottom: 0; }

/* ---------- Category selector: right-aligned, compact block ---------- */
.d-list { padding-top: clamp(24px, 3.5vh, 36px); }
.d-list .filters { justify-content: flex-end; margin: 0 0 clamp(20px, 3vh, 28px); }

/* ---------- Filler tile closing the last row ---------- */
.dfill { background: var(--ink); color: var(--paper); display: flex; align-items: flex-end; padding: clamp(24px, 2.6vw, 40px); min-height: clamp(380px, 34vw, 520px); }
.dfill[hidden] { display: none; }
.dfill__txt { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 56px); line-height: 1; letter-spacing: -.015em; max-width: 14ch; }

/* ---------- Card: logo, hover photo ---------- */
.dcard { position: relative; overflow: hidden; isolation: isolate; }
.dcard > * { position: relative; z-index: 1; }
.dcard__logo { display: block; height: 28px; width: auto; max-width: 62%; object-fit: contain; object-position: left center; filter: brightness(0); transition: filter .4s var(--ease); }
.dcard.is-dark .dcard__logo { filter: brightness(0) invert(1); }
.dcard__photo { position: absolute !important; inset: 0; z-index: 0 !important; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity .55s var(--ease), transform .9s var(--ease); }
.dcard__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14,14,14,.45), rgba(14,14,14,0) 30%, rgba(14,14,14,0) 62%, rgba(14,14,14,.55)); }
.dcard__quote, .dcard__text, .dcard__meta { transition: opacity .35s var(--ease); }
@media (hover: hover) {
  .dcard:hover .dcard__photo, .dcard:focus-visible .dcard__photo { opacity: 1; transform: none; }
  .dcard:hover .dcard__quote, .dcard:hover .dcard__text, .dcard:hover .dcard__meta,
  .dcard:focus-visible .dcard__quote, .dcard:focus-visible .dcard__text, .dcard:focus-visible .dcard__meta { opacity: 0; }
  .dcard:hover .dcard__logo, .dcard:focus-visible .dcard__logo { filter: brightness(0) invert(1); }
  .dcard:hover, .dcard:focus-visible { color: var(--paper); }
  .grid--bleed .dcard:hover, .grid--bleed .dcard:focus-visible { filter: none; }
}
.dcard__top { align-items: center; }

/* ---------- Brand page: top bar turns solid once the hero has scrolled away ---------- */
.topbar { transition: background-color .3s var(--ease), color .3s var(--ease); }
.topbar.is-solid { mix-blend-mode: normal; background: var(--paper); color: var(--ink); }

/* ---------- Brand page tweaks ---------- */
.b-back span { display: inline-block; margin-right: .35em; }
.b-aside { border-top: 0; padding-top: 0; }
.b-images { gap: 0; margin-top: 0; }
.b-images img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.b-images[data-n="1"] img { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .b-images, .b-images[data-n="2"] { grid-template-columns: 1fr; } }
.b-more h2 { border-top: 0; padding-top: clamp(48px, 8vh, 80px); }
.b-images img { aspect-ratio: 4 / 3; }
.b-images[data-n="1"] img { aspect-ratio: 21 / 9; }
.b-hero h1.b-logo img { display: block; height: clamp(56px, 7vw, 112px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: brightness(0); }
.b-hero.is-dark h1.b-logo img { filter: brightness(0) invert(1); }

/* ---------- Brand hero with the brand photo behind ---------- */
.b-hero.has-photo { --fg: var(--paper); --mute: rgba(244,243,240,.78); position: relative; isolation: isolate; background-color: var(--ink); background-size: cover; background-position: center; min-height: min(88svh, 860px); display: flex; align-items: flex-end; }
.b-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(14,14,14,.5), rgba(14,14,14,.18) 35%, rgba(14,14,14,.35) 60%, rgba(14,14,14,.78)); }
.b-hero.has-photo > .wrap { width: 100%; }
.b-hero.has-photo h1.b-logo img { filter: brightness(0) invert(1); }
.b-hero.has-photo::before { background: linear-gradient(90deg, rgba(14,14,14,.68), rgba(14,14,14,.42) 45%, rgba(14,14,14,.12) 80%), linear-gradient(rgba(14,14,14,.35), rgba(14,14,14,0) 30%, rgba(14,14,14,0) 70%, rgba(14,14,14,.4)); }
@media (max-width: 700px) { .b-hero.has-photo::before { background: rgba(14,14,14,.55); } }

/* ---------- Brand page top bar: always readable over the hero ---------- */
.topbar.on-dark { mix-blend-mode: normal; color: var(--paper); }
.topbar.on-light { mix-blend-mode: normal; color: var(--ink); }
.topbar.on-dark.is-solid, .topbar.on-light.is-solid { background: var(--paper); color: var(--ink); }
.b-images img { object-position: center 20%; }

/* ---------- Powered by BCome (client brands, brand page only) ---------- */
.b-powered { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--slate); text-decoration: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: color .3s var(--ease); }
.b-powered .bcome-logo { height: 11px; width: auto; display: block; }
.b-powered:hover { color: var(--ink); }
.b-powered { display: inline-block; margin-top: 32px; opacity: .85; transition: opacity .3s var(--ease); }
.b-powered:hover { opacity: 1; }
.b-powered img { display: block; height: 16px; width: auto; }
.b-powered { opacity: 1; }
.b-powered:hover { opacity: .7; }

/* ---------- Stacked / squarish logos get more height ---------- */
.dcard__logo.is-tall { height: 64px; }
.d-marquee .mq-item.is-tall { height: 64px; }
.b-hero h1.b-logo.is-tall img { height: clamp(96px, 10vw, 160px); }
