/* Flag #54 (option B): Adobe's menu logic on design D's black bar. Top words with something behind them are
   buttons that drop a full-width panel and dim the page; plain pages stay plain links. */
.f54 .nv{align-items:center}
.f54 .nv a,.f54 .dd{opacity:.75;transition:opacity .2s}
.dd{font:inherit;color:inherit;background:none;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:7px;padding:0}
.dd .cv{transition:transform .2s;margin-top:2px}
.f54 .nv a:hover,.dd:hover,.dd[aria-expanded=true]{opacity:1}
.dd[aria-expanded=true],.dd.on{box-shadow:0 2px 0 var(--t)}
.f54 .nv .dd.on,.f54 .nv a.on{opacity:1}
.dd[aria-expanded=true] .cv{transform:rotate(180deg)}

/* the panel: same black as the bar, so bar + panel read as one surface (Adobe turns its whole header grey) */
.mega{position:absolute;left:0;right:0;top:100%;background:var(--ink);border-top:1px solid #26262a;
  padding:32px 0 40px;border-radius:0 0 48px 0;box-shadow:0 30px 60px rgba(0,0,0,.45);max-height:calc(100vh - 76px);overflow:auto}
.mega[hidden]{display:none}
.dim{position:fixed;inset:0;background:rgba(6,6,8,.62);z-index:59;opacity:0;visibility:hidden;transition:opacity .2s}
.hd.mopen+.dim{opacity:1;visibility:visible}
.mg{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:start}

/* left column of category tabs (Adobe's Featured / Content Creation / ... column, squared off) */
.tabs{display:flex;flex-direction:column;gap:6px}
.tb{font-family:var(--gr);font-weight:800;font-size:15px;letter-spacing:.04em;text-align:left;
  display:flex;justify-content:space-between;align-items:center;height:46px;padding:0 16px;border-radius:8px;border:0;cursor:pointer;
  background:#17171b;color:#fff;transition:background .15s}
.tb span{font-size:12px;opacity:.55}
.tb:hover{background:#222228}
.tb.on{background:var(--t);color:var(--ink)}
.all{display:inline-flex;align-items:center;gap:8px;font-family:var(--gr);font-weight:700;font-size:14px;
  letter-spacing:.01em;color:var(--t);padding:14px 16px 0}
.all svg{width:14px;height:14px}

/* project cards */
.grp{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.grp.on{display:grid}
.mc{display:flex;flex-direction:column;gap:6px;background:#17171b;border-radius:8px;padding:20px;min-height:178px;transition:background .15s,transform .2s}
.mc:hover{background:#202027;transform:translateY(-2px)}
.mc .ic{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;font-family:var(--gr);font-weight:900;font-size:15px;
  color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset;margin-bottom:18px}
.mc small,.sc small,.cl small{font-family:var(--gr);font-weight:700;font-size:11px;letter-spacing:.01em;color:var(--t);opacity:.85}
.mc b{font-family:var(--gr);font-weight:800;font-size:19px;line-height:1.1}
.mc span:last-child{font-size:14px;line-height:1.45;color:#b9b9c4}
.pics .mc{padding:0 0 18px;overflow:hidden;min-height:0}
.pics .mc>*:not(.mi){margin:0 18px}
.mi{display:block;aspect-ratio:16/10;background:#222228;overflow:hidden;margin-bottom:8px}
.mi img{width:100%;height:100%;object-fit:cover;object-position:top}

/* services: Adobe's Use Cases row, three across */
.scards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sc{background:#17171b;border-radius:8px;padding:22px;display:flex;flex-direction:column;gap:8px}
.sc h3{font-size:22px;line-height:1.02}
.sc h3 a:hover{color:var(--t)}
.sc p{font-size:14px;line-height:1.45;color:#b9b9c4}
.msee{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:auto;padding-top:8px;font-size:13px;font-weight:600}
.msee em{font-style:normal;color:#8a8a96;font-weight:500}
.msee a{color:var(--t)}.msee a:hover{text-decoration:underline}
.scards.pics .sc{padding:0 0 20px;overflow:hidden}
.scards.pics .sc>*:not(.mi){margin:0 20px}
.mi.s{aspect-ratio:3.2/1}
.mega>.wrap>.all{padding-left:0}

@media (max-width:1100px){
  .mg{grid-template-columns:180px minmax(0,1fr);gap:20px}
  .grp{grid-template-columns:repeat(2,minmax(0,1fr))}
  .scards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* phone: Adobe's mobile menu folds each panel into the drawer as an open/close row */
@media (max-width:760px){
  .mega,.dim{display:none}
  .f54.open .drawer{max-height:calc(100vh - 64px);overflow:auto}
  .acc{font:inherit;font-family:var(--gr);font-weight:900;font-size:30px;color:#fff;background:none;border:0;
    border-bottom:1px solid #26262a;padding:10px 0;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer}
  .acc i{width:16px;height:16px;position:relative}
  .acc i::before,.acc i::after{content:'';position:absolute;left:0;right:0;top:7px;height:3px;background:var(--t);transition:transform .2s}
  .acc i::after{transform:rotate(90deg)}
  .acc[aria-expanded=true] i::after{transform:rotate(0)}
  .accp{display:flex;flex-direction:column;gap:4px;padding:12px 0 16px;border-bottom:1px solid #26262a}
  .accp[hidden]{display:none}
  .f54 .drawer .accp a{font-family:var(--bd);text-transform:none;font-size:16px;font-weight:500;border:0;padding:0}
  .mh{font-family:var(--gr);font-weight:700;font-size:11px;letter-spacing:.01em;color:var(--t);margin:10px 0 2px}
  .mh:first-child{margin-top:0}
  .f54 .drawer .accp .mr{display:flex;align-items:center;gap:12px;padding:6px 0}
  .mr img,.mr .ic{width:56px;height:38px;border-radius:5px;object-fit:cover;object-position:top;flex:none;background:#222228}
  .mr .ic{width:30px;height:30px;display:grid;place-items:center;font-family:var(--gr);font-weight:900;font-size:14px;color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset}
  .mr span{display:flex;flex-direction:column;line-height:1.25}
  .mr b{font-weight:600}
  .mr small{font-size:12px;color:#8a8a96}
  .f54 .drawer .accp .ms{display:flex;gap:12px;padding:7px 0}
  .ms span{font-family:var(--gr);font-weight:800;font-size:12px;color:var(--t);padding-top:3px}
  .f54 .drawer .accp .mall{display:inline-flex;align-items:center;gap:8px;margin-top:10px;font-family:var(--gr);font-weight:700;font-size:14px;
    ;letter-spacing:.01em;color:var(--t)}
  .mall svg{width:14px;height:14px}
}
